diff --git a/src/main/java/com/ccsens/defaultwbs/service/ImportService.java b/src/main/java/com/ccsens/defaultwbs/service/ImportService.java index a4aad08..bddb8a1 100644 --- a/src/main/java/com/ccsens/defaultwbs/service/ImportService.java +++ b/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); diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 2fb38e5..5abf242 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,4 +1,4 @@ spring: profiles: - active: dev - include: common, util-dev + active: prod + include: common, util-prod