|
@@ -67,9 +67,14 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
|
|
|
taskParticipantsService.saveBatch(taskParticipants);
|
|
|
}
|
|
|
}else{
|
|
|
-// if(task.getDelayTime()){
|
|
|
-//
|
|
|
-// }
|
|
|
+ if(task.getDelayTime()!=null){
|
|
|
+ //添加动态
|
|
|
+ TaskDynamic taskDynamic = new TaskDynamic();
|
|
|
+ taskDynamic.setTaskId(task.getId());
|
|
|
+ taskDynamic.setTaskState(6);//已延期
|
|
|
+ taskDynamic.setStateContent(userMapper.selectById(task.getPublishId()).getName()+Constant.TASK_DELAY+task.getDelayTime());
|
|
|
+ taskDynamicMapper.insert(taskDynamic);
|
|
|
+ }
|
|
|
taskMapper.updateById(task);
|
|
|
|
|
|
if(participantsIdes.length()>0 && participantsIdes != ""){
|