feat: 启用单品种槽位

dev_fifo_z
chenhc 6 months ago
parent 546591f1d9
commit 1db008e039

@ -123,6 +123,9 @@ public class IoCodeTempController extends BaseController {
@Resource @Resource
IoCollectSetService collectSetService; IoCollectSetService collectSetService;
@Resource
SysWorkplaceFreightService sysWorkplaceFreightService;
/** /**
* PDA----- * PDA-----
@ -1732,13 +1735,16 @@ public class IoCodeTempController extends BaseController {
} }
} else { } else {
//判断产品是否已经绑定其他槽位 //判断产品是否已经绑定其他槽位
// SysWorkplaceQueue workplaceQueue1 = sysWorkplaceQueueService.getOne(new LambdaQueryWrapper<SysWorkplaceQueue>().eq(SysWorkplaceQueue::getRelId, udiRelevanceResponse.getId())); SysWorkplaceQueue workplaceQueue1 = sysWorkplaceQueueService.getOne(new LambdaQueryWrapper<SysWorkplaceQueue>().eq(SysWorkplaceQueue::getRelId, udiRelevanceResponse.getId()));
// if (workplaceQueue1 != null) { String freightCode = workplaceQueue1.getFreightCode();
// if (!orderEntity.getWorkPlaceQueueCode().equals(workplaceQueue1.getCode())) { SysWorkplaceFreight one = sysWorkplaceFreightService.getOne(new LambdaQueryWrapper<SysWorkplaceFreight>().eq(SysWorkplaceFreight::getCode,freightCode));
//// orderService.deleteByBillNo(orderId); Integer isSingQueue = one.getIsSingQueue();
// return ResultVOUtils.error(507, "当前产品已绑定在" + workplaceQueue1.getCode() + "取货槽"); if (workplaceQueue1 != null && isSingQueue == 1) {
// } if (!orderEntity.getWorkPlaceQueueCode().equals(workplaceQueue1.getCode())) {
// } // orderService.deleteByBillNo(orderId);
return ResultVOUtils.error(507, "当前货架已启用单品种槽位且产品已绑定在" + workplaceQueue1.getCode() + "取货槽");
}
}
} }
} else { } else {
return ResultVOUtils.error(500, "取货槽位不存在!"); return ResultVOUtils.error(500, "取货槽位不存在!");

Loading…
Cancel
Save