| | |
| | | @Autowired |
| | | private CommonService commonService; |
| | | |
| | | @RequestMapping("/select/workDetl/barcode") |
| | | @ManagerAuth |
| | | public R selectWorkDetlBarcode(@RequestBody Map<String,Object> map) { |
| | | String barcode = map.get("barcode").toString(); |
| | | if (Cools.isEmpty(barcode)) { |
| | | return R.error("条码为空"); |
| | | } |
| | | WrkMast wrkMast = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("barcode", barcode)); |
| | | if (Cools.isEmpty(wrkMast)) { |
| | | return R.error("未找到任务"); |
| | | } |
| | | if (wrkMast.getWrkSts() != 14 && wrkMast.getIoType() != 103) { |
| | | return R.error("任务状态有误"); |
| | | } |
| | | List<WrkDetl> wrkDetls = wrkDetlService.selectByWrkNo(wrkMast.getWrkNo()); |
| | | if (Cools.isEmpty(wrkDetls)) { |
| | | return R.error("工作明细有误"); |
| | | } |
| | | return R.ok(wrkDetls); |
| | | |
| | | } |
| | | |
| | | @RequestMapping("/leftovers/out") |
| | | @ManagerAuth |
| | | public R leftoversOut(@RequestBody Map<String,Object> map) { |