feat: 多码融合

dev_unify
chenhc 5 months ago
parent e4350529f1
commit eda1d2232e

@ -399,14 +399,14 @@ public class UdiRelevanceController extends BaseController {
try {
CodeRel codeRel = new CodeRel();
if(udiProductEntity.getProductsType() == 1){
codeRel.setDiNameCode(udiProductEntity.getNameCode());
if(udiProductEntity.getProductsType() == null || udiProductEntity.getProductsType() == 1){
codeRel.setDiNameCode(udiRelevanceSaveRequest.getNameCode());
}else {
codeRel.setDrugCode(udiProductEntity.getNameCode());
codeRel.setDrugCode(udiRelevanceSaveRequest.getNameCode());
}
codeRel.setYbbm(udiProductEntity.getYbbm());
codeRel.setSptm(udiProductEntity.getSptm());
codeRel.setTyshxyh(udiProductEntity.getTyshxydm());
codeRel.setYbbm(udiRelevanceSaveRequest.getYbbm());
codeRel.setSptm(udiRelevanceSaveRequest.getSptm());
codeRel.setTyshxyh(udiRelevanceSaveRequest.getTyshxydm());
codeRel.setUpdateTime(new Date());
erpBasicClient.updateCodeRelDetail(codeRel);
}catch (Exception e){

@ -309,7 +309,7 @@ public class UdiRlSupController extends BaseController {
try {
CodeRel codeRel = new CodeRel();
if(udiProductEntity.getProductsType() == 1){
if(udiProductEntity.getProductsType() == null || udiProductEntity.getProductsType() == 1){
codeRel.setDiNameCode(udiProductEntity.getNameCode());
}else {
codeRel.setDrugCode(udiProductEntity.getNameCode());

@ -495,7 +495,7 @@ public class ThrProductsAddDiController {
try {
CodeRel codeRel = new CodeRel();
if(thrProductsAdddiEntity.getProductsType() == 1){
if(thrProductsAdddiEntity.getProductsType() == null || thrProductsAdddiEntity.getProductsType() == 1){
codeRel.setDiNameCode(thrProductsAdddiEntity.getNameCode());
}else {
codeRel.setDrugCode(thrProductsAdddiEntity.getNameCode());

Loading…
Cancel
Save