|  |  |  | 
|---|
|  |  |  | import com.zy.asrs.domain.dto.WorkChartAxis; | 
|---|
|  |  |  | import com.zy.asrs.domain.vo.LocChartPie; | 
|---|
|  |  |  | import com.zy.asrs.mapper.ReportQueryMapper; | 
|---|
|  |  |  | import com.zy.common.model.annotations.RateLimit; | 
|---|
|  |  |  | import com.zy.common.service.CommonService; | 
|---|
|  |  |  | import com.zy.core.CrnThread; | 
|---|
|  |  |  | import com.zy.core.cache.SlaveConnection; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 获取输送线plc线程 | 
|---|
|  |  |  | LedThread ledThread = (LedThread) SlaveConnection.get(SlaveType.Led, ledId); | 
|---|
|  |  |  | String ledContent = ledThread.getStringBuffer().toString(); | 
|---|
|  |  |  | String ledContent = ledThread.getWorkNos().toString(); | 
|---|
|  |  |  | //        ledContent = "ask的模块萨满大算了萨满大了\n 是窘境到埃及嗲家嗲\n 萨达姆打开萨满大凯撒麦当劳萨满大老师"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return R.ok( | 
|---|
|  |  |  | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 入库报表 -- 折线图 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping("/pakin/rep") | 
|---|
|  |  |  | public R monitorPakinRep(){ | 
|---|
|  |  |  | // 入库 | 
|---|
|  |  |  | 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)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // 出库 | 
|---|
|  |  |  | List<Map<String, Object>> pakoutRep = reportQueryMapper.queryPakinRep(); | 
|---|
|  |  |  | return R.ok(pakinRep); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RateLimit(2) | 
|---|
|  |  |  | @GetMapping("/line/charts") | 
|---|
|  |  |  | public R locIoLineCharts(){ | 
|---|
|  |  |  | Map<String,Object> map=new HashMap<String, Object>(); | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 库位使用情况统计 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @RateLimit(2) | 
|---|
|  |  |  | @GetMapping("/loc/rep") | 
|---|
|  |  |  | public R monitorLocRep(){ | 
|---|
|  |  |  | List<Map<String, Object>> pie = new ArrayList<>(); | 
|---|