feat: 多码融合

dev_unify
chenhc 5 months ago
parent c693fbc24a
commit 3d7422ecd4

@ -20,6 +20,7 @@ import com.glxp.api.dto.DictDto;
import com.glxp.api.entity.basic.*;
import com.glxp.api.entity.sync.SocketMsgEntity;
import com.glxp.api.entity.system.SystemParamConfigEntity;
import com.glxp.api.entity.thrsys.CodeRel;
import com.glxp.api.entity.thrsys.ThrProductsEntity;
import com.glxp.api.entity.thrsys.ThrSystemEntity;
import com.glxp.api.http.ErpBasicClient;
@ -396,6 +397,22 @@ public class UdiRelevanceController extends BaseController {
udiProductService.updateLevelCount(udiRelevanceEntity);
try {
CodeRel codeRel = new CodeRel();
if(udiProductEntity.getProductsType() == 1){
codeRel.setDinamecode(udiProductEntity.getNameCode());
}else {
codeRel.setDrugcode(udiProductEntity.getNameCode());
}
codeRel.setYbbm(udiProductEntity.getYbbm());
codeRel.setSptm(udiProductEntity.getSptm());
codeRel.setTyshxyh(udiProductEntity.getTyshxydm());
codeRel.setUpdatetime(new Date());
erpBasicClient.updateCodeRelDetail(codeRel);
}catch (Exception e){
System.out.println("上传多码融合:"+e);
}
return ResultVOUtils.success("更新成功");
}

@ -20,7 +20,9 @@ import com.glxp.api.entity.auth.AuthAdmin;
import com.glxp.api.entity.basic.*;
import com.glxp.api.entity.sync.SocketMsgEntity;
import com.glxp.api.entity.system.CompanyEntity;
import com.glxp.api.entity.thrsys.CodeRel;
import com.glxp.api.exception.JsonException;
import com.glxp.api.http.ErpBasicClient;
import com.glxp.api.req.basic.*;
import com.glxp.api.req.system.CompanyRequest;
import com.glxp.api.req.system.DeleteCompanyFileRequest;
@ -84,6 +86,8 @@ public class UdiRlSupController extends BaseController {
private IBasicBussinessTypeService basicBussinessTypeService;
@Resource
private com.glxp.api.service.system.ClassifyCodeService classifyCodeService;
@Resource
private ErpBasicClient erpBasicClient;
@AuthRuleAnnotation("")
@GetMapping("/sale/info/company/product/relevance/filter")
@ -301,6 +305,24 @@ public class UdiRlSupController extends BaseController {
udiProductEntity.setId(IdUtil.getSnowflakeNextId());
udiProductService.insertUdiInfo(udiProductEntity);
}
try {
CodeRel codeRel = new CodeRel();
if(udiProductEntity.getProductsType() == 1){
codeRel.setDinamecode(udiProductEntity.getNameCode());
}else {
codeRel.setDrugcode(udiProductEntity.getNameCode());
}
codeRel.setYbbm(udiProductEntity.getYbbm());
codeRel.setSptm(udiProductEntity.getSptm());
codeRel.setTyshxyh(udiProductEntity.getTyshxydm());
codeRel.setUpdatetime(new Date());
erpBasicClient.updateCodeRelDetail(codeRel);
}catch (Exception e){
System.out.println("上传多码融合:"+e);
}
return ResultVOUtils.success("选入成功!");
}

@ -19,10 +19,12 @@ import com.glxp.api.dao.system.ClassifyCodeDao;
import com.glxp.api.entity.auth.AuthAdmin;
import com.glxp.api.entity.basic.*;
import com.glxp.api.entity.system.ClassifyCodeEntity;
import com.glxp.api.entity.thrsys.CodeRel;
import com.glxp.api.entity.thrsys.ThrProductsAddDiEntity;
import com.glxp.api.entity.thrsys.ThrProductsEntity;
import com.glxp.api.entity.thrsys.ThrSystemEntity;
import com.glxp.api.exception.JsonException;
import com.glxp.api.http.ErpBasicClient;
import com.glxp.api.req.basic.SupplementRequest;
import com.glxp.api.req.basic.UdiCombineRequest;
import com.glxp.api.req.system.DeleteRequest;
@ -92,6 +94,8 @@ public class ThrProductsAddDiController {
GennerOrderUtils gennerOrderUtils;
@Resource
SystemParamConfigService systemParamConfigService;
@Resource
ErpBasicClient erpBasicClient;
/**
* DI
@ -488,6 +492,24 @@ public class ThrProductsAddDiController {
thrProductsAdddiEntity.setCustomerId(Long.parseLong(customerId));
thrProductsAddDiService.insertThrProducts(thrProductsAdddiEntity);
try {
CodeRel codeRel = new CodeRel();
if(thrProductsAdddiEntity.getProductsType() == 1){
codeRel.setDinamecode(thrProductsAdddiEntity.getNameCode());
}else {
codeRel.setDrugcode(thrProductsAdddiEntity.getNameCode());
}
codeRel.setYbbm(thrProductsAdddiEntity.getYbbm());
codeRel.setSptm(thrProductsAdddiEntity.getSptm());
codeRel.setTyshxyh(thrProductsAdddiEntity.getTyshxydm());
codeRel.setUpdatetime(new Date());
erpBasicClient.updateCodeRelDetail(codeRel);
}catch (Exception e){
System.out.println("上传多码融合:"+e);
}
return ResultVOUtils.success();
}

Loading…
Cancel
Save