优化提示信息

This commit is contained in:
曹鹏飞 2024-03-15 11:31:19 +08:00
parent f0a70ae201
commit eeb2e3fc3c
2 changed files with 5 additions and 6 deletions

View File

@ -15,7 +15,7 @@ public class UserInfoService {
@Resource
MaterialMainService materialMainService;
public UserInfoVO getUserInfo(String userCode){
public UserInfoVO getUserInfoByUserCode(String userCode){
return materialMainService.getBaseMapper().getUserInfoByUserCode(userCode);
}
}

View File

@ -115,12 +115,11 @@ public class PlmBomToOriginalConvert extends BaseConvert {
delBomChild(originalBom.getRowId());
handlerChild(originalBom,originalSourceEnum);
} else { //用户不一致
UserInfoVO userInfo =SpringUtil.getBean(UserInfoService.class).getUserInfoByUserCode(originalBom.getCreatedBy());
if (isSame(getBomChild(originalBom.getRowId()), Convert.toList(BomNewOriginalChildEntity.class, childs))) {
importErrorResult.add(new ImportOriginalBomVO(parent.getChartNo(),"BOM数据和" + originalBom.getCreatedBy() + "导入的数据不一致,请沟通处理"));
// VUtils.isTure(true).throwMessage("图号:"+parent.getChartNo()+"的BOM数据和" + originalBom.getCreatedBy() + "导入的数据不一致,请沟通处理");
importErrorResult.add(new ImportOriginalBomVO(parent.getChartNo(),"BOM数据和" + userInfo.getRealName() + "("+userInfo.getUserCode()+")导入的数据不一致,请沟通处理"));
} else {
importErrorResult.add(new ImportOriginalBomVO( parent.getChartNo(),originalBom.getCreatedBy() + "已导入了相同的BOM,直接引用"));
// VUtils.isTure(true).throwMessage("图号:"+parent.getChartNo()+" "+originalBom.getCreatedBy() + "已导入了相同的BOM,直接引用");
importErrorResult.add(new ImportOriginalBomVO( parent.getChartNo(),userInfo.getRealName() + "("+userInfo.getUserCode()+")已导入了相同的BOM,直接引用"));
}
}
}
@ -134,7 +133,7 @@ public class PlmBomToOriginalConvert extends BaseConvert {
// VUtils.isTure(true).throwMessage("图号:"+parent.getChartNo()+"此数据已创建BOM请删除BOM重新导入");
} else {
UserInfoVO userInfo =SpringUtil.getBean(UserInfoService.class).getUserInfo(ebom.getCreatedBy());
UserInfoVO userInfo =SpringUtil.getBean(UserInfoService.class).getUserInfoByUserCode(ebom.getCreatedBy());
importErrorResult.add(new ImportOriginalBomVO( parent.getChartNo(),"此数据已被"+userInfo.getRealName()+"("+userInfo.getUserCode()+")创建请联系TA处理"));
// VUtils.isTure(true).throwMessage("图号:"+parent.getChartNo()+"此数据已被其他用户创建,请联系其他人处理");
}