|
|
|
|
@ -33,7 +33,6 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
|
|
import javax.management.relation.Role; |
|
|
|
|
import java.time.LocalDateTime; |
|
|
|
|
import java.util.*; |
|
|
|
|
import java.util.concurrent.atomic.AtomicReference; |
|
|
|
|
@ -243,7 +242,7 @@ public class NegativeService extends ServiceImpl<NegativeMapper, Negative> {
|
|
|
|
|
.setTimeLimit(TimeLimitEnum.WORK_137.getValue()) |
|
|
|
|
.setMaxSignDuration(TimeLimitEnum.WORK_137.getMaxSignDuration()) |
|
|
|
|
.setMaxHandleDuration(TimeLimitEnum.WORK_137.getMaxHandleDuration()) |
|
|
|
|
.setMaxExtensionDuration(TimeLimitEnum.WORK_137.getMaxHandleDuration()) |
|
|
|
|
.setMaxExtensionDuration(TimeLimitEnum.WORK_137.getMaxExtensionDuration()) |
|
|
|
|
.setApprovalFlow(ApprovalFlowEnum.SECOND_APPROVAL.getValue()) |
|
|
|
|
// 下发时间
|
|
|
|
|
.setFirstDistributeTime(now) |
|
|
|
|
@ -272,6 +271,8 @@ public class NegativeService extends ServiceImpl<NegativeMapper, Negative> {
|
|
|
|
|
.setHandleSecondDepartId(parentDepart.getId()) |
|
|
|
|
.setHandleSecondDepartName(parentDepart.getShortName()); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
negative.setFlowKey(FlowNodeEnum.FIRST_DISTRIBUTE.getKey()); |
|
|
|
|
} |
|
|
|
|
save(negative); |
|
|
|
|
// 新增work
|
|
|
|
|
|