| | |
| | | @Transactional |
| | | public void taskArmReport(TaskArmReportParam param) { |
| | | BasArmMast basArmMast = new BasArmMast(param); |
| | | List<BasArm> basArmList = basArmService.selectList(new EntityWrapper<BasArm>().eq("sorting_line", basArmMast.getStaNo())); |
| | | List<BasArm> basArmList = basArmService.selectList(new EntityWrapper<BasArm>().eq("sorting_line", basArmMast.getSortingLine())); |
| | | for (BasArm basArm : basArmList) { |
| | | if (basArm.getStatus()!=1){ |
| | | continue; |
| | |
| | | BasArmMast basArmMast = basArmMastService.selectOne( |
| | | new EntityWrapper<BasArmMast>() |
| | | .eq("sorting_line", param.getStaNo()) |
| | | .eq("arm_no", param.getArm_no()) |
| | | .eq("status", 1) |
| | | ); |
| | | if (Cools.isEmpty(basArmMast)){ |
| | |
| | | public void taskArmWorkspaceStatus(TaskArmWorkspaceStatusParam param) { |
| | | BasArmMast basArmMast = basArmMastService.selectOne( |
| | | new EntityWrapper<BasArmMast>() |
| | | .eq("sta_no", Integer.getInteger(param.getId())) |
| | | .eq("sorting_line", Integer.getInteger(param.getId())) |
| | | .eq("arm_no", param.getArm_no()) |
| | | .eq("status", 2) |
| | | ); |
| | | if (Cools.isEmpty(basArmMast)){ |
| | | throw new CoolException("未查询到相关机械臂拆码垛任务!!!"+ JSON.toJSONString(param)); |
| | | } |
| | | basArmMastService.updateArmMastStatus(param.getArm_no(),basArmMast.getSortingLine(),2,3); |
| | | } |
| | | |
| | | // basArmMast.setStatus(2); |
| | | // basArmMastService.updateArmMastStatus(1,basArm.getSortingLine(),3,4); |
| | | @Override |
| | | @Transactional |
| | | public void taskArmWorkOrderStatus(OrderArmEndParam param) { |
| | | BasArmMast basArmMast = basArmMastService.selectOne( |
| | | new EntityWrapper<BasArmMast>() |
| | | .eq("sorting_line", Integer.getInteger(param.getStaNo())) |
| | | .eq("arm_no", param.getArm_no()) |
| | | .eq("status", 5) |
| | | ); |
| | | if (Cools.isEmpty(basArmMast)){ |
| | | throw new CoolException("未查询到相关机械臂拆码垛任务!!!"+ JSON.toJSONString(param)); |
| | | } |
| | | basArmMastService.updateArmMastStatus(param.getArm_no(),basArmMast.getSortingLine(),5,6); |
| | | } |
| | | |
| | | } |