| | |
| | | import com.core.common.Arith; |
| | | import com.core.common.Cools; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.domain.vo.LocChartPie; |
| | | import com.zy.asrs.mapper.ReportQueryMapper; |
| | | import com.zy.common.service.CommonService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 入库报表 |
| | | * 入库报表 -- 折线图 |
| | | */ |
| | | @GetMapping("/pakin/rep") |
| | | public R monitorPakinRep(){ |
| | |
| | | return R.ok(report); |
| | | } |
| | | |
| | | @GetMapping("/loc/rep") |
| | | public R monitorLocRep(){ |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | |
| | | LocChartPie locUseRate = reportQueryMapper.getLocUseRate(); |
| | | if(locUseRate!=null) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("name", "在库库位"); |
| | | map.put("value", locUseRate.getFqty()); |
| | | result.add(map); |
| | | |
| | | Map<String, Object> map1 = new HashMap<>(); |
| | | map1.put("name", "空库位"); |
| | | map1.put("value", locUseRate.getOqty()); |
| | | result.add(map1); |
| | | |
| | | Map<String, Object> map2 = new HashMap<>(); |
| | | map2.put("name", "使用库位"); |
| | | map2.put("value", locUseRate.getUqty()); |
| | | result.add(map2); |
| | | |
| | | Map<String, Object> map3 = new HashMap<>(); |
| | | map3.put("name", "禁用库位"); |
| | | map3.put("value", locUseRate.getXqty()); |
| | | result.add(map3); |
| | | } |
| | | return R.ok(result); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |