| | |
| | | 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){ |
| | | |
| | | if (combParam.getUserId() != null && !combParam.getUserId().equals(null)){ |
| | | mobileService.comb(combParam, combParam.getUserId()); |
| | | }else { |
| | | mobileService.comb(combParam, getUserId()); |
| | | } |
| | | |
| | | return R.ok("组托成功"); |
| | | } |
| | | |
| | |
| | | .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") |