|
|
|
@ -5,6 +5,7 @@ import cn.hutool.core.util.ObjectUtil; |
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
|
|
|
import com.biutag.supervision.common.UserContextHolder; |
|
|
|
import com.biutag.supervision.common.UserContextHolder; |
|
|
|
|
|
|
|
import com.biutag.supervision.constants.enums.FlowActionEnum; |
|
|
|
import com.biutag.supervision.flow.action.Action; |
|
|
|
import com.biutag.supervision.flow.action.Action; |
|
|
|
import com.biutag.supervision.pojo.dto.ActionDto; |
|
|
|
import com.biutag.supervision.pojo.dto.ActionDto; |
|
|
|
import com.biutag.supervision.pojo.entity.Negative; |
|
|
|
import com.biutag.supervision.pojo.entity.Negative; |
|
|
|
@ -57,6 +58,10 @@ public class FlowService { |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 保存操作不保留操作流程历史
|
|
|
|
|
|
|
|
if (FlowActionEnum.SAVE.getKey().equals(actionDto.getActionKey())) { |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
NegativeWork work = workService.getById(actionDto.getWorkId()); |
|
|
|
NegativeWork work = workService.getById(actionDto.getWorkId()); |
|
|
|
|
|
|
|
|
|
|
|
NegativeHistory history = new NegativeHistory().setHistoryId(IdUtil.fastSimpleUUID()) |
|
|
|
NegativeHistory history = new NegativeHistory().setHistoryId(IdUtil.fastSimpleUUID()) |
|
|
|
|