|
|
|
@ -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){
|
|
|
|
|