Browse Source

20210419v1.1

recovery
zy_Java 5 years ago
parent
commit
8e9c55df6c
  1. 11
      tall/src/main/java/com/ccsens/tall/service/ExcelService.java
  2. 4
      tall/src/main/resources/application.yml

11
tall/src/main/java/com/ccsens/tall/service/ExcelService.java

@ -988,6 +988,7 @@ public class ExcelService implements IExcelService {
} }
//没有开始时间默认项目开始时间 //没有开始时间默认项目开始时间
try {
if (StrUtil.isNotEmpty(beginTime)) { if (StrUtil.isNotEmpty(beginTime)) {
taskDetail.setBeginTime(Long.valueOf(beginTime)); taskDetail.setBeginTime(Long.valueOf(beginTime));
} else { } else {
@ -999,6 +1000,11 @@ public class ExcelService implements IExcelService {
} else { } else {
taskDetail.setEndTime(sysProject.getEndTime()); taskDetail.setEndTime(sysProject.getEndTime());
} }
}catch (Exception e){
//日期格式错误
throw new BaseException(CodeEnum.WBS_PROJECT_TIME_ERROR.addMsg(wbsSheet.getSheetName(),i + 1));
}
//重复频率 //重复频率
if (StrUtil.isNotEmpty(repeat)) { if (StrUtil.isNotEmpty(repeat)) {
taskDetail.setCycle(repeat); taskDetail.setCycle(repeat);
@ -1320,10 +1326,11 @@ public class ExcelService implements IExcelService {
taskId = proTask.getId(); taskId = proTask.getId();
break; break;
} }
}else {
throw new BaseException(CodeEnum.NOT_TASK.addMsg(sheet.getSheetName(),(i+1),task));
} }
} }
if(taskId == null){
throw new BaseException(CodeEnum.NOT_TASK.addMsg(sheet.getSheetName(),(i+1),task));
}
} }
for (int a = 2; a < roleRow.getLastCellNum(); a++) { for (int a = 2; a < roleRow.getLastCellNum(); a++) {

4
tall/src/main/resources/application.yml

@ -1,5 +1,5 @@
spring: spring:
profiles: profiles:
active: test active: prod
include: util-test,common include: util-prod,common

Loading…
Cancel
Save