| | |
| | | @GetMapping("/led/useInfo") |
| | | public R monitorLedUseInfo(@RequestParam("ledId") Integer ledId) { |
| | | Integer count1 = wrkDetlService.count1(); |
| | | Integer count11 = wrkDetlService.count11(); |
| | | Integer count3 = wrkDetlService.count3(); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("count1", count1); |
| | | map.put("count1", count1+count11); |
| | | map.put("count2", count3); |
| | | return R.ok().add(map); |
| | | } |
| | |
| | | List<WrkDetl> selectByWrkNo(Integer wrkNo); |
| | | |
| | | Integer count1(); |
| | | Integer count11(); |
| | | Integer count2(@Param("orderNo")String orderNo); |
| | | Integer count3(); |
| | | |
| | |
| | | List<WrkDetl> selectByWrkNo(Integer wrkNo); |
| | | |
| | | Integer count1(); |
| | | Integer count11(); |
| | | Integer count2(String orderNo); |
| | | Integer count3(); |
| | | |
| | |
| | | continue; |
| | | } |
| | | Integer count1 = wrkDetlService.count1(); |
| | | Integer count11 = wrkDetlService.count11(); |
| | | Integer count2 = wrkDetlService.count2(wrkDetls.get(0).getOrderNo()); |
| | | Integer count3 = wrkDetlService.count3(); |
| | | wrkDetls.forEach(wrkDetl -> ledCommand.getMatDtos().add(new MatDto(wrkDetl,count1,count2,count3))); |
| | | wrkDetls.forEach(wrkDetl -> ledCommand.getMatDtos().add(new MatDto(wrkDetl,count1+count11,count2,count3))); |
| | | } |
| | | commands.add(ledCommand); |
| | | } |
| | |
| | | return this.baseMapper.count1(); |
| | | } |
| | | @Override |
| | | public Integer count11() { |
| | | return this.baseMapper.count11(); |
| | | } |
| | | @Override |
| | | public Integer count2(String orderNo) { |
| | | return this.baseMapper.count2(orderNo); |
| | | } |
| | |
| | | </select> |
| | | |
| | | <select id="count1" resultType="Integer"> |
| | | select count(1) from asr_wrk_detl where 1=1 and (wrk_no in (select wrk_no from asr_wrk_mast where 1=1 and wrk_sts in (11,12,13,14))) |
| | | select count(1) from asr_wrk_detl where 1=1 and (wrk_no in (select wrk_no from asr_wrk_mast where 1=1 and io_type = 101 and wrk_sts in (11,12,13,14))) |
| | | </select> |
| | | |
| | | <select id="count11" resultType="Integer"> |
| | | select count(1) from asr_wrk_mast where 1=1 and io_type = 103 and wrk_sts in (11,12,13,14) |
| | | </select> |
| | | |
| | | <select id="count2" resultType="Integer"> |