|
|
|
@ -3,8 +3,10 @@ package com.glxp.api.controller.basic;
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
|
|
import com.glxp.api.dao.basic.UdiRelevanceDao;
|
|
|
|
|
import com.glxp.api.dto.DictDto;
|
|
|
|
|
import com.glxp.api.entity.thrsys.CodeRel;
|
|
|
|
|
import com.glxp.api.entity.thrsys.YbDrug;
|
|
|
|
|
import com.glxp.api.http.ErpBasicClient;
|
|
|
|
|
import com.glxp.api.http.sync.SpsDirectClient;
|
|
|
|
|
import com.glxp.api.res.chs.YbHcflEntityResponse;
|
|
|
|
|
import com.glxp.api.service.inout.impl.IoCodeService;
|
|
|
|
|
import com.glxp.api.service.inv.impl.InvProductService;
|
|
|
|
@ -85,6 +87,8 @@ public class UdiRelevanceController extends BaseController {
|
|
|
|
|
ErpBasicClient erpBasicClient;
|
|
|
|
|
@Resource
|
|
|
|
|
YbDrugService ybDrugService;
|
|
|
|
|
@Resource
|
|
|
|
|
SpsDirectClient spsDirectClient;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//手持终端下载UDI产品信息
|
|
|
|
@ -415,6 +419,17 @@ public class UdiRelevanceController extends BaseController {
|
|
|
|
|
|
|
|
|
|
udiProductService.updateLevelCount(udiRelevanceEntity);
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
CodeRel codeRel = new CodeRel();
|
|
|
|
|
codeRel.setDinamecode(udiProductEntity.getNameCode());
|
|
|
|
|
codeRel.setYbbm(udiProductEntity.getYbbm());
|
|
|
|
|
codeRel.setSptm(udiProductEntity.getSptm());
|
|
|
|
|
codeRel.setTyshxyh(udiProductEntity.getTyshxydm());
|
|
|
|
|
codeRel.setUpdatetime(new Date());
|
|
|
|
|
spsDirectClient.updateCodeRelDetail(codeRel);
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
System.out.println("上传多码融合:"+e);
|
|
|
|
|
}
|
|
|
|
|
return ResultVOUtils.success("更新成功");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|