|
|
@@ -394,8 +394,11 @@ public class TaskDetailsServiceImpl extends BaseMybatisDao<TaskDetailsMapper> im
|
|
|
*/
|
|
|
@Override
|
|
|
public TaskDetails update(TaskDetails taskDetails,Integer type) {
|
|
|
-
|
|
|
taskDetails.setUpdateTime(new Date());
|
|
|
+ if (taskDetails.getTid()==null){
|
|
|
+ TaskDetails use = taskDetailsMapper.selectById(taskDetails.getId());
|
|
|
+ taskDetails.setTid(use.getTid());
|
|
|
+ }
|
|
|
countTaskDetails(taskDetails);
|
|
|
this.taskDetailsMapper.update(taskDetails);
|
|
|
TaskDetails res = this.queryById(taskDetails.getId());
|