| | |
| | | */ |
| | | @GetMapping("/pakin/rep") |
| | | public R monitorPakinRep(){ |
| | | List<Map<String, Object>> report = reportQueryMapper.queryPakinRep(); |
| | | for (Map<String, Object> map : report) { |
| | | // 入库 |
| | | List<Map<String, Object>> pakinRep = reportQueryMapper.queryPakinRep(); |
| | | for (Map<String, Object> map : pakinRep) { |
| | | if (map.get("node")!=null) { |
| | | map.put("node", String.valueOf(map.get("node")).substring(5, 10)); |
| | | } |
| | | } |
| | | return R.ok(report); |
| | | // 出库 |
| | | List<Map<String, Object>> pakoutRep = reportQueryMapper.queryPakinRep(); |
| | | return R.ok(pakinRep); |
| | | } |
| | | |
| | | /** |
| | |
| | | "order by Min(wm.io_time) asc\n") |
| | | List<Map<String, Object>> queryPakinRep(); |
| | | |
| | | @Select("select\n" + |
| | | "Min(wm.io_time) as node,\n" + |
| | | "isnull(count(1), 0) as val\n" + |
| | | "from asr_wrk_mast_log wm\n" + |
| | | "where 1=1\n" + |
| | | "and ((wm.wrk_sts = 15 AND wm.io_type = 101) OR (wm.wrk_sts = 14 AND wm.io_type = 103))\n" + |
| | | "and datediff(d, wm.io_time, getdate())<=7\n" + |
| | | "group by datediff(day,wm.io_time,getdate())\n" + |
| | | "order by Min(wm.io_time) asc") |
| | | List<Map<String, Object>> queryPakOutRep(); |
| | | |
| | | @Select("select * from asr_loc_use_view") |
| | | LocChartPie getLocUseRate(); |
| | | |