|
|
|
@ -5,15 +5,17 @@ import cn.hutool.core.util.NumberUtil; |
|
|
|
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.AppConstants; |
|
|
|
import com.biutag.supervision.constants.enums.*; |
|
|
|
import com.biutag.supervision.constants.enums.*; |
|
|
|
|
|
|
|
import com.biutag.supervision.mapper.ComplaintCollectionMapper; |
|
|
|
import com.biutag.supervision.pojo.dto.ActionDto; |
|
|
|
import com.biutag.supervision.pojo.dto.ActionDto; |
|
|
|
import com.biutag.supervision.pojo.dto.flow.ConfirmationCompletionData; |
|
|
|
import com.biutag.supervision.pojo.dto.flow.ConfirmationCompletionData; |
|
|
|
import com.biutag.supervision.pojo.entity.Negative; |
|
|
|
import com.biutag.supervision.pojo.entity.*; |
|
|
|
import com.biutag.supervision.pojo.entity.NegativeApprove; |
|
|
|
|
|
|
|
import com.biutag.supervision.pojo.entity.NegativeScorePolice; |
|
|
|
|
|
|
|
import com.biutag.supervision.pojo.entity.NegativeWork; |
|
|
|
|
|
|
|
import com.biutag.supervision.pojo.model.UserAuth; |
|
|
|
import com.biutag.supervision.pojo.model.UserAuth; |
|
|
|
import com.biutag.supervision.service.*; |
|
|
|
import com.biutag.supervision.service.NegativeApproveService; |
|
|
|
|
|
|
|
import com.biutag.supervision.service.NegativeScorePoliceService; |
|
|
|
|
|
|
|
import com.biutag.supervision.service.NegativeService; |
|
|
|
|
|
|
|
import com.biutag.supervision.service.NegativeWorkService; |
|
|
|
import com.biutag.supervision.util.TimeUtil; |
|
|
|
import com.biutag.supervision.util.TimeUtil; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
@ -37,6 +39,8 @@ public class ConfirmationCompletionAction implements Action { |
|
|
|
|
|
|
|
|
|
|
|
private final NegativeApproveService approveService; |
|
|
|
private final NegativeApproveService approveService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final ComplaintCollectionMapper complaintCollectionMapper; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void next(ActionDto actionDto) { |
|
|
|
public void next(ActionDto actionDto) { |
|
|
|
UserAuth user = UserContextHolder.getCurrentUser(); |
|
|
|
UserAuth user = UserContextHolder.getCurrentUser(); |
|
|
|
@ -53,6 +57,8 @@ public class ConfirmationCompletionAction implements Action { |
|
|
|
updateNegative(negativeId, completionData); |
|
|
|
updateNegative(negativeId, completionData); |
|
|
|
|
|
|
|
|
|
|
|
addNegativeScorePolice(negativeId, completionData); |
|
|
|
addNegativeScorePolice(negativeId, completionData); |
|
|
|
|
|
|
|
// 更新涉访涉诉状态办理状态
|
|
|
|
|
|
|
|
updateComplaintCollectionStatus(negativeId); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -141,4 +147,9 @@ public class ConfirmationCompletionAction implements Action { |
|
|
|
workService.update(doneUpdateWrapper); |
|
|
|
workService.update(doneUpdateWrapper); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 更新为已办结
|
|
|
|
|
|
|
|
private void updateComplaintCollectionStatus(String negativeId) { |
|
|
|
|
|
|
|
complaintCollectionMapper.update(new LambdaUpdateWrapper<ComplaintCollection>().eq(ComplaintCollection::getNegativeId, negativeId) |
|
|
|
|
|
|
|
.set(ComplaintCollection::getStatus, AppConstants.COMPLETED)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|