Browse Source

perf: 优化完善

master
wxc 3 months ago
parent
commit
2130c169f2
  1. 2
      sql/20250826.sql
  2. 11
      src/main/java/com/biutag/supervision/controller/books/NegativeBookController.java
  3. 13
      src/main/java/com/biutag/supervision/flow/action/ApplyCompletionAction.java
  4. 27
      src/main/java/com/biutag/supervision/flow/action/SecondDistributeAction.java
  5. 16
      src/main/java/com/biutag/supervision/pojo/domain/NegativeVo.java
  6. 3
      src/main/java/com/biutag/supervision/pojo/dto/flow/VerifyData.java
  7. 3
      src/main/java/com/biutag/supervision/pojo/entity/Negative.java
  8. 2
      src/main/java/com/biutag/supervision/pojo/vo/DataPetition12337ExportVo.java
  9. 2
      src/main/resources/mapper/DataPetition12337Mapper.xml

2
sql/20250826.sql

@ -0,0 +1,2 @@
ALTER TABLE `negative`.`negative`
ADD COLUMN `process_result` varchar(255) NULL COMMENT '办理结果(12337)' AFTER `verified_is_leader`;

11
src/main/java/com/biutag/supervision/controller/books/NegativeBookController.java

@ -2,6 +2,7 @@ package com.biutag.supervision.controller.books;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.NumberUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.alibaba.excel.EasyExcel; import com.alibaba.excel.EasyExcel;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
@ -256,13 +257,15 @@ public class NegativeBookController {
} }
// 核查时间 // 核查时间
if (Objects.nonNull(item.getVerifyTime())) { if (Objects.nonNull(item.getVerifyTime())) {
item.setReviewTime(item.getVerifyTime().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm"))); item.setReviewTime(item.getVerifyTime().format(DateTimeFormatter.ofPattern("yyyy-MM-dd")));
} }
// 是否核查完结 // 是否核查完结
item.setVerifiedIsover(overProcessings.contains(item.getProcessingStatus()) ? "核查完结" : null); item.setVerifiedIsover(overProcessings.contains(item.getProcessingStatus()) ? "核查完结" : null);
// 是否处分处理
List<NegativeBlame> blames = negativeBlames.stream().filter(blame -> blame.getNegativeId().equals(item.getId())).toList(); if (!negativeBlames.isEmpty() && NumberUtil.isInteger(negativeBlames.get(0).getBlameEmpNo())) {
if (InspectCaseEnum.isItTure(item.getCheckStatus()) && blames.stream().anyMatch(blame -> !blame.getHandleResultName().contains("不予追责"))) { item.setVerifiedPersonType("在编人员");
}
if (!"免予处分".equals(item.getHandleResult12337()) && !"不予处分".equals(item.getHandleResult12337())) {
item.setIsPunish("是"); item.setIsPunish("是");
} else { } else {
item.setIsPunish("否"); item.setIsPunish("否");

13
src/main/java/com/biutag/supervision/flow/action/ApplyCompletionAction.java

@ -90,9 +90,15 @@ public class ApplyCompletionAction implements Action {
.set(Negative::getResolveStatus, verifyData.getResolveStatus()) .set(Negative::getResolveStatus, verifyData.getResolveStatus())
.set(Negative::getVisitingLeaderName, verifyData.getVisitingLeaderName()) .set(Negative::getVisitingLeaderName, verifyData.getVisitingLeaderName())
.set(Negative::getVisitingLeaderEmpNo, verifyData.getVisitingLeaderEmpNo()) .set(Negative::getVisitingLeaderEmpNo, verifyData.getVisitingLeaderEmpNo())
.set(Negative::getHandleResult12337, verifyData.getHandleResult12337()) .set(Negative::getProcessResult, verifyData.getProcessResult())
.set(Negative::getHandleResult12337Group, verifyData.getHandleResult12337Group())
.set(Negative::getVerifiedIsLeader, verifyData.getVerifiedIsLeader()); .set(Negative::getVerifiedIsLeader, verifyData.getVerifiedIsLeader());
if ("具有违纪违法情况".equals(verifyData.getProcessResult())) {
updateWrapper.set(Negative::getHandleResult12337, verifyData.getHandleResult12337())
.set(Negative::getHandleResult12337Group, verifyData.getHandleResult12337Group());
} else {
updateWrapper.set(Negative::getHandleResult12337, null)
.set(Negative::getHandleResult12337Group, null);
}
// 属实 // 属实
if (InspectCaseEnum.isItTure(verifyData.getCheckStatus())) { if (InspectCaseEnum.isItTure(verifyData.getCheckStatus())) {
updateWrapper updateWrapper
@ -121,6 +127,9 @@ public class ApplyCompletionAction implements Action {
// 涉及单位 // 涉及单位
SupDepart depart = departService.getById(verifyData.getInvolveDepartId()); SupDepart depart = departService.getById(verifyData.getInvolveDepartId());
if (DepartLevelEnum.SECOND.getValue().equals(depart.getLevel())) { if (DepartLevelEnum.SECOND.getValue().equals(depart.getLevel())) {
if (HostLevelEnums.THREE.getValue().equals(negative.getHostLevel())) {
throw new RuntimeException("主办层级为三级机构主办,涉及单位请选择三级机构");
}
updateWrapper.set(Negative::getSecondInvolveDepartId, depart.getId()) updateWrapper.set(Negative::getSecondInvolveDepartId, depart.getId())
.set(Negative::getThreeInvolveDepartId, null); .set(Negative::getThreeInvolveDepartId, null);
} else if (DepartLevelEnum.THREE.getValue().equals(depart.getLevel())) { } else if (DepartLevelEnum.THREE.getValue().equals(depart.getLevel())) {

27
src/main/java/com/biutag/supervision/flow/action/SecondDistributeAction.java

@ -1,8 +1,10 @@
package com.biutag.supervision.flow.action; package com.biutag.supervision.flow.action;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.biutag.supervision.constants.enums.HostLevelEnums;
import com.biutag.supervision.constants.enums.RoleCodeEnum; import com.biutag.supervision.constants.enums.RoleCodeEnum;
import com.biutag.supervision.constants.enums.WorkStatusEnum; import com.biutag.supervision.constants.enums.WorkStatusEnum;
import com.biutag.supervision.pojo.dto.ActionDto; import com.biutag.supervision.pojo.dto.ActionDto;
@ -34,13 +36,14 @@ public class SecondDistributeAction implements Action {
@Override @Override
public void next(ActionDto actionDto) { public void next(ActionDto actionDto) {
SecondDistributeData secondDistributeData = BeanUtil.toBean(actionDto.getData(), SecondDistributeData.class); SecondDistributeData secondDistributeData = BeanUtil.toBean(actionDto.getData(), SecondDistributeData.class);
updateNegative(actionDto.getNegativeId(), actionDto.getNextFlowKey(), secondDistributeData); Negative negative = negativeService.getById(actionDto.getNegativeId());
updateNegative(negative, actionDto.getNextFlowKey(), secondDistributeData);
doneWork(actionDto.getWorkId()); doneWork(actionDto.getWorkId());
addWork(actionDto.getNegativeId(), RoleCodeEnum.THREE_ADMIN.getCode(), secondDistributeData.getDepartId()); addWork(negative, RoleCodeEnum.THREE_ADMIN.getCode(), secondDistributeData.getDepartId());
} }
public void updateNegative(String negativeId, String nextFlowKey, SecondDistributeData secondDistributeData) { public void updateNegative(Negative negative, String nextFlowKey, SecondDistributeData secondDistributeData) {
negativeService.update(new LambdaUpdateWrapper<Negative>() LambdaUpdateWrapper<Negative> updateWrapper = new LambdaUpdateWrapper<Negative>()
.set(Negative::getFlowKey, nextFlowKey) .set(Negative::getFlowKey, nextFlowKey)
.set(Negative::getHandleThreeDepartId, secondDistributeData.getDepartId()) .set(Negative::getHandleThreeDepartId, secondDistributeData.getDepartId())
.set(Negative::getHandleThreeDepartName, secondDistributeData.getDepartName()) .set(Negative::getHandleThreeDepartName, secondDistributeData.getDepartName())
@ -48,7 +51,13 @@ public class SecondDistributeAction implements Action {
.set(Negative::getUpdTime, LocalDateTime.now()) .set(Negative::getUpdTime, LocalDateTime.now())
// 当前处理对象 // 当前处理对象
.set(Negative::getCurrentProcessingObject, String.format("%s专班", secondDistributeData.getDepartName())) .set(Negative::getCurrentProcessingObject, String.format("%s专班", secondDistributeData.getDepartName()))
.eq(Negative::getId, negativeId)); .eq(Negative::getId, negative.getId());
if (HostLevelEnums.THREE.getValue().equals(negative.getHostLevel()) && StrUtil.isBlank(negative.getThreeInvolveDepartId())) {
updateWrapper
.set(Negative::getInvolveDepartId, secondDistributeData.getDepartId())
.set(Negative::getThreeInvolveDepartId, secondDistributeData.getDepartId());
}
negativeService.update(updateWrapper);
} }
public void doneWork(Integer workId) { public void doneWork(Integer workId) {
@ -58,15 +67,15 @@ public class SecondDistributeAction implements Action {
.eq(NegativeWork::getId, workId)); .eq(NegativeWork::getId, workId));
} }
public void addWork(String negativeId, String roleCode, String departId) { public void addWork(Negative negative, String roleCode, String departId) {
SupDepart depart = departService.getById(departId); SupDepart depart = departService.getById(departId);
workService.remove(new LambdaQueryWrapper<NegativeWork>() workService.remove(new LambdaQueryWrapper<NegativeWork>()
.eq(NegativeWork::getNegativeId, negativeId) .eq(NegativeWork::getNegativeId, negative.getId())
.eq(NegativeWork::getRoleCode, roleCode) .eq(NegativeWork::getRoleCode, roleCode)
.eq(NegativeWork::getDepartId, departId)); .eq(NegativeWork::getDepartId, departId));
Negative negative = negativeService.getById(negativeId);
NegativeWork work = new NegativeWork() NegativeWork work = new NegativeWork()
.setNegativeId(negativeId) .setNegativeId(negative.getId())
.setRoleCode(roleCode) .setRoleCode(roleCode)
.setDepartId(departId) .setDepartId(departId)
.setDepartName(depart.getShortName()) .setDepartName(depart.getShortName())

16
src/main/java/com/biutag/supervision/pojo/domain/NegativeVo.java

@ -215,6 +215,12 @@ public class NegativeVo {
// 涉及问题金额 // 涉及问题金额
private Double involveMoney; private Double involveMoney;
// 二级部门
private String secondInvolveDepartId;
// 三级部门
private String threeInvolveDepartId;
// 化解情况 // 化解情况
private String resolveSituation; private String resolveSituation;
@ -226,6 +232,16 @@ public class NegativeVo {
private String visitingLeaderEmpNo; private String visitingLeaderEmpNo;
// 办理结果
private String processResult;
private String handleResult12337;
private String handleResult12337Group;
// 涉及人员是否属于领导班子成员
private String verifiedIsLeader;
// 下发选择的问题类型 // 下发选择的问题类型
private List<VerifyData.Problem> problems = new ArrayList<>(); private List<VerifyData.Problem> problems = new ArrayList<>();

3
src/main/java/com/biutag/supervision/pojo/dto/flow/VerifyData.java

@ -81,6 +81,9 @@ public class VerifyData {
private String handleResult12337Group; private String handleResult12337Group;
// 办理结果
private String processResult;
private String verifiedIsLeader; private String verifiedIsLeader;
@Setter @Setter

3
src/main/java/com/biutag/supervision/pojo/entity/Negative.java

@ -331,4 +331,7 @@ public class Negative {
// 涉及人员是否属于领导班子成员 // 涉及人员是否属于领导班子成员
private String verifiedIsLeader; private String verifiedIsLeader;
// 办理结果
private String processResult;
} }

2
src/main/java/com/biutag/supervision/pojo/vo/DataPetition12337ExportVo.java

@ -306,7 +306,7 @@ public class DataPetition12337ExportVo implements Serializable {
* 办理结果 * 办理结果
*/ */
@ExcelProperty("办理结果") @ExcelProperty("办理结果")
private String processResult; private String processResult1;
/** /**
* 是否进行线索初核 * 是否进行线索初核

2
src/main/resources/mapper/DataPetition12337Mapper.xml

@ -168,7 +168,7 @@
<select id="queryPageExport" resultType="com.biutag.supervision.pojo.vo.DataPetition12337ExportVo"> <select id="queryPageExport" resultType="com.biutag.supervision.pojo.vo.DataPetition12337ExportVo">
SELECT SELECT
p.*, n.handle_second_depart_name, n.handle_polices, n.check_status_desc, n.checkStatus, n.checkStatusName, n.id, n.processing_status, p.*, n.handle_second_depart_name, n.handle_polices, n.check_status_desc, n.checkStatus, n.checkStatusName, n.id, n.processing_status,
n.accountability_target, n.handle_result12337, n.handle_result12337_group, n.verify_time, n.verified_is_leader n.accountability_target, n.handle_result12337, n.handle_result12337_group, n.verify_time, n.verified_is_leader, n.process_result process_result1
FROM FROM
data_petition_12337 p left join negative n on p.only_id = n.originId data_petition_12337 p left join negative n on p.only_id = n.originId
${ew.getCustomSqlSegment} ${ew.getCustomSqlSegment}

Loading…
Cancel
Save