| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.StringUtils; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Optional; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | if (!Cools.isEmpty(agvWrkMastService.selectByContainerCode(param.getBarcode()))) { |
| | | throw new CoolException(param.getBarcode() + "货架码已存在AGV工作档中"); |
| | | } |
| | | //判断是否有相同明细 |
| | | List<CombParam.CombMat> combMats = param.getCombMats(); |
| | | Map<String, String> data = new HashMap<>(); |
| | | for (CombParam.CombMat combMat : combMats) { |
| | | String matnr = combMat.getMatnr(); |
| | | String csocode = combMat.getCsocode(); |
| | | if (data.get(matnr + csocode) != null) { |
| | | throw new CoolException("明细中存在相同物料号和订单号"); |
| | | } |
| | | data.put(matnr + csocode, matnr + csocode); |
| | | } |
| | | |
| | | if (Cools.isEmpty(param.getOrderNo())) { |
| | | //无单组托 |