update 企标计划变更流程 导入
This commit is contained in:
+13
-10
@@ -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) + "行" + "起草人不能为空;");
|
||||
|
||||
Reference in New Issue
Block a user