| | |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.math.BigDecimal; |
| | | import java.math.RoundingMode; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | // } |
| | | waitPakins = waitPakinService.selectList(new EntityWrapper<WaitPakin>().eq("zpallet", param.getBarcode())); |
| | | if (Cools.isEmpty(waitPakins)) { |
| | | return R.error("请先添加入库通知档"); |
| | | return R.error("请先收货后再入库"); |
| | | // WrkMast wrkMast = wrkMastService.selectByBarcode(param.getBarcode()); |
| | | // if (wrkMast != null && wrkMast.getIoType() == 103) { |
| | | // return R.parse(CodeRes.PICK_600); |
| | |
| | | locTypeDto.setLocType2((short) 1); |
| | | } |
| | | |
| | | // 入参重量最多两位小数 |
| | | if (param.getWeight() != null) { |
| | | param.setWeight(param.getWeight().setScale(2, RoundingMode.HALF_UP)); |
| | | } |
| | | |
| | | StartupDto dto = startupFullPutStore(param.getSourceStaNo(), param.getBarcode(), locTypeDto, waitPakins,param.getWeight()); |
| | | log.info("WCS入库接口返参:{},托盘码:{}", dto, param.getBarcode()); |
| | | return R.ok().add(dto); |