|
|
|
@ -156,7 +156,7 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
datas.add(addBizProductReqeust);
|
|
|
|
|
}
|
|
|
|
|
for (AddBizProductReqeust item : datas) {
|
|
|
|
|
UdiRelevanceResponse udiRelevanceResponse = udiRelevanceService.selectSupGroupById(item.getRelId());
|
|
|
|
|
UdiRelevanceResponse udiRelevanceResponse = udiRelevanceService.selectSupGroupById(item.getRelId(), addBizProductReqeust.getSupId());
|
|
|
|
|
|
|
|
|
|
// todo 查询产品是否已经通过认证
|
|
|
|
|
BasicBussinessTypeEntity bussinessTypeEntity = basicBussinessTypeService.findByAction(orderEntity.getAction());
|
|
|
|
@ -169,6 +169,13 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (bussinessTypeEntity.isVailDispatch()) {
|
|
|
|
|
if (!udiRelevanceResponse.isDispatch()) {
|
|
|
|
|
return ResultVOUtils.error(500, "该产品不可配送,请联系院方!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IoOrderDetailBizEntity ioOrderDetailBizEntity = new IoOrderDetailBizEntity();
|
|
|
|
|
ioOrderDetailBizEntity.setOrderIdFk(orderEntity.getBillNo());
|
|
|
|
|
ioOrderDetailBizEntity.setBindRlFk(udiRelevanceResponse.getId());
|
|
|
|
|