| | |
| | | import com.zy.asrs.entity.result.MobileAdjustResult; |
| | | import com.zy.asrs.mapper.ManLocDetlMapper; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.asrs.service.impl.MatServiceImpl; |
| | | import com.zy.common.model.WrkDto; |
| | | import com.zy.common.utils.HttpHandler; |
| | | import com.zy.common.web.BaseController; |
| | |
| | | |
| | | @Autowired |
| | | private ExdMaterialMapper exdMaterialMapper; |
| | | @Autowired |
| | | private MatServiceImpl matService; |
| | | |
| | | // 商品上架 |
| | | @RequestMapping("/mat/onSale/auth") |
| | |
| | | @RequestMapping("/comb/auth") |
| | | @ManagerAuth(memo = "组托") |
| | | public R comb(@RequestBody CombParam combParam) { |
| | | log.info("组托数据:{}", combParam.toString()); |
| | | mobileService.comb(combParam, getUserId(), getUser().getEmail()); |
| | | return R.ok("组托成功"); |
| | | } |
| | |
| | | //空托盘缓冲区 小:E8 大:E9 |
| | | String rStaNo = "E8"; |
| | | if (barcode.substring(0, 1).equals("9")) { |
| | | String rStaNo ="E8"; |
| | | String type ="ZONE"; //区域 |
| | | if(barcode.substring(0,1).equals("9")){ |
| | | rStaNo = "E9"; |
| | | } |
| | | String type = "ZONE"; //区域 |
| | | Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "autoE").eq("status", "1")); |
| | | if (config != null) { |
| | | type = "STACK"; //巷道 |
| | |
| | | } |
| | | configService.updateById(config); |
| | | }else{ |
| | | Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "autoE").eq("status", "1")); |
| | | config = configService.selectOne(new EntityWrapper<Config>().eq("code", "autoE").eq("status", "1")); |
| | | |
| | | if (config != null) { |
| | | type ="STACK"; //巷道 |
| | |
| | | if (bool) { |
| | | return R.ok(); |
| | | } else { |
| | | return R.error(msg); |
| | | return R.error(); |
| | | } |
| | | |
| | | } |
| | | |
| | | return R.error(); |
| | | } |
| | | |
| | | /** |
| | | * 执行移库任务--点到点 |
| | |
| | | if (barcode1 == null) { |
| | | return R.error("批次对应的验布数据不存在"); |
| | | } |
| | | return R.ok(barcode1); |
| | | Mat mat = matService.selectByMatnr(barcode1.getItemnumber()); |
| | | mat.setAnfme(barcode1.getQty()); |
| | | mat.setBc(barcode); |
| | | return R.ok(mat); |
| | | } |
| | | |
| | | @RequestMapping(value = "/getOrderNo/auth") |