| | |
| | | if (Cools.isEmpty(locMast) || null==locMast.getLocNo()){ |
| | | return R.error(); |
| | | } |
| | | if (!Cools.isEmpty(locMast.getContainerCode())){ |
| | | locMast.setBarcode(locMast.getContainerCode()); |
| | | } |
| | | |
| | | if (locMast.getEmptyContainer$().equals("N") ){ |
| | | if (locMast.getContainerCode().isEmpty() || locMast.getContainerTypeCode().isEmpty()){ |
| | | return R.error("容器编码或容器类型有误"); |
| | | } |
| | | } |
| | | if (locMast.getLocSts().equals("O")){ |
| | | locMast.setBarcode(null); |
| | | } |
| | | locMast.setModiUser(getUserId()); |
| | | locMast.setModiTime(new Date()); |
| | | locMastService.updateById(locMast); |
| | | locMastService.toWmsLocStatus(locMast); |
| | | return R.ok(); |
| | | } |
| | | |