update 企标计划变更流程 导入

This commit is contained in:
lijiarao
2024-10-10 14:20:08 +08:00
parent 63829e2bc9
commit 209b93a0f3
@@ -129,17 +129,12 @@ public class ProcessAnnualInitLinkService extends ServiceImpl<ProcessAnnualInitL
if (StringUtils.isNotEmpty(msg.toString())) {
throw new JeroBootException(msg.toString());
}
for (ProcessAnnualInitLinkExcelVO excelDatum : excelList) {
String standardNumber = excelDatum.getStandardNumber();
LawsEnterpriseStandard lawsEnterpriseStandard = enterpriseStandardService.queryByStandardNumber(standardNumber);
excelDatum.setStandardId(lawsEnterpriseStandard.getId());
}
return excelList;
} catch (Exception e) {
log.error("文件导入失败:",e);
if(Objects.isNull(e.getMessage())){
throw new JeroBootException("文件导入失败:请填写内容标题!");
}
log.error("文件导入失败:",e);
throw new JeroBootException("文件导入失败:" + e.getMessage());
} finally {
try {
@@ -185,12 +180,20 @@ public class ProcessAnnualInitLinkService extends ServiceImpl<ProcessAnnualInitL
excelVO.setRevisionType(espRevisionTypeMap.get(revisionType));
}
String standardNumber = excelVO.getStandardNumber();
LawsEnterpriseStandard lawsEnterpriseStandard = enterpriseStandardService.queryByStandardNumber(standardNumber);
if (lawsEnterpriseStandard != null){
excelVO.setStandardId(lawsEnterpriseStandard.getId());
if (StringUtils.isBlank(standardNumber)){
msgSub.append("" + (i + 4) + "" + "企标编号不能为空;");
}else {
LawsEnterpriseStandard lawsEnterpriseStandard = enterpriseStandardService.queryByStandardNumber(standardNumber);
if (lawsEnterpriseStandard != null){
excelVO.setStandardId(lawsEnterpriseStandard.getId());
}else {
msgSub.append("" + (i + 4) + "" + "企标编号不存在;");
}
}
String standardName = excelVO.getStandardName();
if (StringUtils.isBlank(standardName)){
msgSub.append("" + (i + 4) + "" + "企标名称不能为空;");
}
String mainDraftingUser = excelVO.getMainDraftingUser();
if (StringUtils.isBlank(mainDraftingUser)){
msgSub.append("" + (i + 4) + "" + "起草人不能为空;");