|
|
|
@ -293,7 +293,7 @@ public class UdiRlSupController extends BaseController {
|
|
|
|
|
udiProductEntity.setUpdateTime(new Date());
|
|
|
|
|
UdiRelevanceEntity udiRelevanceEntity1 = udiRelevanceService.selectById(Long.valueOf(rlidStr));
|
|
|
|
|
UdiProductEntity byUuid = udiProductService.findByUuid(udiRelevanceEntity1.getUuid());
|
|
|
|
|
if (byUuid != null){
|
|
|
|
|
if (byUuid != null) {
|
|
|
|
|
byUuid.setCatalogname1(udiProductEntity.getCatalogname1());
|
|
|
|
|
byUuid.setCatalogname2(udiProductEntity.getCatalogname2());
|
|
|
|
|
byUuid.setCatalogname3(udiProductEntity.getCatalogname3());
|
|
|
|
@ -301,7 +301,7 @@ public class UdiRlSupController extends BaseController {
|
|
|
|
|
byUuid.setManufactory(udiProductEntity.getManufactory());
|
|
|
|
|
byUuid.setUpdateTime(new Date());
|
|
|
|
|
udiProductService.updateUdiInfo(byUuid);
|
|
|
|
|
}else {
|
|
|
|
|
} else {
|
|
|
|
|
udiProductEntity.setId(IdUtil.getSnowflakeNextId());
|
|
|
|
|
udiProductService.insertUdiInfo(udiProductEntity);
|
|
|
|
|
}
|
|
|
|
@ -309,9 +309,9 @@ public class UdiRlSupController extends BaseController {
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
CodeRel codeRel = new CodeRel();
|
|
|
|
|
if(udiProductEntity.getProductsType() == null || udiProductEntity.getProductsType() == 1){
|
|
|
|
|
if (udiProductEntity.getProductsType() == null || udiProductEntity.getProductsType() == 1) {
|
|
|
|
|
codeRel.setDiNameCode(udiProductEntity.getNameCode());
|
|
|
|
|
}else {
|
|
|
|
|
} else {
|
|
|
|
|
codeRel.setDrugCode(udiProductEntity.getNameCode());
|
|
|
|
|
}
|
|
|
|
|
codeRel.setYbbm(udiProductEntity.getYbbm());
|
|
|
|
@ -319,8 +319,8 @@ public class UdiRlSupController extends BaseController {
|
|
|
|
|
codeRel.setTyshxyh(udiProductEntity.getTyshxydm());
|
|
|
|
|
codeRel.setUpdateTime(new Date());
|
|
|
|
|
erpBasicClient.updateCodeRelDetail(codeRel);
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
System.out.println("上传多码融合:"+e);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
System.out.println("上传多码融合:" + e);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ResultVOUtils.success("选入成功!");
|
|
|
|
@ -365,10 +365,28 @@ public class UdiRlSupController extends BaseController {
|
|
|
|
|
BeanUtil.copyProperties(udiInfoExportRequest.getSupplementRequest(), udiProductEntity);
|
|
|
|
|
//处理是否需要扫码字段
|
|
|
|
|
classifyCodeService.updateRequireScanCode(udiProductEntity);
|
|
|
|
|
udiProductEntity.setId(IdUtil.getSnowflakeNextId());
|
|
|
|
|
udiProductService.insertUdiInfo(udiProductEntity);
|
|
|
|
|
|
|
|
|
|
udiProductEntity.setUpdateTime(new Date());
|
|
|
|
|
UdiRelevanceEntity udiRelevanceEntity1 = udiRelevanceService.selectById(Long.valueOf(rlidStr));
|
|
|
|
|
UdiProductEntity byUuid = udiProductService.findByUuid(udiRelevanceEntity1.getUuid());
|
|
|
|
|
if (byUuid != null) {
|
|
|
|
|
byUuid.setCatalogname1(udiProductEntity.getCatalogname1());
|
|
|
|
|
byUuid.setCatalogname2(udiProductEntity.getCatalogname2());
|
|
|
|
|
byUuid.setCatalogname3(udiProductEntity.getCatalogname3());
|
|
|
|
|
byUuid.setDetailSort(udiProductEntity.getDetailSort());
|
|
|
|
|
byUuid.setYbbm(udiProductEntity.getYbbm());
|
|
|
|
|
byUuid.setManufactory(udiProductEntity.getManufactory());
|
|
|
|
|
byUuid.setUpdateTime(new Date());
|
|
|
|
|
udiProductService.updateUdiInfo(byUuid);
|
|
|
|
|
} else {
|
|
|
|
|
udiProductEntity.setId(IdUtil.getSnowflakeNextId());
|
|
|
|
|
udiProductService.insertUdiInfo(udiProductEntity);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ResultVOUtils.success("选入成功!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@PostMapping("/sale/info/updateCompanyProductRelevance")
|
|
|
|
|
@Log(title = "单据管理", businessType = BusinessType.UPDATE)
|
|
|
|
|