| | |
| | |
|
| | | //组拖通知档
|
| | | waitPakins.forEach(pakin -> {
|
| | | waitPakinService.comb(pakin);
|
| | | waitPakinService.comb(pakin, ordersParam.getInType());
|
| | | });
|
| | |
|
| | |
|
| | |
| | | @Override
|
| | | @Transactional(rollbackFor = Exception.class)
|
| | | public boolean bindOrderBySite(Map<String, Object> param) {
|
| | | CacheSite siteNo = cacheSiteMapper.selectOne(new LambdaQueryWrapper<CacheSite>().eq(CacheSite::getSiteNo, param.get("siteNo")), false);
|
| | | CacheSite siteNo = cacheSiteMapper.selectOne(new LambdaQueryWrapper<CacheSite>()
|
| | | .eq(CacheSite::getSiteNo, param.get("siteNo")), false);
|
| | | if (Objects.isNull(siteNo)) {
|
| | | throw new CoolException("站点异常!!");
|
| | | }
|
| | |
| | | if (!StringUtil.isNullOrEmpty(siteNo.getOrderNo())) {
|
| | | throw new CoolException("当前播种站点已绑定订单!!");
|
| | | }
|
| | | Order order = orderService.getOne(new LambdaQueryWrapper<Order>().eq(Order::getOrderNo, param.get("orderNo").toString()));
|
| | | Order order = orderService.getOne(new LambdaQueryWrapper<Order>()
|
| | | .eq(Order::getOrderNo, param.get("orderNo").toString()));
|
| | | if (Objects.isNull(order)) {
|
| | | throw new CoolException("绑定订单不存在!!");
|
| | | }
|