|
|
|
@ -766,15 +766,16 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
addBizProductReqeust.setCount(aliYljgBillDetailDrugCodeList1.size() * udiCalCountUtil.getCirActCount(udiRelevanceResponse));
|
|
|
|
|
|
|
|
|
|
addBizProductReqeust.setBatchNo(aliYljgBillDetailDrug.getProduceBatchNo());
|
|
|
|
|
if (StrUtil.isNotEmpty(aliYljgBillDetailDrug.getProduceDate())){
|
|
|
|
|
if (StrUtil.isNotEmpty(aliYljgBillDetailDrug.getProduceDate())) {
|
|
|
|
|
addBizProductReqeust.setProductDate(aliYljgBillDetailDrug.getProduceDate().substring(2).replace(" 00:00:00", "").replace("-", ""));
|
|
|
|
|
}
|
|
|
|
|
if (StrUtil.isNotEmpty(aliYljgBillDetailDrug.getValidEndDate())){
|
|
|
|
|
if (StrUtil.isNotEmpty(aliYljgBillDetailDrug.getValidEndDate())) {
|
|
|
|
|
addBizProductReqeust.setExpireDate(aliYljgBillDetailDrug.getValidEndDate().substring(2).replace(" 00:00:00", "").replace("-", ""));
|
|
|
|
|
}
|
|
|
|
|
if (i == 0) {
|
|
|
|
|
addBizProductReqeust.setOrderEntity(ioOrderEntity);
|
|
|
|
|
}
|
|
|
|
|
addBizProductReqeust.setProductType(udiRelevanceResponse.getProductType());
|
|
|
|
|
BaseResponse response = orderDetailBizService.addBizProduct(addBizProductReqeust);
|
|
|
|
|
if (response.getCode() != 20000) {
|
|
|
|
|
return response;
|
|
|
|
@ -791,27 +792,27 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
AliYljgBillDetailDrugCode aliYljgBillDetailDrugCode = aliYljgBillDetailDrugCodeList.get(j);
|
|
|
|
|
addOrderRequest.setCode(aliYljgBillDetailDrugCode.getCode());
|
|
|
|
|
|
|
|
|
|
IoCodeLostEntity codeLostEntity = ioCodeLostService.findByCode(code);
|
|
|
|
|
IoCodeLostEntity codeLostEntity = ioCodeLostService.findByCode(aliYljgBillDetailDrugCode.getCode());
|
|
|
|
|
if (codeLostEntity == null) {
|
|
|
|
|
codeLostEntity = new IoCodeLostEntity();
|
|
|
|
|
codeLostEntity.setId(IdUtil.getSnowflakeNextId());
|
|
|
|
|
codeLostEntity.setNameCode(nameCode);
|
|
|
|
|
codeLostEntity.setCode(code);
|
|
|
|
|
codeLostEntity.setCode(aliYljgBillDetailDrugCode.getCode());
|
|
|
|
|
codeLostEntity.setBatchNo(aliYljgBillDetailDrug.getProduceBatchNo());
|
|
|
|
|
if (StrUtil.isNotEmpty(aliYljgBillDetailDrug.getProduceDate())){
|
|
|
|
|
if (StrUtil.isNotEmpty(aliYljgBillDetailDrug.getProduceDate())) {
|
|
|
|
|
codeLostEntity.setProduceDate(aliYljgBillDetailDrug.getProduceDate().substring(2).replace(" 00:00:00", "").replace("-", ""));
|
|
|
|
|
}
|
|
|
|
|
if (StrUtil.isNotEmpty(aliYljgBillDetailDrug.getValidEndDate())){
|
|
|
|
|
if (StrUtil.isNotEmpty(aliYljgBillDetailDrug.getValidEndDate())) {
|
|
|
|
|
codeLostEntity.setExpireDate(aliYljgBillDetailDrug.getValidEndDate().substring(2).replace(" 00:00:00", "").replace("-", ""));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
codeLostEntity.setBatchNo(aliYljgBillDetailDrug.getProduceBatchNo());
|
|
|
|
|
if (StrUtil.isNotEmpty(aliYljgBillDetailDrug.getProduceDate())){
|
|
|
|
|
if (StrUtil.isNotEmpty(aliYljgBillDetailDrug.getProduceDate())) {
|
|
|
|
|
codeLostEntity.setProduceDate(aliYljgBillDetailDrug.getProduceDate().substring(2).replace(" 00:00:00", "").replace("-", ""));
|
|
|
|
|
}
|
|
|
|
|
if (StrUtil.isNotEmpty(aliYljgBillDetailDrug.getValidEndDate())){
|
|
|
|
|
if (StrUtil.isNotEmpty(aliYljgBillDetailDrug.getValidEndDate())) {
|
|
|
|
|
codeLostEntity.setExpireDate(aliYljgBillDetailDrug.getValidEndDate().substring(2).replace(" 00:00:00", "").replace("-", ""));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|