|
|
@ -14,7 +14,9 @@ import com.glxp.api.dao.basic.UdiRelevanceDao;
|
|
|
|
import com.glxp.api.entity.basic.SupEvaluateDetailEntity;
|
|
|
|
import com.glxp.api.entity.basic.SupEvaluateDetailEntity;
|
|
|
|
import com.glxp.api.entity.basic.UdiProductEntity;
|
|
|
|
import com.glxp.api.entity.basic.UdiProductEntity;
|
|
|
|
import com.glxp.api.entity.basic.UdiRelevanceEntity;
|
|
|
|
import com.glxp.api.entity.basic.UdiRelevanceEntity;
|
|
|
|
|
|
|
|
import com.glxp.api.entity.thrsys.CodeRel;
|
|
|
|
import com.glxp.api.exception.JsonException;
|
|
|
|
import com.glxp.api.exception.JsonException;
|
|
|
|
|
|
|
|
import com.glxp.api.http.sync.SpsDirectClient;
|
|
|
|
import com.glxp.api.req.basic.AddProductRequest;
|
|
|
|
import com.glxp.api.req.basic.AddProductRequest;
|
|
|
|
import com.glxp.api.req.basic.FilterUdiRelRequest;
|
|
|
|
import com.glxp.api.req.basic.FilterUdiRelRequest;
|
|
|
|
import com.glxp.api.req.basic.UdiInfoRequest;
|
|
|
|
import com.glxp.api.req.basic.UdiInfoRequest;
|
|
|
@ -48,6 +50,8 @@ public class UdiProductService extends ServiceImpl<UdiProductDao, UdiProductEnti
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
GennerOrderUtils gennerOrderUtils;
|
|
|
|
GennerOrderUtils gennerOrderUtils;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
SpsDirectClient spsDirectClient;
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
private com.glxp.api.service.system.ClassifyCodeService classifyCodeService;
|
|
|
|
private com.glxp.api.service.system.ClassifyCodeService classifyCodeService;
|
|
|
|
|
|
|
|
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger(UdiProductService.class);
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger(UdiProductService.class);
|
|
|
@ -312,6 +316,19 @@ public class UdiProductService extends ServiceImpl<UdiProductDao, UdiProductEnti
|
|
|
|
if (i == 0) {
|
|
|
|
if (i == 0) {
|
|
|
|
throw new JsonException(500, "更新错误");
|
|
|
|
throw new JsonException(500, "更新错误");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
CodeRel codeRel = new CodeRel();
|
|
|
|
|
|
|
|
codeRel.setDrugcode(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);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//修改关联表
|
|
|
|
//修改关联表
|
|
|
|