| | |
| | | import com.zy.asrs.entity.*; |
| | | import com.zy.asrs.entity.param.*; |
| | | import com.zy.asrs.entity.result.MobileAdjustResult; |
| | | import com.zy.asrs.mapper.CanFinMapper; |
| | | import com.zy.asrs.mapper.ManLocDetlMapper; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.asrs.service.impl.OrderDetlPakinServiceImpl; |
| | |
| | | private ManLocDetlMapper manLocDetlMapper; |
| | | @Autowired |
| | | private WrkDetlLogService wrkDetlLogService; |
| | | @Autowired |
| | | private CanFinMapper canFinMapper; |
| | | |
| | | @Resource |
| | | private StaDescService staDescService; |
| | |
| | | @RequestMapping("/comb/auth") |
| | | @ManagerAuth(memo = "组托") |
| | | public R comb(@RequestBody CombParam combParam){ |
| | | mobileService.comb(combParam, getUserId()); |
| | | |
| | | if (combParam.getUserId() != null && !combParam.getUserId().equals(null)){ |
| | | mobileService.comb(combParam, combParam.getUserId()); |
| | | }else { |
| | | mobileService.comb(combParam, getUserId()); |
| | | } |
| | | |
| | | return R.ok("组托成功"); |
| | | } |
| | | |
| | |
| | | */ |
| | | // pda呼叫空料框出库 |
| | | @PostMapping("/callEmptyBinOutBound") |
| | | @ManagerAuth(memo = "pda呼叫空料框出库") |
| | | // @ManagerAuth(memo = "pda呼叫空料框出库") |
| | | public synchronized R callEmptyBinOutBound(@RequestParam(required = false) String locNo |
| | | , @RequestParam(required = false) String size) { |
| | | , @RequestParam(required = false) String size |
| | | , @RequestParam(required = false) String palletFormat |
| | | , @RequestParam(required = false) String agvTaskNo) { |
| | | if (Cools.isEmpty(locNo) || Cools.isEmpty(size)) { |
| | | return R.error("站点或者大小不能为空"); |
| | | } |
| | |
| | | if (wrkMast != null) { |
| | | return R.error("该站点="+locNo+"已经有空板出库任务,为了不堵塞堆垛机接驳站点,禁止下发多个空板出库任务"); |
| | | } |
| | | return mobileService.callEmptyBinOutBound(locNo,size,getUserId()); |
| | | return mobileService.callEmptyBinOutBound(locNo, size, palletFormat, agvTaskNo, 9995L); |
| | | } |
| | | |
| | | /** |
| | |
| | | .setAppeTime(date) |
| | | .setModiUser(9945L) |
| | | .setModiTime(date); |
| | | if (!taskService.insert(task)) { |
| | | if (taskService.insert(task)) { |
| | | Date now = new Date(); |
| | | CanFin canFin = new CanFin(); |
| | | canFin.setAgvType("agv-in"); |
| | | canFin.setInNo(TaskNo); |
| | | canFin.setApplyTime(now); |
| | | canFinMapper.insert(canFin); |
| | | }else{ |
| | | throw new CoolException("保存工作档失败"); |
| | | } |
| | | |
| | | return r; |
| | | return R.error("下发失败"); |
| | | } |
| | | |
| | | @RequestMapping("/orderIn") |