Browse Source

信访大屏后端1.7

main
parent
commit
bc56e1396b
  1. 2
      src/main/java/com/biutag/supervision/constants/AppConstants.java
  2. 18
      src/main/java/com/biutag/supervision/mapper/DataPetition12337Mapper.java
  3. 505
      src/main/java/com/biutag/supervision/pojo/entity/DataPetition12337.java
  4. 22
      src/main/java/com/biutag/supervision/service/DataPetition12337ServiceImpl.java
  5. 18
      src/main/java/com/biutag/supervision/service/DataPetitionComplaintService.java

2
src/main/java/com/biutag/supervision/constants/AppConstants.java

@ -22,7 +22,7 @@ public class AppConstants {
public static final String ROOT_DEPART_NAME = "长沙市公安局";
//
public static final String SIGN_RETURN_ACTION_NAME = "已退回";
}

18
src/main/java/com/biutag/supervision/mapper/DataPetition12337Mapper.java

@ -0,0 +1,18 @@
package com.biutag.supervision.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.biutag.supervision.pojo.entity.DataPetition12337;
/**
* @author 舒云
* @description 针对表data_petition_12337的数据库操作Mapper
* @createDate 2024-11-04 10:50:37
* @Entity generator.domain.DataPetition12337
*/
public interface DataPetition12337Mapper extends BaseMapper<DataPetition12337> {
}

505
src/main/java/com/biutag/supervision/pojo/entity/DataPetition12337.java

