|
|
|
@ -1637,12 +1637,13 @@ public class IoCodeTempController extends BaseController {
|
|
|
|
|
else
|
|
|
|
|
return ResultVOUtils.error(500, "当前供应商不存在此配送产品!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!(bussinessTypeEntity.getAction().equals(ConstantType.SPLIT_RETURN) || bussinessTypeEntity.getAction().equals(ConstantType.SPLIT_OUT))) {
|
|
|
|
|
//校验供应商是否配送此产品
|
|
|
|
|
BaseResponse corpResponse = checkCorp(codeEnttity, bussinessTypeEntity, unitFk);
|
|
|
|
|
if (corpResponse != null) {
|
|
|
|
|
return corpResponse;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
IoOrderEntity isExit = orderService.findByBillNo(orderId);
|
|
|
|
|
if (isExit == null) {
|
|
|
|
@ -1814,7 +1815,7 @@ public class IoCodeTempController extends BaseController {
|
|
|
|
|
} else
|
|
|
|
|
codeTempService.insert(codeEnttity);
|
|
|
|
|
// 查询是否存在药品关联信息 后将结果更新至 temp表
|
|
|
|
|
updateRelCode(bussinessTypeEntity,code);
|
|
|
|
|
updateRelCode(bussinessTypeEntity, code);
|
|
|
|
|
// relCodeBatchService.threadUpdateIoCodeTempEntity(code);
|
|
|
|
|
// } else if (bussinessTypeEntity.getCheckWebNew() == 2 && bussinessTypeEntity.isCheckEnable()) {
|
|
|
|
|
} else if (IntUtil.value(addOrderRequest.getOrderType()) == ConstantStatus.ORDER_TYPE_WAIT && bussinessTypeEntity.isCheckEnable()) {
|
|
|
|
@ -1824,12 +1825,12 @@ public class IoCodeTempController extends BaseController {
|
|
|
|
|
} else
|
|
|
|
|
codeTempService.insert(codeEnttity);
|
|
|
|
|
// 异步调用 查询是否存在药品关联信息 后将结果更新至 temp表
|
|
|
|
|
updateRelCode(bussinessTypeEntity,code);
|
|
|
|
|
updateRelCode(bussinessTypeEntity, code);
|
|
|
|
|
// relCodeBatchService.threadUpdateIoCodeTempEntity(code);
|
|
|
|
|
} else {
|
|
|
|
|
checkPrice(codeEnttity, bussinessTypeEntity, inBatch, codeEnttitys);
|
|
|
|
|
codeTempService.insert(codeEnttity);
|
|
|
|
|
updateRelCode(bussinessTypeEntity,code);
|
|
|
|
|
updateRelCode(bussinessTypeEntity, code);
|
|
|
|
|
|
|
|
|
|
// 查询是否存在药品关联信息 后将结果更新至 temp表
|
|
|
|
|
// relCodeBatchService.threadUpdateIoCodeTempEntity(code);
|
|
|
|
|