23 changed files with 1960 additions and 119 deletions
@ -0,0 +1,12 @@
|
||||
package com.biutag.supervision.mapper; |
||||
|
||||
import com.biutag.supervision.pojo.entity.ComplaintCollectionBlame; |
||||
import com.biutag.supervision.repository.base.HBaseMapper; |
||||
|
||||
import java.util.List; |
||||
|
||||
public interface ComplaintCollectionBlameMapper extends HBaseMapper<ComplaintCollectionBlame> { |
||||
|
||||
int insertBatch(List<ComplaintCollectionBlame> list); |
||||
|
||||
} |
||||
@ -0,0 +1,230 @@
|
||||
package com.biutag.supervision.pojo.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.*; |
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
import java.time.LocalDateTime; |
||||
|
||||
|
||||
/** |
||||
* @ClassName ComplaintCollectionBlame |
||||
* @Description 投诉归集责任人员表 |
||||
* @Author shihao |
||||
* @Date 2025/12/28 20:33 |
||||
*/ |
||||
@Getter |
||||
@Setter |
||||
@Schema(description = "投诉归集责任人员表") |
||||
@TableName("complaint_collection_blame") |
||||
public class ComplaintCollectionBlame { |
||||
|
||||
@Schema(description = "责任记录主键") |
||||
@TableId(value = "blame_id", type = IdType.AUTO) |
||||
private String blameId; |
||||
|
||||
@Schema(description = "关联complaint_collection主键ID") |
||||
@TableField("complaint_id") |
||||
private String complaintId; |
||||
|
||||
@Schema(description = "涉及类型 PERSONAL:个人/LEADER:领导/DEPARTMENT:单位") |
||||
@TableField("type") |
||||
private String type; |
||||
|
||||
@Schema(description = "涉及人员姓名") |
||||
@TableField("blame_name") |
||||
private String blameName; |
||||
|
||||
@Schema(description = "涉及人员身份证号") |
||||
@TableField("blame_id_code") |
||||
private String blameIdCode; |
||||
|
||||
@Schema(description = "涉及人员警号") |
||||
@TableField("blame_emp_no") |
||||
private String blameEmpNo; |
||||
|
||||
@Schema(description = "涉及部门ID") |
||||
@TableField("blame_depart_id") |
||||
private String blameDepartId; |
||||
|
||||
//
|
||||
@Schema(description = "涉及部门名称") |
||||
@TableField("blame_depart_name") |
||||
private String blameDepartName; |
||||
|
||||
@Schema(description = "人员属性编码") |
||||
@TableField("iv_person_type_code") |
||||
private String ivPersonTypeCode; |
||||
|
||||
//
|
||||
@Schema(description = "人员属性名称") |
||||
@TableField("iv_person_type_name") |
||||
private String ivPersonTypeName; |
||||
|
||||
@Schema(description = "问题类型描述(JSON)") |
||||
@TableField("problems") |
||||
private String problems; |
||||
|
||||
@Schema(description = "责任类别编码") |
||||
@TableField("responsibility_type_code") |
||||
private String responsibilityTypeCode; |
||||
|
||||
@Schema(description = "责任类别名称") |
||||
@TableField("responsibility_type_name") |
||||
private String responsibilityTypeName; |
||||
|
||||
@Schema(description = "主观方面编码") |
||||
@TableField("subjective_aspect_code") |
||||
private String subjectiveAspectCode; |
||||
|
||||
@Schema(description = "主观方面名称") |
||||
@TableField("subjective_aspect_name") |
||||
private String subjectiveAspectName; |
||||
|
||||
@Schema(description = "处理结果编码(多选逗号分隔)") |
||||
@TableField("handle_result_code") |
||||
private String handleResultCode; |
||||
|
||||
@Schema(description = "处理结果名称") |
||||
@TableField("handle_result_name") |
||||
private String handleResultName; |
||||
|
||||
@Schema(description = "其他处理结果说明") |
||||
@TableField("handle_result_name_other") |
||||
private String handleResultNameOther; |
||||
|
||||
@Schema(description = "维权容错编码") |
||||
@TableField("protect_rights_code") |
||||
private String protectRightsCode; |
||||
|
||||
@Schema(description = "维权容错名称") |
||||
@TableField("protect_rights_name") |
||||
private String protectRightsName; |
||||
|
||||
@Schema(description = "督察措施编码") |
||||
@TableField("supervise_measures_code") |
||||
private String superviseMeasuresCode; |
||||
|
||||
@Schema(description = "督察措施名称") |
||||
@TableField("supervise_measures_name") |
||||
private String superviseMeasuresName; |
||||
|
||||
@Schema(description = "禁闭处罚关联ID") |
||||
@TableField("confinement_id") |
||||
private String confinementId; |
||||
|
||||
@Schema(description = "责任领导姓名") |
||||
@TableField("lead_name") |
||||
private String leadName; |
||||
|
||||
@Schema(description = "责任领导身份证") |
||||
@TableField("lead_id_code") |
||||
private String leadIdCode; |
||||
|
||||
@Schema(description = "责任领导警号") |
||||
@TableField("lead_emp_no") |
||||
private String leadEmpNo; |
||||
|
||||
@Schema(description = "责任领导部门ID") |
||||
@TableField("lead_depart_id") |
||||
private String leadDepartId; |
||||
|
||||
@Schema(description = "责任领导部门名称") |
||||
@TableField("lead_depart_name") |
||||
private String leadDepartName; |
||||
|
||||
@Schema(description = "领导责任类别编码") |
||||
@TableField("lead_responsibility_type_code") |
||||
private String leadResponsibilityTypeCode; |
||||
|
||||
@Schema(description = "领导责任类别名称") |
||||
@TableField("lead_responsibility_type_name") |
||||
private String leadResponsibilityTypeName; |
||||
|
||||
@Schema(description = "领导处理结果编码") |
||||
@TableField("lead_handle_result_code") |
||||
private String leadHandleResultCode; |
||||
|
||||
@Schema(description = "领导处理结果名称") |
||||
@TableField("lead_handle_result_name") |
||||
private String leadHandleResultName; |
||||
|
||||
@Schema(description = "领导其他处理结果") |
||||
@TableField("lead_handle_result_name_other") |
||||
private String leadHandleResultNameOther; |
||||
|
||||
@Schema(description = "领导维权容错编码") |
||||
@TableField("lead_protect_rights_code") |
||||
private String leadProtectRightsCode; |
||||
|
||||
@Schema(description = "领导维权容错名称") |
||||
@TableField("lead_protect_rights_name") |
||||
private String leadProtectRightsName; |
||||
|
||||
@Schema(description = "领导禁闭处罚ID") |
||||
@TableField("lead_confinement_id") |
||||
private String leadConfinementId; |
||||
|
||||
@Schema(description = "自定义字段1~20") |
||||
@TableField("gwf1") |
||||
private String gwf1; |
||||
@TableField("gwf2") |
||||
private String gwf2; |
||||
@TableField("gwf3") |
||||
private String gwf3; |
||||
@TableField("gwf4") |
||||
private String gwf4; |
||||
@TableField("gwf5") |
||||
private String gwf5; |
||||
@TableField("gwf6") |
||||
private String gwf6; |
||||
@TableField("gwf7") |
||||
private String gwf7; |
||||
@TableField("gwf8") |
||||
private String gwf8; |
||||
@TableField("gwf9") |
||||
private String gwf9; |
||||
@TableField("gwf10") |
||||
private String gwf10; |
||||
@TableField("gwf11") |
||||
private String gwf11; |
||||
@TableField("gwf12") |
||||
private String gwf12; |
||||
@TableField("gwf13") |
||||
private String gwf13; |
||||
@TableField("gwf14") |
||||
private String gwf14; |
||||
@TableField("gwf15") |
||||
private String gwf15; |
||||
@TableField("gwf16") |
||||
private String gwf16; |
||||
@TableField("gwf17") |
||||
private String gwf17; |
||||
@TableField("gwf18") |
||||
private String gwf18; |
||||
@TableField("gwf19") |
||||
private String gwf19; |
||||
@TableField("gwf20") |
||||
private String gwf20; |
||||
|
||||
@Schema(description = "创建人") |
||||
@TableField("create_by") |
||||
private String createBy; |
||||
|
||||
@Schema(description = "创建时间") |
||||
@TableField(value = "create_time", fill = FieldFill.INSERT) |
||||
private LocalDateTime createTime; |
||||
|
||||
@Schema(description = "更新人") |
||||
@TableField("update_by") |
||||
private String updateBy; |
||||
|
||||
@Schema(description = "更新时间") |
||||
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) |
||||
private LocalDateTime updateTime; |
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,39 @@
|
||||
package com.biutag.supervision.pojo.enums.complaintCollection; |
||||
|
||||
import com.biutag.supervision.constants.enums.CodeEnum; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
/** |
||||
* @ClassName ComplaintCollectionClosingStatusEnum |
||||
* @Description TODO |
||||
* @Author shihao |
||||
* @Date 2025/12/29 20:39 |
||||
*/ |
||||
@Getter |
||||
public enum ComplaintCollectionClosingStatusEnum implements CodeEnum { |
||||
|
||||
PROCEDURE_COMPLETED("1", "程序办结"), |
||||
REASONABLE_DEMAND_RESOLVED("2", "已解决合理诉求"); |
||||
|
||||
; |
||||
|
||||
|
||||
private final String code; |
||||
private final String desc; |
||||
|
||||
ComplaintCollectionClosingStatusEnum(String code, String desc) { |
||||
this.code = code; |
||||
this.desc = desc; |
||||
} |
||||
|
||||
@Override |
||||
public String getCode() { |
||||
return code; |
||||
} |
||||
|
||||
@Override |
||||
public String getDesc() { |
||||
return desc; |
||||
} |
||||
} |
||||
@ -0,0 +1,38 @@
|
||||
package com.biutag.supervision.pojo.enums.complaintCollection; |
||||
|
||||
import com.biutag.supervision.constants.enums.CodeEnum; |
||||
import lombok.Getter; |
||||
|
||||
/** |
||||
* @ClassName ComplaintCollectionClosingStatusEnum |
||||
* @Description TODO |
||||
* @Author shihao |
||||
* @Date 2025/12/29 20:39 |
||||
*/ |
||||
@Getter |
||||
public enum ComplaintCollectionPublicApprovalEnum implements CodeEnum { |
||||
|
||||
|
||||
APPROVED("1", "认可"), |
||||
NOT_APPROVED("2", "不认可"); |
||||
; |
||||
|
||||
|
||||
private final String code; |
||||
private final String desc; |
||||
|
||||
ComplaintCollectionPublicApprovalEnum(String code, String desc) { |
||||
this.code = code; |
||||
this.desc = desc; |
||||
} |
||||
|
||||
@Override |
||||
public String getCode() { |
||||
return code; |
||||
} |
||||
|
||||
@Override |
||||
public String getDesc() { |
||||
return desc; |
||||
} |
||||
} |
||||
@ -0,0 +1,70 @@
|
||||
package com.biutag.supervision.pojo.param.complaintCollectionBlame; |
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
import java.time.LocalDateTime; |
||||
import java.util.List; |
||||
import java.util.Set; |
||||
|
||||
/** |
||||
* @ClassName ComplaintCollectionBlameQueryParam |
||||
* @Description 投诉归集责任人查询参数 |
||||
* @Author shihao |
||||
* @Date 2025/12/28 |
||||
*/ |
||||
@Getter |
||||
@Setter |
||||
@Schema(description = "投诉归集责任人查询参数") |
||||
public class ComplaintCollectionBlameQueryParam { |
||||
|
||||
@Schema(description = "责任记录主键") |
||||
private String blameId; |
||||
|
||||
@Schema(description = "责任记录主键集合") |
||||
private Set<String> blameIds; |
||||
|
||||
@Schema(description = "投诉主键ID") |
||||
private String complaintId; |
||||
|
||||
@Schema(description = "投诉主键ID集合") |
||||
private Set<String> complaintIds; |
||||
|
||||
@Schema(description = "信件编号") |
||||
private String originId; |
||||
|
||||
@Schema(description = "来源表类型") |
||||
private String sourceTable; |
||||
|
||||
@Schema(description = "来源表类型集合") |
||||
private Set<String> sourceTables; |
||||
|
||||
@Schema(description = "反映人姓名") |
||||
private String responderName; |
||||
|
||||
@Schema(description = "受理时间范围") |
||||
private List<LocalDateTime> discoveryTimeList; |
||||
|
||||
@Schema(description = "来件人信息") |
||||
private String personInfo; |
||||
|
||||
@Schema(description = "二级机构ID") |
||||
private String secondDepartId; |
||||
|
||||
@Schema(description = "办理方式") |
||||
private String handleMethod; |
||||
|
||||
@Schema(description = "来件内容") |
||||
private String thingDesc; |
||||
|
||||
@Schema(description = "是否重复件") |
||||
private String repeatt; |
||||
|
||||
@Schema(description = "是否领导批示") |
||||
private String leadApproval; |
||||
|
||||
@Schema(description = "标签") |
||||
private List<String> tags; |
||||
|
||||
} |
||||
@ -0,0 +1,348 @@
|
||||
package com.biutag.supervision.pojo.request.complaintCollection; |
||||
|
||||
import com.biutag.supervision.aop.ParamChecked; |
||||
import com.biutag.supervision.pojo.enums.complaintCollection.ComplaintCollectionHandleMethodEnum; |
||||
import com.biutag.supervision.pojo.enums.complaintCollection.YesOrNoEnum; |
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import jakarta.validation.constraints.NotBlank; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
import java.time.LocalDateTime; |
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @ClassName ComplaintCollectionAndBlameAddRequest |
||||
* @Description 投诉归集责任添加请求 |
||||
* @Author shihao |
||||
* @Date 2025/12/28 |
||||
*/ |
||||
@Getter |
||||
@Setter |
||||
@Schema(description = "投诉归集责任添加请求") |
||||
public class ComplaintCollectionAndBlameAddRequest implements ParamChecked { |
||||
|
||||
|
||||
@Override |
||||
public void check() { |
||||
// if (CollectionUtil.isEmpty(blames) && CollectionUtil.isEmpty(blameLeaders)) {
|
||||
// throw new IllegalArgumentException("责任人或责任领导不能为空");
|
||||
// }
|
||||
} |
||||
|
||||
@Schema(description = "涉访涉诉表ID") |
||||
private String complaintId; |
||||
|
||||
@Schema(description = "信件编号") |
||||
private String originId; |
||||
|
||||
@Schema(description = "涉及案件/警情编号") |
||||
private String caseNumber; |
||||
|
||||
@Schema(description = "涉及单位") |
||||
private String involveDepartId; |
||||
|
||||
@Schema(description = "涉及单位名称") |
||||
private String involveDepartName; |
||||
|
||||
@NotBlank(message = "核查结论不能为空") |
||||
@Schema(description = "核查结论code") |
||||
private String checkStatusCode; |
||||
|
||||
@Schema(description = "核查结论name") |
||||
@NotBlank(message = "核查结论不能为空") |
||||
private String checkStatusName; |
||||
|
||||
/** |
||||
* @see com.biutag.supervision.constants.enums.AccountabilityTargetEnum |
||||
*/ |
||||
@Schema(description = "涉及对象") |
||||
private String accountabilityTarget; |
||||
|
||||
// // 是否整改
|
||||
// @NotBlank
|
||||
// @Schema(description = "是否整改")
|
||||
// private String isRectifyCode;
|
||||
//
|
||||
// @Schema(description = "整改限制天数")
|
||||
// private Integer rectifyRestrictionDays;
|
||||
//
|
||||
@NotBlank |
||||
@Schema(description = "问题核查情况") |
||||
private String checkStatusDesc; |
||||
//
|
||||
// @Schema(description = "问题整改情况")
|
||||
// private String rectifyDesc;
|
||||
//
|
||||
// @Schema(description = "未整改原因")
|
||||
// private String unrectifyReason;
|
||||
|
||||
@Schema(description = "涉及责任人列表") |
||||
private List<Blame> blames = new ArrayList<>(); |
||||
|
||||
@Schema(description = "涉及责任领导列表") |
||||
private List<BlameLeader> blameLeaders = new ArrayList<>(); |
||||
|
||||
@Schema(description = "来源表类型") |
||||
private String sourceTable; |
||||
|
||||
@Schema(description = "来源类型子一级") |
||||
private String sourceTableSubOne; |
||||
|
||||
@Schema(description = "受理时间") |
||||
private LocalDateTime discoveryTime; |
||||
|
||||
@Schema(description = "来件人姓名") |
||||
private String responderName; |
||||
|
||||
@Schema(description = "身份证号") |
||||
private String responderIdCode; |
||||
|
||||
@Schema(description = "联系电话") |
||||
private String responderPhone; |
||||
|
||||
@Schema(description = "被投诉二级机构Id") |
||||
private String secondDepartId; |
||||
|
||||
@Schema(description = "被投诉二级机构") |
||||
private String secondDepartName; |
||||
|
||||
@Schema(description = "来信内容") |
||||
private String thingDesc; |
||||
|
||||
@Schema(description = "涉嫌问题") |
||||
private List<String> involveProblemIdList; |
||||
|
||||
@Schema(description = "涉嫌问题") |
||||
private String involveProblemIdStr; |
||||
/** |
||||
* @see YesOrNoEnum |
||||
*/ |
||||
@Schema(description = "是否重复件") |
||||
private String repeatt; |
||||
|
||||
/** |
||||
* @see YesOrNoEnum |
||||
*/ |
||||
@Schema(description = "是否领导审批") |
||||
private String leadApproval; |
||||
|
||||
/** |
||||
* |
||||
*/ |
||||
@Schema(description = "标签") |
||||
private String tag; |
||||
|
||||
@Schema(description = "标签集合") |
||||
private List<String> tags; |
||||
|
||||
/** |
||||
* @see ComplaintCollectionHandleMethodEnum |
||||
*/ |
||||
@Schema(description = "办理方式") |
||||
private String handleMethod; |
||||
|
||||
@Schema(description = "业务类型code") |
||||
private String businessTypeCode; |
||||
|
||||
@Schema(description = "业务类型name") |
||||
private String businessTypeName; |
||||
|
||||
|
||||
@Getter |
||||
@Setter |
||||
@Schema(description = "责任人信息") |
||||
public static class Blame { |
||||
|
||||
@Schema(description = "责任人姓名") |
||||
@NotBlank |
||||
private String blameName; |
||||
|
||||
@Schema(description = "身份证号") |
||||
@NotBlank |
||||
private String blameIdCode; |
||||
|
||||
@Schema(description = "警号") |
||||
@NotBlank |
||||
private String blameEmpNo; |
||||
|
||||
@Schema(description = "人员属性编码") |
||||
@NotBlank |
||||
private String ivPersonTypeCode; |
||||
|
||||
@Schema(description = "人员属性名称") |
||||
@NotBlank |
||||
private String ivPersonTypeName; |
||||
|
||||
@Schema(description = "人员属性(兼容旧字段)") |
||||
@NotBlank |
||||
private String ivPersonType; |
||||
|
||||
@Schema(description = "警种编码") |
||||
@NotBlank |
||||
private String policeTypeCode; |
||||
|
||||
@Schema(description = "警种名称") |
||||
@NotBlank |
||||
private String policeTypeName; |
||||
|
||||
@Schema(description = "核查情况编码") |
||||
@NotBlank |
||||
private String inspectCaseCode; |
||||
|
||||
@Schema(description = "核查情况名称") |
||||
@NotBlank |
||||
private String inspectCaseName; |
||||
|
||||
@Schema(description = "主观方面编码") |
||||
@NotBlank |
||||
private String subjectiveAspectCode; |
||||
|
||||
@Schema(description = "主观方面名称") |
||||
@NotBlank |
||||
private String subjectiveAspectName; |
||||
|
||||
@Schema(description = "责任类别编码") |
||||
@NotBlank |
||||
private String responsibilityTypeCode; |
||||
|
||||
@Schema(description = "责任类别名称") |
||||
@NotBlank |
||||
private String responsibilityTypeName; |
||||
|
||||
@Schema(description = "处理结果编码集合") |
||||
@NotBlank |
||||
private List<String> handleResultCode; |
||||
|
||||
@Schema(description = "处理结果名称集合") |
||||
@NotBlank |
||||
private String handleResultName; |
||||
|
||||
@Schema(description = "其他处理说明") |
||||
private String handleResultNameOther; |
||||
|
||||
@Schema(description = "维权容错编码") |
||||
@NotBlank |
||||
private String protectRightsCode; |
||||
|
||||
@Schema(description = "维权容错名称") |
||||
@NotBlank |
||||
private String protectRightsName; |
||||
|
||||
@Schema(description = "督察措施编码") |
||||
@NotBlank |
||||
private String superviseMeasuresCode; |
||||
|
||||
@Schema(description = "督察措施名称") |
||||
@NotBlank |
||||
private String superviseMeasuresName; |
||||
|
||||
@Schema(description = "禁闭处罚关联ID") |
||||
private String confinementId; |
||||
|
||||
@Schema(description = "问题类型明细") |
||||
private List<Problem> problems; |
||||
|
||||
|
||||
@Schema(description = "责任人类型标识") |
||||
private String type; |
||||
} |
||||
|
||||
|
||||
@Getter |
||||
@Setter |
||||
@Schema(description = "责任领导信息") |
||||
public static class BlameLeader { |
||||
|
||||
@Schema(description = "关联责任人身份证集合") |
||||
private List<String> blameIdCodes = new ArrayList<>(); |
||||
|
||||
@Schema(description = "责任领导姓名") |
||||
@NotBlank |
||||
private String leadName; |
||||
|
||||
@Schema(description = "责任领导警号") |
||||
@NotBlank |
||||
private String leadEmpNo; |
||||
|
||||
@Schema(description = "责任领导身份证号") |
||||
@NotBlank |
||||
private String leadIdCode; |
||||
|
||||
@Schema(description = "领导禁闭处罚ID") |
||||
private String leadConfinementId; |
||||
|
||||
@Schema(description = "三级机构名称") |
||||
@NotBlank |
||||
private String leadThreeDepartName; |
||||
|
||||
@Schema(description = "领导督察措施名称") |
||||
@NotBlank |
||||
private String leadMeasuresName; |
||||
|
||||
@Schema(description = "领导督察措施编码") |
||||
@NotBlank |
||||
private String leadMeasuresCode; |
||||
|
||||
@Schema(description = "领导责任类别名称") |
||||
@NotBlank |
||||
private String leadResponsibilityTypeName; |
||||
|
||||
@Schema(description = "领导责任类别编码") |
||||
@NotBlank |
||||
private String leadResponsibilityTypeCode; |
||||
|
||||
@Schema(description = "领导处理结果编码集合") |
||||
@NotBlank |
||||
private List<String> leadHandleResultCode; |
||||
|
||||
@Schema(description = "领导处理结果名称") |
||||
@NotBlank |
||||
private String leadHandleResultName; |
||||
|
||||
@Schema(description = "领导处理结果其他说明") |
||||
private String leadHandleResultNameOther; |
||||
|
||||
@Schema(description = "领导维权容错名称") |
||||
@NotBlank |
||||
private String leadProtectRightsName; |
||||
|
||||
@Schema(description = "领导维权容错编码") |
||||
@NotBlank |
||||
private String leadProtectRightsCode; |
||||
} |
||||
|
||||
@Getter |
||||
@Setter |
||||
@Schema(description = "问题类型信息") |
||||
public static class Problem { |
||||
|
||||
@Schema(description = "一级问题编码") |
||||
@NotBlank |
||||
private String oneLevelCode; |
||||
|
||||
@Schema(description = "二级问题编码") |
||||
@NotBlank |
||||
private String twoLevelCode; |
||||
|
||||
@Schema(description = "一级问题内容") |
||||
@NotBlank |
||||
private String oneLevelContent; |
||||
|
||||
@Schema(description = "二级问题内容") |
||||
@NotBlank |
||||
private String twoLevelContent; |
||||
|
||||
@Schema(description = "三级问题编码") |
||||
@NotBlank |
||||
private String threeLevelCode; |
||||
|
||||
@Schema(description = "三级问题内容") |
||||
@NotBlank |
||||
private String threeLevelContent; |
||||
|
||||
@Schema(description = "三级问题其他描述") |
||||
private String threeLevelContentOther; |
||||
} |
||||
} |
||||
@ -0,0 +1,30 @@
|
||||
package com.biutag.supervision.pojo.request.complaintCollection; |
||||
|
||||
import cn.hutool.core.util.StrUtil; |
||||
import com.biutag.supervision.aop.ParamChecked; |
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
/** |
||||
* @ClassName ComplaintCollectionWatchDetailRequest |
||||
* @Description 查看详情请求 |
||||
* @Author shihao |
||||
* @Date 2025/12/30 10:17 |
||||
*/ |
||||
@Getter |
||||
@Setter |
||||
@Schema(description = "查看详情请求") |
||||
public class ComplaintCollectionWatchDetailRequest implements ParamChecked { |
||||
|
||||
|
||||
@Schema(description = "涉访涉表id") |
||||
private String id; |
||||
|
||||
@Override |
||||
public void check() { |
||||
if (StrUtil.isBlank(id)) { |
||||
throw new IllegalArgumentException("id不能为空!"); |
||||
} |
||||
} |
||||
} |
||||
@ -1,4 +1,4 @@
|
||||
package com.biutag.supervision.pojo.vo; |
||||
package com.biutag.supervision.pojo.vo.complaintCollection; |
||||
|
||||
import com.biutag.supervision.pojo.dto.complaintCollection.ComplaintCollectionPageDTO; |
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
@ -0,0 +1,329 @@
|
||||
package com.biutag.supervision.pojo.vo.complaintCollection; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.biutag.supervision.pojo.enums.complaintCollection.ComplaintCollectionSourceTableEnum; |
||||
import com.biutag.supervision.pojo.enums.complaintCollection.YesOrNoEnum; |
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
import java.time.LocalDateTime; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @ClassName ComplaintCollectionWatchDetailVO |
||||
* @Description 查看详情VO |
||||
* @Author shihao |
||||
* @Date 2025/12/30 10:24 |
||||
*/ |
||||
@Getter |
||||
@Setter |
||||
@Schema(description = "查看详情VO") |
||||
public class ComplaintCollectionWatchDetailVO { |
||||
|
||||
@Schema(description = "id") |
||||
private String id; |
||||
|
||||
/** |
||||
* @see ComplaintCollectionSourceTableEnum |
||||
*/ |
||||
@Schema(description = "来源表类型") |
||||
private String sourceTable; |
||||
|
||||
@Schema(description = "来源子类型一") |
||||
private String sourceTableSubOne; |
||||
|
||||
@Schema(description = "来源表类型") |
||||
private String sourceTablePath; |
||||
|
||||
@Schema(description = "案件编号") |
||||
private String originId; |
||||
|
||||
@Schema(description = "发现时间 / 受理时间") |
||||
private LocalDateTime discoveryTime; |
||||
|
||||
@Schema(description = "反映人姓名") |
||||
private String responderName; |
||||
|
||||
@Schema(description = "投诉人身份证") |
||||
private String responderIdCode; |
||||
|
||||
@Schema(description = "联系电话") |
||||
private String responderPhone; |
||||
|
||||
@Schema(description = "办理二级单位名称") |
||||
private String secondDepartName; |
||||
|
||||
|
||||
@Schema(description = "办理二级单位id") |
||||
private String secondDepartId; |
||||
|
||||
@Schema(description = "内容/正文") |
||||
private String thingDesc; |
||||
|
||||
@Schema(description = "涉嫌问题") |
||||
private String involveProblem; |
||||
|
||||
@Schema(description = "涉嫌问题字符串") |
||||
private String involveProblemStr; |
||||
|
||||
/** |
||||
* @see YesOrNoEnum |
||||
*/ |
||||
@Schema(description = "是否重复件") |
||||
private String repeatt; |
||||
|
||||
/** |
||||
* @see YesOrNoEnum |
||||
*/ |
||||
@Schema(description = "是否领导审批") |
||||
private String leadApproval; |
||||
|
||||
|
||||
@Schema(description = "标签id") |
||||
private String tag; |
||||
|
||||
@Schema(description = "办理方式") |
||||
private String handleMethod; |
||||
|
||||
@Schema(description = "业务类型code") |
||||
private String businessTypeCode; |
||||
|
||||
@Schema(description = "业务类型name") |
||||
private String businessTypeName; |
||||
|
||||
|
||||
|
||||
/* ========================= |
||||
* 实体补充字段(实体有,DTO 原来没有) |
||||
* ========================= */ |
||||
|
||||
// 三表合并/两表合并补充
|
||||
@Schema(description = "涉企涉冻") |
||||
private String involvedIssue; |
||||
|
||||
@Schema(description = "办理三级单位名称") |
||||
private String thirdDepartName; |
||||
|
||||
@Schema(description = "分发状态") |
||||
private String distributionState; |
||||
|
||||
@Schema(description = "办理三级单位id") |
||||
private String thirdDepartId; |
||||
|
||||
@Schema(description = "问题来源code") |
||||
private String problemSourcesCode; |
||||
|
||||
@Schema(description = "问题来源名称") |
||||
private String problemSources; |
||||
|
||||
@Schema(description = "涉及警种名称") |
||||
private String policeTypeName; |
||||
|
||||
/* ---- PETITION 独有 ---- */ |
||||
@Schema(description = "投诉渠道") |
||||
private String channelForFilingComplaints; |
||||
|
||||
@Schema(description = "受理层级") |
||||
private String acceptanceLevel; |
||||
|
||||
@Schema(description = "初重信访") |
||||
private String initialPetition; |
||||
|
||||
@Schema(description = "缠访闹访") |
||||
private String entanglementVisits; |
||||
|
||||
@Schema(description = "群众集访") |
||||
private String massVisits; |
||||
|
||||
@Schema(description = "涉及警种") |
||||
private String policeType; |
||||
|
||||
@Schema(description = "信访人数") |
||||
private Integer peopleNumber; |
||||
|
||||
@Schema(description = "信访诉求") |
||||
private String appeal; |
||||
|
||||
@Schema(description = "公安业务分类") |
||||
private String businessClass; |
||||
|
||||
@Schema(description = "登记单位") |
||||
private String registerDepartName; |
||||
|
||||
@Schema(description = "转往处") |
||||
private String transferDepart; |
||||
|
||||
@Schema(description = "具体承办单位") |
||||
private String handleDepartName; |
||||
|
||||
@Schema(description = "办结时间") |
||||
private LocalDateTime completedTime; |
||||
|
||||
@Schema(description = "接访领导姓名") |
||||
private String receivingLeaderName; |
||||
|
||||
@Schema(description = "是否主要责任") |
||||
private String isMianResponsib; |
||||
|
||||
@Schema(description = "领导接访单位") |
||||
private String receivingDepartName; |
||||
|
||||
@Schema(description = "关联负面清单id") |
||||
private String negativeId; |
||||
|
||||
@Schema(description = "信访类型") |
||||
private String petitionType; |
||||
|
||||
@Schema(description = "信访办理情况") |
||||
private String petitionProcessingStatus; |
||||
|
||||
/* ---- CASE_VERIF 独有 ---- */ |
||||
@Schema(description = "问题发生时间") |
||||
private LocalDateTime happenTime; |
||||
|
||||
@Schema(description = "是否属实(1属实 2部分属实 3不属实)") |
||||
private Integer isReal; |
||||
|
||||
@Schema(description = "线索来源") |
||||
private String source; |
||||
|
||||
@Schema(description = "创建人(业务字段)") |
||||
private String creator; |
||||
|
||||
@Schema(description = "来源涉及单位名称") |
||||
private String sourceInvolveDepartName; |
||||
|
||||
@Schema(description = "外部id") |
||||
private String outerId; |
||||
|
||||
@Schema(description = "状态(crx_state)") |
||||
private String crxState; |
||||
|
||||
/* ---- MAILBOX/三表统一补充 ---- */ |
||||
@Schema(description = "核查情况") |
||||
private String checkStatus; |
||||
|
||||
@Schema(description = "核查情况名称") |
||||
private String checkStatusName; |
||||
|
||||
@Schema(description = "核查情况内容") |
||||
private String checkStatusDesc; |
||||
|
||||
@Schema(description = "办理状态") |
||||
private String processingStatus; |
||||
|
||||
@Schema(description = "涉及对象") |
||||
private String accountabilityTarget; |
||||
|
||||
@Schema(description = "来源表创建时间(业务字段)") |
||||
private LocalDateTime crtTime; |
||||
|
||||
/* ---- 新加字段 ---- */ |
||||
@Schema(description = "涉及案件/警情编号") |
||||
private String caseNumber; |
||||
|
||||
/* ---- 扩展字段 ---- */ |
||||
@Schema(description = "自定义1") |
||||
private String gwf1; |
||||
@Schema(description = "自定义2") |
||||
private String gwf2; |
||||
@Schema(description = "自定义3") |
||||
private String gwf3; |
||||
@Schema(description = "自定义4") |
||||
private String gwf4; |
||||
@Schema(description = "自定义5") |
||||
private String gwf5; |
||||
@Schema(description = "自定义6") |
||||
private String gwf6; |
||||
@Schema(description = "自定义7") |
||||
private String gwf7; |
||||
@Schema(description = "自定义8") |
||||
private String gwf8; |
||||
@Schema(description = "自定义9") |
||||
private String gwf9; |
||||
@Schema(description = "自定义10") |
||||
private String gwf10; |
||||
@Schema(description = "自定义11") |
||||
private String gwf11; |
||||
@Schema(description = "自定义12") |
||||
private String gwf12; |
||||
@Schema(description = "自定义13") |
||||
private String gwf13; |
||||
@Schema(description = "自定义14") |
||||
private String gwf14; |
||||
@Schema(description = "自定义15") |
||||
private String gwf15; |
||||
@Schema(description = "自定义16") |
||||
private String gwf16; |
||||
@Schema(description = "自定义17") |
||||
private String gwf17; |
||||
@Schema(description = "自定义18") |
||||
private String gwf18; |
||||
@Schema(description = "自定义19") |
||||
private String gwf19; |
||||
@Schema(description = "自定义20") |
||||
private String gwf20; |
||||
|
||||
/* ---- 审计字段 ---- */ |
||||
@Schema(description = "创建人") |
||||
private String createBy; |
||||
|
||||
@Schema(description = "创建时间") |
||||
private LocalDateTime createTime; |
||||
|
||||
@Schema(description = "更新人") |
||||
private String updateBy; |
||||
|
||||
@Schema(description = "更新时间") |
||||
private LocalDateTime updateTime; |
||||
|
||||
/* ---- 业务补充 ---- */ |
||||
@Schema(description = "办结情况") |
||||
private String completionStatus; |
||||
|
||||
@Schema(description = "群众认可") |
||||
private String publicRecognition; |
||||
|
||||
@Schema(description = "状态,显示用,暂无实际意义") |
||||
private String status; |
||||
|
||||
|
||||
@Schema(description = "涉及单位") |
||||
private String involveDepartName; |
||||
|
||||
@Schema(description = "涉及班子成员(领导类)") |
||||
private List<BlameInfoVO> deptBlames; |
||||
|
||||
@Schema(description = "涉及人员(普通个体)") |
||||
private List<BlameInfoVO> personalBlames; |
||||
|
||||
|
||||
@Getter |
||||
@Setter |
||||
@Schema(description = "涉及对象信息") |
||||
public static class BlameInfoVO { |
||||
|
||||
@Schema(description = "姓名") |
||||
private String blameName; |
||||
|
||||
@Schema(description = "警号") |
||||
private String blameEmpNo; |
||||
|
||||
@Schema(description = "身份证号码") |
||||
private String blameIdCode; |
||||
|
||||
@Schema(description = "人员属性编码") |
||||
private String ivPersonType; |
||||
|
||||
@Schema(description = "人员属性名称") |
||||
private String ivPersonTypeName; |
||||
|
||||
/** |
||||
* 1 = 人员,2 = 部门(可参考枚举) |
||||
*/ |
||||
@Schema(description = "对象类型(1人员 2单位)") |
||||
private String type; |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,41 @@
|
||||
package com.biutag.supervision.repository.complaintCollectionBlame; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||
import com.biutag.supervision.mapper.ComplaintCollectionBlameMapper; |
||||
import com.biutag.supervision.pojo.entity.ComplaintCollectionBlame; |
||||
import com.biutag.supervision.pojo.param.complaintCollectionBlame.ComplaintCollectionBlameQueryParam; |
||||
import com.biutag.supervision.repository.base.BaseDAO; |
||||
import jakarta.annotation.Resource; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import java.util.Collections; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @ClassName ComplaintCollectionBlameResourceService |
||||
* @Description ComplaintCollectionBlameResourceService |
||||
* @Author shihao |
||||
* @Date 2025/12/28 20:42 |
||||
*/ |
||||
@Service |
||||
public class ComplaintCollectionBlameResourceService extends BaseDAO { |
||||
|
||||
@Resource |
||||
private ComplaintCollectionBlameMapper complaintCollectionBlameMapper; |
||||
|
||||
|
||||
public List<ComplaintCollectionBlame> query(ComplaintCollectionBlameQueryParam param) { |
||||
LambdaQueryWrapper<ComplaintCollectionBlame> qw = new LambdaQueryWrapper<>(); |
||||
setBatchQuery(param.getBlameId(), param.getBlameIds(), qw, ComplaintCollectionBlame::getBlameId); |
||||
setBatchQuery(param.getComplaintId(), param.getComplaintIds(), qw, ComplaintCollectionBlame::getComplaintId); |
||||
if (qw.getExpression() == null || qw.getExpression().getSqlSegment().isEmpty()) { |
||||
return Collections.emptyList(); |
||||
} |
||||
return complaintCollectionBlameMapper.selectList(qw); |
||||
} |
||||
|
||||
public Boolean createComplaintCollectionBlame(List<ComplaintCollectionBlame> complaintCollectionList) { |
||||
innerBatchInsert(complaintCollectionBlameMapper, complaintCollectionList, "添加失败!"); |
||||
return Boolean.TRUE; |
||||
} |
||||
} |
||||
@ -0,0 +1,35 @@
|
||||
package com.biutag.supervision.util; |
||||
|
||||
import com.biutag.supervision.constants.enums.CheckStatusEnum; |
||||
import com.biutag.supervision.constants.enums.InspectCaseEnum; |
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
|
||||
/** |
||||
* @ClassName SfssUtil |
||||
* @Description 涉访涉诉相关工具 |
||||
* @Author shihao |
||||
* @Date 2025/12/30 15:36 |
||||
*/ |
||||
@Schema(description = "涉访涉诉相关工具") |
||||
public final class SfssUtil { |
||||
|
||||
|
||||
public static String getCheckStatusCategory(String checkStatusCode) { |
||||
String checkStatus = null; |
||||
if (CheckStatusEnum.TRUE.getValue().equals(checkStatusCode)) { |
||||
checkStatus = "1"; |
||||
} else if (CheckStatusEnum.PARTIALLY_TRUE.getValue().equals(checkStatusCode) || CheckStatusEnum.QTFT.getValue().equals(checkStatusCode)) { |
||||
checkStatus = "2"; |
||||
} else if (CheckStatusEnum.WFCS.getValue().equals(checkStatusCode) || CheckStatusEnum.FALSE.getValue().equals(checkStatusCode)) { |
||||
checkStatus = "3"; |
||||
} |
||||
return checkStatus; |
||||
} |
||||
|
||||
public static boolean isTrueInspectCaseByCheckStatus(String checkStatusCode) { |
||||
String checkStatusCategory = getCheckStatusCategory(checkStatusCode); |
||||
return InspectCaseEnum.isItTure(checkStatusCategory); |
||||
} |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,106 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?> |
||||
<!DOCTYPE mapper |
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.biutag.supervision.mapper.ComplaintCollectionBlameMapper"> |
||||
|
||||
<!-- 批量插入 ComplaintCollectionBlame 全字段 --> |
||||
<insert id="insertBatch" parameterType="java.util.List"> |
||||
INSERT INTO complaint_collection_blame ( |
||||
blame_id, |
||||
complaint_id, |
||||
type, |
||||
blame_name, |
||||
blame_id_code, |
||||
blame_emp_no, |
||||
blame_depart_id, |
||||
blame_depart_name, |
||||
iv_person_type_code, |
||||
iv_person_type_name, |
||||
problems, |
||||
responsibility_type_code, |
||||
responsibility_type_name, |
||||
subjective_aspect_code, |
||||
subjective_aspect_name, |
||||
handle_result_code, |
||||
handle_result_name, |
||||
handle_result_name_other, |
||||
protect_rights_code, |
||||
protect_rights_name, |
||||
supervise_measures_code, |
||||
supervise_measures_name, |
||||
confinement_id, |
||||
lead_name, |
||||
lead_id_code, |
||||
lead_emp_no, |
||||
lead_depart_id, |
||||
lead_depart_name, |
||||
lead_responsibility_type_code, |
||||
lead_responsibility_type_name, |
||||
lead_handle_result_code, |
||||
lead_handle_result_name, |
||||
lead_handle_result_name_other, |
||||
lead_protect_rights_code, |
||||
lead_protect_rights_name, |
||||
lead_confinement_id, |
||||
gwf1, gwf2, gwf3, gwf4, gwf5, |
||||
gwf6, gwf7, gwf8, gwf9, gwf10, |
||||
gwf11, gwf12, gwf13, gwf14, gwf15, |
||||
gwf16, gwf17, gwf18, gwf19, gwf20, |
||||
create_by, |
||||
create_time, |
||||
update_by, |
||||
update_time |
||||
) |
||||
VALUES |
||||
<foreach collection="list" item="item" separator=","> |
||||
( |
||||
#{item.blameId}, |
||||
#{item.complaintId}, |
||||
#{item.type}, |
||||
#{item.blameName}, |
||||
#{item.blameIdCode}, |
||||
#{item.blameEmpNo}, |
||||
#{item.blameDepartId}, |
||||
#{item.blameDepartName}, |
||||
#{item.ivPersonTypeCode}, |
||||
#{item.ivPersonTypeName}, |
||||
#{item.problems}, |
||||
#{item.responsibilityTypeCode}, |
||||
#{item.responsibilityTypeName}, |
||||
#{item.subjectiveAspectCode}, |
||||
#{item.subjectiveAspectName}, |
||||
#{item.handleResultCode}, |
||||
#{item.handleResultName}, |
||||
#{item.handleResultNameOther}, |
||||
#{item.protectRightsCode}, |
||||
#{item.protectRightsName}, |
||||
#{item.superviseMeasuresCode}, |
||||
#{item.superviseMeasuresName}, |
||||
#{item.confinementId}, |
||||
#{item.leadName}, |
||||
#{item.leadIdCode}, |
||||
#{item.leadEmpNo}, |
||||
#{item.leadDepartId}, |
||||
#{item.leadDepartName}, |
||||
#{item.leadResponsibilityTypeCode}, |
||||
#{item.leadResponsibilityTypeName}, |
||||
#{item.leadHandleResultCode}, |
||||
#{item.leadHandleResultName}, |
||||
#{item.leadHandleResultNameOther}, |
||||
#{item.leadProtectRightsCode}, |
||||
#{item.leadProtectRightsName}, |
||||
#{item.leadConfinementId}, |
||||
#{item.gwf1}, #{item.gwf2}, #{item.gwf3}, #{item.gwf4}, #{item.gwf5}, |
||||
#{item.gwf6}, #{item.gwf7}, #{item.gwf8}, #{item.gwf9}, #{item.gwf10}, |
||||
#{item.gwf11}, #{item.gwf12}, #{item.gwf13}, #{item.gwf14}, #{item.gwf15}, |
||||
#{item.gwf16}, #{item.gwf17}, #{item.gwf18}, #{item.gwf19}, #{item.gwf20}, |
||||
#{item.createBy}, |
||||
#{item.createTime}, |
||||
#{item.updateBy}, |
||||
#{item.updateTime} |
||||
) |
||||
</foreach> |
||||
</insert> |
||||
|
||||
</mapper> |
||||
Loading…
Reference in new issue