@ -0,0 +1,505 @@
package com.biutag.supervision.pojo.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
/**
*
* @TableName data_petition_12337
*/
@TableName(value ="data_petition_12337")
@Data
public class DataPetition12337 implements Serializable {
/**
* 唯一编号
*/
@TableId
private String only_id;
/**
* 外网线索编号
*/
private String external_id;
/**
* 内网线索编号
*/
private String inner_id;
/**
* 单机版线索编号
*/
private String stand_alone;
/**
* 信息受理登记时间
*/
private String discover_time;
/**
* 线索来源
*/
private String letter_source;
/**
* 举报人姓名
*/
private String name;
/**
* 手机号码
*/
private String phone;
/**
* 身份证号
*/
private String id_code;
/**
* 举报人
*/
private String reporter_provincial;
/**
* 举报人
*/
private String reporter_city;
/**
* 举报人
*/
private String reporter_county;
/**
* 现住地详址
*/
private String address;
/**
* 是否政法干警
*/
private String is_law_police;
/**
* 被举报人姓名
*/
private String reported_name;
/**
* 所属系统
*/
private String belong_system;
/**
* 人员类别
*/
private String person_type;
/**
* 被举报人所在地
*/
private String reported_provincial;
/**
* 被举报人所在地
*/
private String reported_city;
/**
* 被举报人所在地
*/
private String reported_county;
/**
* 单位名称
*/
private String org_name;
/**
* 单位所属层级
*/
private String org_level;
/**
* 具体职务
*/
private String job_name;
/**
* 职级
*/
private String job_level;
/**
* 被举报单位名称
*/
private String reported_org_name;
/**
* 被举报单位所属系统
*/
private String reported_org_belong;
/**
* 被举报单位所在地
*/
private String reported_org_provincial;
/**
* 被举报单位所在地
*/
private String reported_org_city;
/**
* 被举报单位所在地
*/
private String reported_org_county;
/**
* 被举报单位单位所属层级
*/
private String reported_org_level;
/**
* 涉嫌违纪问题项目
*/
private String against_pro_project;
/**
* 涉嫌贪污贿赂类犯罪
*/
private String corruption_guilt;
/**
* 涉嫌渎职类犯罪
*/
private String omission_guilt;
/**
* 涉嫌侵犯公民人身权利类犯罪
*/
private String invade_entitlement_guilt;
/**
* 涉嫌侵犯财产类犯罪
*/
private String invade_finance_guilt;
/**
* 其他
*/
private String other_guilt;
/**
* 顽瘴痼疾项目
*/
private String hard_pro_project;
/**
* 涉嫌违纪违法事项
*/
private String wjwf_project;
/**
* 转办时间
*/
private String pass_time;
/**
* 转办单位
*/
private String pass_org;
/**
* 核查时间
*/
private String review_time;
/**
* 核查单位
*/
private String review_org;
/**
* 核查人
*/
private String review_person_name;
/**
* 核查人联系方式
*/
private String review_person_phone;
/**
* 被核查人类别
*/
private String reviewed_person_type;
/**
* 被核查人是否属于领导班子成员
*/
private String reviewed_person_isleader;
/**
* 是否核查完结
*/
private String reviewed_isover;
/**
* 核查简要情况
*/
private String review_des;
/**
* 办理结果
*/
private String process_result;
/**
* 是否进行线索初核
*/
private String is_first_view;
/**
* 核查组组长
*/
private String review_leader;
/**
* (核查组组长)联系方式
*/
private String review_leader_phone;
/**
* 初核情况
*/
private String first_view_des;
/**
* 是否立案审查调查
*/
private String is_register_case;
/**
* 立案审查调查情况
*/
private String register_case_des;
/**
* 是否处分处理
*/
private String is_punish;
/**
* 处理结论形态
*/
private String process_res_type;
/**
* 处理结论结果
*/
private String process_res_des;
/**
* 处分处理情况
*/
private String punish_des;
/**
* 是否适用自查从宽政策
*/
private String is_tolerant;
/**
* 是否办结
*/
private String is_over;
/**
* 联系时间
*/
private String contact_time;
/**
* 联系单位
*/
private String contact_org;
/**
* 联系人
*/
private String contact_person_name;
/**
* 联系方式
*/
private String contact_type;
/**
* 与举报人联系沟通详情
*/
private String contact_reporter_des;
/**
* 超期未反馈原因
*/
private String overtime_reason;
/**
* 是否申请异议
*/
private String is_dissent;
/**
* 目标省份
*/
private String aim_provincial;
/**
* 申请人
*/
private String apply_person_name;
/**
* 联系方式
*/
private String apply_person_phone;
/**
* 申请原因
*/
private String apply_reason;
/**
* 异议处理方式
*/
private String dissent_handle;
/**
* 处理说明
*/
private String dissent_handle_explain;
/**
* 是否存在附件
*/
private String is_annex;
/**
* 附件文件名
*/
private String annex_name;
/**
* 线索举报时间
*/
private String report_time;
/**
* 导入时间
*/
private String enter_time;
/**
* 分发时间
*/
private String distribute_time;
/**
* 是否违纪违法线索
*/
private String is_against_clue;
/**
* 是否涉法涉诉线索
*/
private String is_appeal_clue;
/**
* 是否范围外线索
*/
private String is_overround_clue;
/**
* 是否无效线索
*/
private String is_invalid_clue;
/**
* 是否重点线索
*/
private String is_important_clue;
/**
* 线索是否重复
*/
private String is_repeat_clue;
/**
* 重复线索组别
*/
private String repeat_clue_type;
/**
* 线索是否进行了机筛
*/
private String is_machine;
/**
* 机筛线索时间
*/
private String machine_tme;
/**
* 线索是否经过人工筛查
*/
private String is_person;
/**
* 人工筛查线索时间
*/
private String person_time;
/**
* 是否关注线索
*/
private String is_care;
/**
* 关注时间
*/
private String care_time;
/**
* 操作时间
*/
private String handle_time;
/**
* 二级机构id
*/
private String second_depart_id;
/**
* 二级机构名字
*/
private String second_depart_name;
/**
* 三级机构id
*/
private String third_depart_id;
/**
* 三级机构简称
*/
private String third_depart_name;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

22
src/main/java/com/biutag/supervision/service/DataPetition12337ServiceImpl.java

@ -0,0 +1,22 @@
package com.biutag.supervision.service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.biutag.supervision.mapper.DataPetition12337Mapper;
import com.biutag.supervision.pojo.entity.DataPetition12337;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
/**
* @author 舒云
* @description 针对表data_petition_12337的数据库操作Service实现
* @createDate 2024-11-04 10:50:37
*/
@Service
@RequiredArgsConstructor
public class DataPetition12337ServiceImpl extends ServiceImpl<DataPetition12337Mapper, DataPetition12337> {
}

18
src/main/java/com/biutag/supervision/service/DataPetitionComplaintService.java

@ -9,8 +9,10 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.biutag.supervision.constants.enums.*;
import com.biutag.supervision.mapper.DataPetition12337Mapper;
import com.biutag.supervision.mapper.DataPetitionComplaintMapper;
import com.biutag.supervision.pojo.dto.*;
import com.biutag.supervision.pojo.entity.DataPetition12337;
import com.biutag.supervision.pojo.entity.DataPetitionComplaint;
import com.biutag.supervision.pojo.param.DataPetitionComplaintQueryParam;
import com.biutag.supervision.pojo.vo.RecentMailTrendByDayVo;
@ -18,7 +20,6 @@ import com.biutag.supervision.pojo.vo.RecentMailTrendByMonthVo;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZoneId;
@ -34,6 +35,8 @@ public class DataPetitionComplaintService extends ServiceImpl<DataPetitionCompla
private final DataPetitionComplaintMapper dataPetitionComplaintMapper;
private final DataPetition12337Mapper dataPetition12337Mapper;
public Page<DataPetitionComplaint> page(DataPetitionComplaintQueryParam queryParam) {
LambdaQueryWrapper<DataPetitionComplaint> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(DataPetitionComplaint::getProblemSourcesCode, queryParam.getProblemSourcesCode())
@ -128,9 +131,6 @@ public class DataPetitionComplaintService extends ServiceImpl<DataPetitionCompla
//所有分类数据总数
public JSONObject allMailCount(Date beginTime, Date endTime) {
QueryWrapper<DataPetitionComplaint> totalQueryWrapper = new QueryWrapper<>();
totalQueryWrapper.between("discovery_time", beginTime, endTime);
long totalMail = this.count(totalQueryWrapper);
// 国家信访
QueryWrapper<DataPetitionComplaint> countryQueryWrapper = new QueryWrapper<>();
countryQueryWrapper.eq("problem_sources_code", 21);
@ -141,6 +141,9 @@ public class DataPetitionComplaintService extends ServiceImpl<DataPetitionCompla
policeQueryWrapper.eq("problem_sources_code", 22);
policeQueryWrapper.between("discovery_time", beginTime, endTime);
Long policeMail = dataPetitionComplaintMapper.selectCount(policeQueryWrapper);
// 12337信访
QueryWrapper<DataPetition12337> queryWrapper12337 = new QueryWrapper<>();
Long total12337 = dataPetition12337Mapper.selectCount(queryWrapper12337);
// 初访
QueryWrapper<DataPetitionComplaint> firstQueryWrapper = new QueryWrapper<>();
firstQueryWrapper.eq("initial_petition", 1);
@ -171,6 +174,9 @@ public class DataPetitionComplaintService extends ServiceImpl<DataPetitionCompla
massQueryWrapper.eq("mass_visits", 1);
massQueryWrapper.between("discovery_time", beginTime, endTime);
Long massMail = dataPetitionComplaintMapper.selectCount(massQueryWrapper);
// 总数
long totalMail = countryMail+policeMail+5534+total12337;
JSONObject overview = new JSONObject()
// 信访总数(起)
.fluentPut("total", totalMail)
@ -179,9 +185,9 @@ public class DataPetitionComplaintService extends ServiceImpl<DataPetitionCompla
// 公安部信访
.fluentPut("policeMail", policeMail)
// 局长信箱
.fluentPut("commissionerMail", 10)
.fluentPut("commissionerMail", 5534)
// 12337信访
.fluentPut("numMail", 10)
.fluentPut("numMail", total12337)
// 初访;
.fluentPut("firstMail", firstMail)
// 重访

Loading…
Cancel
Save