Browse Source

20210817

master
zy_Java 4 years ago
parent
commit
cd2d6856c1
  1. 9
      src/main/java/com/ccsens/defaultwbs/service/ImportService.java
  2. 4
      src/main/resources/application.yml

9
src/main/java/com/ccsens/defaultwbs/service/ImportService.java

@ -764,9 +764,9 @@ public class ImportService implements IImportService {
//查找定期任务标签并关联任务
Long taskLabel = subLabelDao.getLabelByTypeAndLevel(1, 3);
saveLabelTask(taskDetailId,taskLabel);
//添加时间颗粒度标签并关联
Long timeLabel = subLabelDao.getLabelByTypeAndLevel(0, 4);
saveLabelTask(taskDetailId,timeLabel);
// //添加时间颗粒度标签并关联
// Long timeLabel = subLabelDao.getLabelByTypeAndLevel(0, 4);
// saveLabelTask(taskDetailId,timeLabel);
}catch (Exception e){
Date startDate = new Date(project.getBeginTime());
Date endDate = new Date(project.getEndTime());
@ -790,6 +790,9 @@ public class ImportService implements IImportService {
if(CollectionUtil.isNotEmpty(proTaskSubList)){
sTaskDao.insertSelectiveList(proTaskSubList);
}
//查找定期任务标签并关联任务
Long taskLabel = subLabelDao.getLabelByTypeAndLevel(1, 3);
saveLabelTask(taskDetailId,taskLabel);
}catch (Exception e1){
throw new BaseException(String.valueOf(e1));
// throw new BaseException(DefaultCodeError.WBS_PROJECT_TIME_ERROR);

4
src/main/resources/application.yml

@ -1,4 +1,4 @@
spring:
profiles:
active: dev
include: common, util-dev
active: prod
include: common, util-prod

Loading…
Cancel
Save