Commit b874c95c by liulianglang

统计报表基本信息导出

parent c2eb9fc2
package org.springblade.founder.tjfx.controller;
import com.alibaba.excel.EasyExcel;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.codec.Charsets;
import org.springblade.founder.tjfx.entity.*;
import org.springblade.founder.tjfx.service.AjtjService;
import org.springblade.founder.utils.R;
import org.springblade.founder.utils.Utils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.net.URLEncoder;
import java.util.List;
import java.util.Map;
@RestController
@RequestMapping(value = "/ajtj")
......@@ -301,6 +305,21 @@ public class AjTjController {
return R.error(e.getMessage());
}
}
@RequestMapping("/exportAsjbhByAjTj")
@ResponseBody
public void exportAsjbhByAjTj(AjtjParam ajtjParam, HttpServletResponse response, HttpServletRequest request) throws IOException {
ajtjParam.setPage(1);
ajtjParam.setLimit(10000);
Utils.setOraclePageParams(ajtjParam);
List<TbStAsj> list = ajtjService.getFaList(ajtjParam);
response.setContentType("application/vnd.ms-excel");
response.setCharacterEncoding(Charsets.UTF_8.name());
String fileName = URLEncoder.encode("案件列表", Charsets.UTF_8.name());
response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx");
EasyExcel.write(response.getOutputStream(), TbStAsj.class).sheet("案件列表").doWrite(list);
}
@PostMapping("/getSwryList")
@ApiOperation(value = "死亡人员数透视", notes = "死亡人员数透视")
public R getSwryList(AjtjParam ajtjParam){
......@@ -315,6 +334,22 @@ public class AjTjController {
}
}
@RequestMapping("/exportAsjbhByAjTjSwry")
@ResponseBody
public void exportAsjbhByAjTjSwry(AjtjParam ajtjParam, HttpServletResponse response, HttpServletRequest request) throws IOException {
ajtjParam.setPage(1);
ajtjParam.setLimit(10000);
Utils.setOraclePageParams(ajtjParam);
List<TbXwRybh> list = ajtjService.getSwryList(ajtjParam);
response.setContentType("application/vnd.ms-excel");
response.setCharacterEncoding(Charsets.UTF_8.name());
String fileName = URLEncoder.encode("被害人列表", Charsets.UTF_8.name());
response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx");
EasyExcel.write(response.getOutputStream(), TbXwRybh.class).sheet("被害人列表").doWrite(list);
}
@PostMapping("/getZaryList")
@ApiOperation(value = "作案人员数透视", notes = "作案人员数透视")
public R getZaryList(AjtjParam ajtjParam){
......@@ -329,5 +364,20 @@ public class AjTjController {
}
}
@RequestMapping("/exportAsjbhByAjTjZary")
@ResponseBody
public void exportAsjbhByAjTjZary(AjtjParam ajtjParam, HttpServletResponse response, HttpServletRequest request) throws IOException {
ajtjParam.setPage(1);
ajtjParam.setLimit(10000);
Utils.setOraclePageParams(ajtjParam);
List<TbXwZbfzxyr> list = ajtjService.getZaryList(ajtjParam);
response.setContentType("application/vnd.ms-excel");
response.setCharacterEncoding(Charsets.UTF_8.name());
String fileName = URLEncoder.encode("作案人列表", Charsets.UTF_8.name());
response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx");
EasyExcel.write(response.getOutputStream(), TbXwZbfzxyr.class).sheet("作案人列表").doWrite(list);
}
}
package org.springblade.founder.tjfx.controller;
import com.alibaba.excel.EasyExcel;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.codec.Charsets;
import org.springblade.founder.tjfx.entity.AjtjParam;
import org.springblade.founder.tjfx.entity.LianTj;
import org.springblade.founder.tjfx.entity.SsjeAjVo;
import org.springblade.founder.tjfx.entity.TbStAsj;
import org.springblade.founder.tjfx.service.AjtjService;
import org.springblade.founder.tjfx.service.TjfxService;
import org.springblade.founder.utils.R;
import org.springblade.founder.utils.Utils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.net.URLEncoder;
import java.util.List;
@RestController
......@@ -821,6 +831,37 @@ public class TjfxController {
}
}
@RequestMapping("/exportAsjbhByTjfx")
@ResponseBody
public void exportAsjbhByTjfx(AjtjParam ajtjParam, HttpServletResponse response, HttpServletRequest request) throws IOException {
ajtjParam.setPage(1);
ajtjParam.setLimit(10000);
Utils.setOraclePageParams(ajtjParam);
ajtjService.setDwxx(ajtjParam);
List<TbStAsj> list = tjfxService.getExportFats(ajtjParam);
response.setContentType("application/vnd.ms-excel");
response.setCharacterEncoding(Charsets.UTF_8.name());
String fileName = URLEncoder.encode("案件列表", Charsets.UTF_8.name());
response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx");
EasyExcel.write(response.getOutputStream(), TbStAsj.class).sheet("案件列表").doWrite(list);
}
@RequestMapping("/exportAsjbhByTjfxSsje")
@ResponseBody
public void exportAsjbhByTjfxSsje(AjtjParam ajtjParam, HttpServletResponse response, HttpServletRequest request) throws IOException {
ajtjParam.setPage(1);
ajtjParam.setLimit(10000);
Utils.setOraclePageParams(ajtjParam);
ajtjService.setDwxx(ajtjParam);
List<SsjeAjVo> list = tjfxService.getExportSsjeTs(ajtjParam);
response.setContentType("application/vnd.ms-excel");
response.setCharacterEncoding(Charsets.UTF_8.name());
String fileName = URLEncoder.encode("案件列表", Charsets.UTF_8.name());
response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx");
EasyExcel.write(response.getOutputStream(), SsjeAjVo.class).sheet("案件列表").doWrite(list);
}
}
package org.springblade.founder.tjfx.entity;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import java.io.Serializable;
import java.util.Date;
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
@ExcelIgnoreUnannotated
public class SsjeAjVo implements Serializable {
//损失价值(人民币元)
@ExcelProperty(value = {"损失价值"},index = 7)
private String ssjzrmby = null;
//损失价值(人民币元)自定义字段
@ExcelIgnore
private String ssjzrmbyStart = null;
//损失价值(人民币元)自定义字段
@ExcelIgnore
private String ssjzrmbyEnd = null;
//案事件编号
@ExcelProperty(value = {"案事件编号"},index = 0)
private String asjbh = null;
// 立案日期
@ExcelProperty(value = {"立案日期"},index = 3)
private Date larq = null;
@ExcelIgnore
private String larqStr = null;
//立案单位_公安机关机构代码
@ExcelIgnore
private String ladwGajgjgdm = null;
@ExcelIgnore
private String ladwGajgjgdm_text = null;
//立案单位_公安机关名称
@ExcelProperty(value = {"立案单位"},index = 2)
private String ladwGajgmc = null;
//侦查终结单位_公安机关机构代码
@ExcelIgnore
private String zczjdwGajgjgdm = null;
//侦查终结单位_公安机关名称
@ExcelIgnore
private String zczjdwGajgmc = null;
//侦查终结时间_日期时间
@ExcelIgnore
private Date zczjsjRqsj = null;
//增加立案时间的范围
@ExcelIgnore
private Date lasjQssj=null;
@ExcelIgnore
private Date lasjJssj=null;
//登记时间
@ExcelIgnore
private Date djsj;
//侦查终结时间
@ExcelIgnore
private Date zczjZxsj01;
//案事件发生时间_案事件发生开始时间
@ExcelProperty(value = {"发案时间"},index = 4)
private Date asjfssjAsjfskssj = null;
@ExcelIgnore
private String asjfssjAsjfskssj_str = null;
@ExcelIgnore
private String asjfssjAsjfskssjStr = null;
//案件类别代码,最多可填写10个值
@ExcelProperty(value = {"案件类别"},index = 5)
private String ajlbdm = null;
@ExcelIgnore
private String ajlbdmStr = null;
@ExcelIgnore
private String ajlbdm_str = null;
// 作案特征_简要情况
@ExcelIgnore
private String zatzJyqk;
//案件名称
@ExcelProperty(value = {"案件名称"},index = 1)
private String ajmc = null;
//简要案情
@ExcelProperty(value = {"简要案情"},index = 6)
private String jyaq = null;
public String getSsjzrmby() {
return ssjzrmby;
}
public void setSsjzrmby(String ssjzrmby) {
this.ssjzrmby = ssjzrmby;
}
public String getSsjzrmbyStart() {
return ssjzrmbyStart;
}
public void setSsjzrmbyStart(String ssjzrmbyStart) {
this.ssjzrmbyStart = ssjzrmbyStart;
}
public String getSsjzrmbyEnd() {
return ssjzrmbyEnd;
}
public void setSsjzrmbyEnd(String ssjzrmbyEnd) {
this.ssjzrmbyEnd = ssjzrmbyEnd;
}
public String getAsjbh() {
return asjbh;
}
public void setAsjbh(String asjbh) {
this.asjbh = asjbh;
}
public Date getLarq() {
return larq;
}
public void setLarq(Date larq) {
this.larq = larq;
}
public String getLarqStr() {
return larqStr;
}
public void setLarqStr(String larqStr) {
this.larqStr = larqStr;
}
public String getLadwGajgjgdm() {
return ladwGajgjgdm;
}
public void setLadwGajgjgdm(String ladwGajgjgdm) {
this.ladwGajgjgdm = ladwGajgjgdm;
}
public String getLadwGajgjgdm_text() {
return ladwGajgjgdm_text;
}
public void setLadwGajgjgdm_text(String ladwGajgjgdm_text) {
this.ladwGajgjgdm_text = ladwGajgjgdm_text;
}
public String getLadwGajgmc() {
return ladwGajgmc;
}
public void setLadwGajgmc(String ladwGajgmc) {
this.ladwGajgmc = ladwGajgmc;
}
public String getZczjdwGajgjgdm() {
return zczjdwGajgjgdm;
}
public void setZczjdwGajgjgdm(String zczjdwGajgjgdm) {
this.zczjdwGajgjgdm = zczjdwGajgjgdm;
}
public String getZczjdwGajgmc() {
return zczjdwGajgmc;
}
public void setZczjdwGajgmc(String zczjdwGajgmc) {
this.zczjdwGajgmc = zczjdwGajgmc;
}
public Date getZczjsjRqsj() {
return zczjsjRqsj;
}
public void setZczjsjRqsj(Date zczjsjRqsj) {
this.zczjsjRqsj = zczjsjRqsj;
}
public Date getLasjQssj() {
return lasjQssj;
}
public void setLasjQssj(Date lasjQssj) {
this.lasjQssj = lasjQssj;
}
public Date getLasjJssj() {
return lasjJssj;
}
public void setLasjJssj(Date lasjJssj) {
this.lasjJssj = lasjJssj;
}
public Date getDjsj() {
return djsj;
}
public void setDjsj(Date djsj) {
this.djsj = djsj;
}
public Date getZczjZxsj01() {
return zczjZxsj01;
}
public void setZczjZxsj01(Date zczjZxsj01) {
this.zczjZxsj01 = zczjZxsj01;
}
public Date getAsjfssjAsjfskssj() {
return asjfssjAsjfskssj;
}
public void setAsjfssjAsjfskssj(Date asjfssjAsjfskssj) {
this.asjfssjAsjfskssj = asjfssjAsjfskssj;
}
public String getAsjfssjAsjfskssj_str() {
return asjfssjAsjfskssj_str;
}
public void setAsjfssjAsjfskssj_str(String asjfssjAsjfskssj_str) {
this.asjfssjAsjfskssj_str = asjfssjAsjfskssj_str;
}
public String getAsjfssjAsjfskssjStr() {
return asjfssjAsjfskssjStr;
}
public void setAsjfssjAsjfskssjStr(String asjfssjAsjfskssjStr) {
this.asjfssjAsjfskssjStr = asjfssjAsjfskssjStr;
}
public String getAjlbdm() {
return ajlbdm;
}
public void setAjlbdm(String ajlbdm) {
this.ajlbdm = ajlbdm;
}
public String getAjlbdmStr() {
return ajlbdmStr;
}
public void setAjlbdmStr(String ajlbdmStr) {
this.ajlbdmStr = ajlbdmStr;
}
public String getAjlbdm_str() {
return ajlbdm_str;
}
public void setAjlbdm_str(String ajlbdm_str) {
this.ajlbdm_str = ajlbdm_str;
}
public String getZatzJyqk() {
return zatzJyqk;
}
public void setZatzJyqk(String zatzJyqk) {
this.zatzJyqk = zatzJyqk;
}
public String getAjmc() {
return ajmc;
}
public void setAjmc(String ajmc) {
this.ajmc = ajmc;
}
public String getJyaq() {
return jyaq;
}
public void setJyaq(String jyaq) {
this.jyaq = jyaq;
}
}
......@@ -3,68 +3,93 @@ package org.springblade.founder.tjfx.entity;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import java.io.Serializable;
import java.util.Date;
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
@ExcelIgnoreUnannotated
public class TbStAsj implements Serializable {
//损失价值(人民币元)
@ExcelIgnore
private String ssjzrmby = null;
//损失价值(人民币元)自定义字段
@ExcelIgnore
private String ssjzrmbyStart = null;
//损失价值(人民币元)自定义字段
@ExcelIgnore
private String ssjzrmbyEnd = null;
//案事件编号
@ExcelProperty(value = {"案事件编号"},index = 0)
private String asjbh = null;
// 立案日期
@ExcelProperty(value = {"立案日期"},index = 3)
private Date larq = null;
@ExcelIgnore
private String larqStr = null;
//立案单位_公安机关机构代码
@ExcelIgnore
private String ladwGajgjgdm = null;
@ExcelIgnore
private String ladwGajgjgdm_text = null;
//立案单位_公安机关名称
@ExcelProperty(value = {"立案单位"},index = 2)
private String ladwGajgmc = null;
//侦查终结单位_公安机关机构代码
@ExcelIgnore
private String zczjdwGajgjgdm = null;
//侦查终结单位_公安机关名称
@ExcelIgnore
private String zczjdwGajgmc = null;
//侦查终结时间_日期时间
@ExcelIgnore
private Date zczjsjRqsj = null;
//数据来源,0:接收案事件信息;1:发现案事件信息;2:接收移交案事件信息
private String sjly = null;
//上报状态。00:未上报;01:已上报02:已撤销上报
private String sbzt=null;
//上报意见
private String sbyj=null;
//审批状态。00:未审批01:审批通过02:审批未通过03:已撤销审批
private String spbz=null;
//审批意见
private String spyj=null;
//上报时间(上报数据统计时,作为审批时间统计)
private Date sbsj= null;
//增加立案时间的范围
@ExcelIgnore
private Date lasjQssj=null;
@ExcelIgnore
private Date lasjJssj=null;
//登记时间
@ExcelIgnore
private Date djsj;
//侦查终结时间
@ExcelIgnore
private Date zczjZxsj01;
//案事件发生时间_案事件发生开始时间
@ExcelProperty(value = {"发案时间"},index = 4)
private Date asjfssjAsjfskssj = null;
@ExcelIgnore
private String asjfssjAsjfskssj_str = null;
@ExcelIgnore
private String asjfssjAsjfskssjStr = null;
//案件类别代码,最多可填写10个值
@ExcelProperty(value = {"案件类别"},index = 5)
private String ajlbdm = null;
@ExcelIgnore
private String ajlbdmStr = null;
@ExcelIgnore
private String ajlbdm_str = null;
// 作案特征_简要情况
@ExcelIgnore
private String zatzJyqk;
//案件名称
@ExcelProperty(value = {"案件名称"},index = 1)
private String ajmc = null;
//简要案情
@ExcelProperty(value = {"简要案情"},index = 6)
private String jyaq = null;
public String getSsjzrmby() {
......@@ -163,53 +188,7 @@ public class TbStAsj implements Serializable {
this.zczjsjRqsj = zczjsjRqsj;
}
public String getSjly() {
return sjly;
}
public void setSjly(String sjly) {
this.sjly = sjly;
}
public String getSbzt() {
return sbzt;
}
public void setSbzt(String sbzt) {
this.sbzt = sbzt;
}
public String getSbyj() {
return sbyj;
}
public void setSbyj(String sbyj) {
this.sbyj = sbyj;
}
public String getSpbz() {
return spbz;
}
public void setSpbz(String spbz) {
this.spbz = spbz;
}
public String getSpyj() {
return spyj;
}
public void setSpyj(String spyj) {
this.spyj = spyj;
}
public Date getSbsj() {
return sbsj;
}
public void setSbsj(Date sbsj) {
this.sbsj = sbsj;
}
public Date getLasjQssj() {
return lasjQssj;
......
package org.springblade.founder.tjfx.entity;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;
import org.springblade.founder.utils.BaseModel;
@Data
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
@ExcelIgnoreUnannotated
public class TbXwRybh extends BaseModel {
//<!>信息主键编号
@ExcelIgnore
private String xxzjbh = null;
//<!>案事件编号
@ExcelProperty(value = {"案事件编号"},index = 0)
private String asjbh = null;
//未知名尸体#0#1#1#BD_D_SFDM#COBBOX#5#
private String wzmstPdbz = null;
//疑似被侵害失踪人员#0#1#1#BD_D_SFDM#COBBOX#6#
private String ysbqhszryPdbz = null;
//被害开始时间#0#1#1##String#7#
private String bhsjKssj = null;
//被害结束时间#0#1#1##String#8#
private String bhsjJssj = null;
//被害地址名称CN#0#1#1##TEXTBOX#9#
@ExcelIgnore
private String bhddDzmc = null;
//人身侵犯结果#0#1#1#GA_D_RSQFJGDM#COBBOX#10#
private String rsqfjgdm = null;
//人身伤害程度#1#1#1#GA_D_RSSHCDDM#COBBOX#11#
@ExcelIgnore
private String rsshcddm = null;
@ExcelIgnore
private String rsshcddmStr = null;
//受伤害部位CN#0#1#1##TEXTBOX#12#
@ExcelIgnore
private String sshbwJyqk = null;
//<!>损失价值(人民币元)
@ExcelIgnore
private String ssjzrmby = null;
//是否发现尸体#0#1#1#BD_D_SFDM#COBBOX#4#
private String sffxstPdbz = null;
//<!>被害人_案事件相关人员编号
@ExcelIgnore
private String bhrAsjxgrybh = null;
//<!>被害人_信息封存_判断标识
private String bhrXxfcPdbz = null;
//尸体编号#0#1#1##TEXTBOX#3#
private String bhrStbh = null;
//<ryxx>姓名CN#0#1#1##TEXTBOX#13#
@ExcelProperty(value = {"被害人姓名"},index = 1)
private String bhrXm = null;
//<ryxx>被害人常用证件#0#1#1#KX_D_CYZJDM#COBBOX#1#
private String bhrCyzjCyzjdm = null;
//<!>被害人_常用证件_代码补充描述
private String bhrCyzjDmbcms = null;
//<ryxx>被害人证件号码#0#1#1##TEXTBOX#2#
@ExcelProperty(value = {"证件号码"},index = 2)
private String bhrCyzjZjhm = null;
//<ryxx>性别#0#1#1#GB_D_XBDM#COBBOX#16#
@ExcelProperty(value = {"性别"},index = 3)
private String bhrXbdm = null;
//出生日期_估值下限#1#1#1##String#14#
@ExcelIgnore
private String bhrCsrqRqgzxx = null;
//出生日期_估值上限#1#1#1##String#15#
@ExcelIgnore
private String bhrCsrqRqgzsx = null;
//<ryxx>国籍#0#1#1#GB_D_GJHDQDM#COBBOX#17#
@ExcelIgnore
private String bhrGjdm = null;
//<ryxx>籍贯#0#1#1#GB_D_XZQHDM#COBTREE#18#
@ExcelIgnore
private String bhrJgdm = null;
//<ryxx>民族#0#1#1#GB_D_MZDM#COBBOX#19#
@ExcelIgnore
private String bhrMzdm = null;
//<ryxx>户籍地址#0#1#1#GB_D_XZQHDM#COBTREE#20#
@ExcelProperty(value = {"户籍地"},index = 4)
private String bhrHjdzXzqhdm = null;
@ExcelIgnore
private String bhrHjdzXzqhdmStr = null;
//<ryxx>户籍地址名称CN#0#1#1##TEXTBOX#21#
@ExcelIgnore
private String bhrHjdzDzmc = null;
//<!>被害人_现住址_行政区划代码
@ExcelProperty(value = {"现住址"},index = 5)
private String bhrXzzXzqhdm = null;
@ExcelIgnore
private String bhrXzzXzqhdmStr = null;
//<!>被害人_现住址_地址名称
@ExcelIgnore
private String bhrXzzDzmc = null;
//<!>被害人_境外住址_国家和地区代码
private String bhrJwzzGjhdqdm = null;
//<!>被害人_境外住址_地址名称
private String bhrJwzzDzmc = null;
//<ryxx>职业类别#0#1#1#KX_D_ZYLBDM#COBTREE#22#
@ExcelIgnore
private String bhrZyZylbdm = null;
@ExcelIgnore
private String bhrZyZylbdmStr = null;
//<ryxx>职业类别描述CN#0#1#1##TEXTBOX#23#
private String bhrZyDmbcms = null;
//<!>人员身份#0#1#1#GA_D_ASJXGRYSFDM#COBBOX#24#
private String bhrAsjxgrysfAsjxgrysfdm = null;
private String bhrAsjxgrysfAsjxgrysfdmStr = null;
//<!>人员身份补充描述CN#0#1#1##TEXTBOX#25#
private String bhrAsjxgrysfDmbcms = null;
//<ryxx>身高(厘米)
private String bhrSg = null;
//体重(千克)
private String bhrTz = null;
//足长(厘米)C
private String bhrZc = null;
//体貌特征CN#0#1#1##TEXTBOX#30#
private String bhrTmtzms = null;
//体表标记CN#0#1#1##TEXTBOX#31#
private String bhrTbbjms = null;
//人其他特征CN#0#1#1##TEXTBOX#32#
private String bhrRqttzJyqk = null;
//个人爱好CN#0#1#1##TEXTBOX#33#
private String bhrGrahjhdtdJyqk = null;
//衣着特征CN#0#1#1##TEXTBOX#34#
private String bhrYztzms = null;
//<!>被害人_工作单位
private String bhrGzdw = null;
//联系电话#0#1#1##TEXTBOX#29#phone
@ExcelIgnore
private String bhrLxdh = null;
//是否有吸毒史#0#1#1#BD_D_SFDM#COBBOX#35#
private String bhrSfyxdsPdbz = null;
//<!>被害人_人去向_简要情况
private String bhrRqxJyqk = null;
//<!>被害人_携带物品_简要情况
private String bhrXdwpJyqk = null;
//十指指纹编号#0#1#1##TEXTBOX#36#
private String bhrSzzwbh = null;
//人员DNA编号#0#1#1##TEXTBOX#37#
private String bhrRydnabh = null;
//备注CN#0#1#1##TEXTBOX#38#
private String bhrBz = null;
//<!>联系人_姓名
private String lxrXm = null;
//<!>联系人_常用证件代码
private String lxrCyzjdm = null;
//<!>联系人_证件号码
private String lxrZjhm = null;
//信息删除_判断标识
private String xxscPdbz = null;
//信息登记单位_公安机关机构代码
private String xxdjdwGajgjgdm = null;
//信息登记单位_公安机关名称
private String xxdjdwGajgmc = null;
//信息登记人员_姓名
private String xxdjryXm = null;
//信息登记人员_公民身份号码
private String xxdjryGmsfhm = null;
//信息登记人员_联系电话
@ExcelIgnore
private String xxdjryLxdh = null;
//登记时间
@ExcelIgnore
private String djsj = null;
//信息操作单位_公安机关机构代码
private String xxczdwGajgjgdm = null;
//信息操作单位_公安机关名称
private String xxczdwGajgmc = null;
//信息操作人员_姓名
private String xxczryXm = null;
//信息操作人员_公民身份号码
private String xxczryGmsfhm = null;
//信息来源描述
private String xxlyms = null;
//信息入省库时间
private String xxrsksj = null;
//信息入部库时间
private String xxrbksj = null;
//信息入省库_判断标识
private String xxrskPdbz = null;
//信息入部库_判断标识
private String xxrbkPdbz = null;
//新增字段
//统计字段
private String field;
@ExcelIgnore
private String ajlbdm;
//统计字段名
private String fieldName = null;
//特征点
private String tzd;
//特征点排前数
private String tzdpzs;
//案件性质
@ExcelIgnore
private String ajxz=null;
@ExcelIgnore
private String zatzJyqk=null;
//出生日期开始查询时间
private String startcsrq = null;
//出生日期结束查询时间
private String endcsrq = null;
//人员被害时间_查询开始时间
private String startrybhsjRqsj=null;
//人员被害时间_查询结束时间
private String endrybhsjRqsj=null;
private String ajlbdm;
private String id;
//案件性质
private String ajxz=null;
private String zatzJyqk=null;
//改版后新增查询字段
private String ajzlb = null; //主案别
private String ajxzlb = null; //类案类别
private String xalbdmbcms = null;//次案类别
private String zcjddm = null;//侦查阶段代码
private String zbrRole = null;
private String sffjcxzpPdbz = null;
private String sldwGajgjgdm = null;//受理单位公安机关机构代码
private String ladwGajgjgdm = null;//立案单位公安机关机构代码
private String lasjRqsjKssj = null;//立案时间开始时间
private String lasjRqsjJssj = null;//立案时间结束时间
private String asjfssjKssj = null;//案发时间 开始时间
private String asjfssjJssj = null;//案发时间 结束时间
private String asjfsddXzqhdm = null;//案事件发生地点 行政区划代码
//是否命案
private String sfmaPdbz=null;
//是否涉枪
private String sfsqPdbz=null;
//是否涉黑
private String sfshPdbz=null;
//是否电信网络诈骗
private String sfdxzpPdbz = null;
// 是否拐卖_判断标识
private String sfgmPdbz = null;
// 是否涉及盗抢骗车辆_判断标识
private String sfsjdqpclPdbz = null;
// 是否侵财_判断标识
private String sfqcPdbz = null;
//作案时段
private String ajfssj_rsddm=null;
//侵害对象类型
private String xzdxdm=null;
//统计字段值
private String fieldValue = null;
// 上报状态 00:未上报;01:已上报 02:已撤销上报
private String sbzt = null;
//性别
private String bhrxbdmStr = null;
//民族
private String bhrmzdmStr = null;
//正面照片路径
private String zmzplj;
//正面信息编号-人员照片表TB_ST_RY_ZP外键
private String zmzpxxbh;
// 审批状态。00:未审批 01:审批通过 02:审批未通过 03:已撤销审批
private String spbz = null;
//对应代码表名
private String codename;
//特征点图形名称
private String tzdtxmc;
private String xxbh = null; // 信息编号
private String ryzpZjhm=null;//调全国人员照片库使用到的字段
private String asjbhs = null; //多个案事件编号的集合
}
package org.springblade.founder.tjfx.entity;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springblade.founder.utils.BaseModel;
......@@ -7,6 +12,10 @@ import org.springblade.founder.utils.BaseModel;
import java.util.Date;
@Data
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
@ExcelIgnoreUnannotated
public class TbXwZbfzxyr extends BaseModel {
private static final long serialVersionUID = 1L;
......@@ -42,6 +51,7 @@ public class TbXwZbfzxyr extends BaseModel {
// 民族代码
private String mzdm = null;
// 户籍地址_行政区划代码
@ExcelProperty(value = {"户籍地"},index = 4)
private String hjdzXzqhdm = null;
private String hjd= null;
// 户籍地址_地址名称
......@@ -49,6 +59,7 @@ public class TbXwZbfzxyr extends BaseModel {
// 现住址_行政区划代码
private String xzdXzqhdm = null;
// 现住址_地址名称
@ExcelProperty(value = {"现住址"},index = 5)
private String xzdDzmc = null;
// 出生地_行政区划代码
private String csdXzqhdm = null;
......@@ -98,32 +109,6 @@ public class TbXwZbfzxyr extends BaseModel {
private String wffzjldm = null;
// 违法犯罪经历描述
private String wffzjlms = null;
// 简历
private String jl = null;
// 个人收入支出情况
private String grsrzcqk = null;
// 社会交往情况
private String shjwqk = null;
// 个人爱好及活动特点描述
private String grahjhdtdms = null;
// 流窜作案情况
private String lczaqk = null;
// 犯罪嫌疑人特殊行为特点代码
private String fzxyrtsxwtddm = null;
// 犯罪嫌疑人特殊行为特点代码补充描述
private String fzxyrtsxwtddmbcms = null;
// 案件共同作案人员组合形式代码
private String ajgtzaryzhxsdm = null;
// 案件共同作案人员构成代码
private String ajgtzarygcdm = null;
// 案件共同作案人员构成代码补充描述
private String ajgtzarygcdmbcms = null;
// 十指指纹编号
private String szzwbh = null;
// DNA编号
private String dnabh = null;
// 办理时间_日期时间
private Date blsjRqsj = null;
private String zhdd_xzqhdm;
private String zhdd_dzmc;
......@@ -171,6 +156,7 @@ public class TbXwZbfzxyr extends BaseModel {
private String yshrgx; // 与受害人关系0:非亲属 1:亲属
private String daztdmStr; //到案状态代码
//抓获日期
@ExcelProperty(value = {"抓获日期"},index = 7)
private String zhrqstr;
//发现犯罪嫌疑人主键编号
......@@ -311,6 +297,7 @@ public class TbXwZbfzxyr extends BaseModel {
private String xxzjbh = null;
//<!>案事件编号
@ExcelProperty(value = {"案事件编号"},index = 0)
private String asjbh = null;
private String asjbhs = null;
......@@ -361,6 +348,7 @@ public class TbXwZbfzxyr extends BaseModel {
private String zhfzxyrAsjxgrybh = null;
//到案状态#1#1#1#GA_D_DAZTDM#COBBOX#14#
@ExcelProperty(value = {"到案状态"},index = 6)
private String zhfzxyrFzxyrdaztdm = null;
//人身强制措施代码#0#1#1#GA_D_RSQZCSDM#COBBOX#15#
......@@ -383,6 +371,7 @@ public class TbXwZbfzxyr extends BaseModel {
private String zhfzxyrSfswztPdbz = null;
//<ryxx>姓名CN#1#1#1##TEXTBOX#24#
@ExcelProperty(value = {"姓名"},index = 1)
private String zhfzxyrXm = null;
//<ryxx>曾用名CN#0#1#1##TEXTBOX#25#
......@@ -398,6 +387,7 @@ public class TbXwZbfzxyr extends BaseModel {
private String zhfzxyrCyzjDmbcms = null;
//<ryxx>证件号码#1#1#1##TEXTBOX#23#
@ExcelProperty(value = {"证件号码"},index = 3)
private String zhfzxyrCyzjZjhm = null;
//出生日期估值下限#0#1#1##DATE#29#
......@@ -407,6 +397,7 @@ public class TbXwZbfzxyr extends BaseModel {
private Date rqgzxxCsrqRqgzsx = null;
//<ryxx>性别#1#1#1#GB_D_XBDM#COBBOX#27#
@ExcelProperty(value = {"性别"},index = 2)
private String zhfzxyrXbdm = null;
//嫌疑人性别
......
......@@ -215,7 +215,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
select asj.larq as monthName,count(*) faNum from (
SELECT to_char(asj.larq,'yyyy-mm') as larq
FROM tb_st_asj asj
where asj.xxsc_pdbz='0' and asj.ZCJDDM = '0600' and asj.ZCZJ_ZXSJ01 is not null
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0600','0700','0800') and asj.ZCZJ_ZXSJ01 is not null
<if test="larqQssj!=null and larqQssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ <![CDATA[>=]]> to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
......@@ -240,7 +240,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
select asj.larq as monthName,count(*) faNum from (
SELECT to_char(asj.larq,'yyyy-mm') as larq
FROM tb_st_asj asj
where asj.xxsc_pdbz='0' and asj.ZCJDDM = '0600' and asj.ZCZJ_ZXSJ01 is not null
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0600','0700','0800') and asj.ZCZJ_ZXSJ01 is not null
<if test="ajlbsql !=null and ajlbsql!=''">
${ajlbsql}
</if>
......@@ -371,7 +371,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
SELECT count(1)
FROM tb_st_asj asj
where asj.xxsc_pdbz='0' and asj.ZCJDDM = '0600' and asj.ZCZJ_ZXSJ01 is not null and to_char(ASJ.LARQ,'yyyy-MM') =#{qnrq}
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0600','0700','0800') and asj.ZCZJ_ZXSJ01 is not null and to_char(ASJ.LARQ,'yyyy-MM') =#{qnrq}
<if test="ajlbsql !=null and ajlbsql!=''">
${ajlbsql}
</if>
......@@ -450,7 +450,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
SELECT count(1)
FROM tb_st_asj asj
where asj.xxsc_pdbz='0' and asj.ZCJDDM = '0600' and asj.ZCZJ_ZXSJ01 is not null
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0600','0700','0800') and asj.ZCZJ_ZXSJ01 is not null
<if test="larqQssj!=null and larqQssj!=''"><!--时间不为空 根据立案日期选择查询-->
AND ASJ.LARQ <![CDATA[>=]]> to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
......@@ -477,7 +477,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
SELECT count(1)
FROM tb_st_asj asj
where asj.xxsc_pdbz='0' and asj.ZCJDDM = '0600' and asj.ZCZJ_ZXSJ01 is not null
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0600','0700','0800') and asj.ZCZJ_ZXSJ01 is not null
<if test="ajlbsql !=null and ajlbsql!=''">
${ajlbsql}
</if>
......@@ -678,11 +678,11 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
rybh.bhr_xm bhrXm,
rybh.bhr_cyzj_zjhm bhrCyzjZjhm,
rybh.bhr_jgdm as bhrJgdm,
(select name from sys_dictitem dic where dic.groupid='CODE_SF' and dic.code=rybh.bhr_asjxgrysf_asjxgrysfdm) bhrAsjxgrysfAsjxgrysfdm,
(select name from sys_dictitem dic where dic.groupid='CODE_XB' and dic.code=rybh.bhr_xbdm) bhrXbdm,
(select name from sys_dictitem dic where dic.groupid='CODE_ZJ' and dic.code=rybh.bhr_cyzj_cyzjdm) bhrCyzjCyzjdm,
rybh.bhr_lxdh bhrLxdh,
rybh.bhr_xzz_xzqhdm as bhrXzzXzqhdm,
(select name from sys_dictitem dic where dic.groupid='CODE_XZQH' and dic.code=rybh.bhr_xzz_xzqhdm) as bhrXzzXzqhdm,
(select name from sys_dictitem dic where dic.groupid='CODE_XZQH' and dic.code=rybh.bhr_hjdz_xzqhdm) as bhrHjdzXzqhdm,
rybh.bhr_hjdz_dzmc bhrHjdzDzmc
......@@ -841,10 +841,10 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
and asj.ajlbdm like '0607%'
</if>
<if test="type!=null and type!='' and type == 'qt'.toString()"><!--其他-->
and asj.ajlbdm not in ('05000200','05000300','05000400','03010000','03011000','03020000','03030000',
and ( (asj.ajlbdm not in ('05000200','05000300','05000400','03010000','03011000','03020000','03030000',
'03040000','03050000','03060000','03070000','03080000','02000100','02000300','02002100','04000100','04000300','04000600','04001000',
'05000100','02002201'
,'02002202') and asj.ajlbdm not like '0607%'
,'02002202') and asj.ajlbdm not like '0607%') or asj.ajlbdm is null )
</if>
<if test="type!=null and type!='' and type == 'gmrsql'.toString()"><!--公民人身权利-->
and asj.ajlbdm like '0400%'
......@@ -884,7 +884,7 @@ from tb_st_asj asj where asj.xxsc_pdbz='0'
</if>
<if test="ajType!=null and ajType!='' and ajType == '2'.toString()"><!--破案查询-->
and asj.ZCJDDM = '0600' and asj.ZCZJ_ZXSJ01 is not null
and asj.ZCJDDM in ('0600','0700','0800') and asj.ZCZJ_ZXSJ01 is not null
</if>
<if test="unitcodeList != null and unitcodeList.size() > 0">
and
......
......@@ -3,6 +3,7 @@ package org.springblade.founder.tjfx.mapper;
import org.apache.ibatis.annotations.Mapper;
import org.springblade.founder.tjfx.entity.AjtjParam;
import org.springblade.founder.tjfx.entity.AjtjResult;
import org.springblade.founder.tjfx.entity.SsjeAjVo;
import org.springblade.founder.tjfx.entity.TbStAsj;
import org.springframework.stereotype.Component;
......@@ -74,5 +75,9 @@ public interface TjfxMapper {
*/
List<TbStAsj> getSsjeTs(AjtjParam ajtjParam);
int getSsjeTsCount(AjtjParam ajtjParam);
List<SsjeAjVo> getExportSsjeTs(AjtjParam ajtjParam);
}
......@@ -22,7 +22,7 @@
</if>
<if test="ajType!=null and ajType!='' and ajType == '2'.toString()"><!--破案查询-->
and asj.ZCJDDM = '0600' and asj.ZCZJ_ZXSJ01 is not null
and asj.ZCJDDM in ('0600','0700','0800') and asj.ZCZJ_ZXSJ01 is not null
</if>
<if test="month!=null and month!=''">
AND to_char(asj.LARQ,'yyyy-MM')=#{month}
......@@ -109,7 +109,7 @@
select asj.larq as monthName,count(*) faNum from (
SELECT to_char(asj.larq,'yyyy-mm') as larq
FROM tb_st_asj asj
where asj.xxsc_pdbz='0' and asj.ZCJDDM = '0600' and asj.ZCZJ_ZXSJ01 is not null
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0600','0700','0800') and asj.ZCZJ_ZXSJ01 is not null
<include refid="aj-condition"/>
<include refid="common-condition"/>
) asj
......@@ -121,7 +121,7 @@
SELECT count(1)
FROM tb_st_asj asj
where asj.xxsc_pdbz='0' and asj.ZCJDDM = '0600' and asj.ZCZJ_ZXSJ01 is not null
where asj.xxsc_pdbz='0' and asj.ZCJDDM in ('0600','0700','0800') and asj.ZCZJ_ZXSJ01 is not null
<include refid="aj-condition"/>
<include refid="common-condition"/>
......@@ -208,6 +208,33 @@
WHERE r > #{ begin } ]]>
</select>
<select id="getExportSsjeTs" resultType="org.springblade.founder.tjfx.entity.SsjeAjVo">
<![CDATA[SELECT t.* FROM (
SELECT a.* , rownum r FROM (]]>
select
asj.asjbh as asjbh,
asj.ladw_Gajgmc AS ladwGajgmc,
asj.ZCZJ_ZXSJ01 AS zczjZxsj01,
asj.larq AS larq,
asj.asjfssj_Asjfskssj AS asjfssjAsjfskssj,
(SELECT name FROM sys_dictitem WHERE groupid = 'CODE_AJLB' AND code = asj.ajlbdm) as ajlbdm,
(SELECT name FROM sys_dictitem WHERE groupid = 'CODE_AJXZ' AND code = asj.zatz_jyqk) as zatzJyqk,
asj.ajmc AS ajmc,
asj.jyaq AS jyaq,
asj.SSJZRMBY as ssjzrmby
from TB_ST_ASJ asj
where asj.xxsc_pdbz='0' and asj.SSJZRMBY>0
<include refid="aj-condition"/>
<include refid="common-condition"/>
order by asj.larq desc
<![CDATA[ )a
WHERE ROWNUM <= #{ end } ) t
WHERE r > #{ begin } ]]>
</select>
<select id="getSsjeTsCount" resultType="java.lang.Integer">
select count(1) from tb_st_asj asj
where asj.xxsc_pdbz='0' and asj.SSJZRMBY>0
......
package org.springblade.founder.tjfx.service;
import org.springblade.founder.tjfx.entity.AjtjParam;
import org.springblade.founder.tjfx.entity.AjtjResult;
import org.springblade.founder.tjfx.entity.LianTj;
import org.springblade.founder.tjfx.entity.*;
import org.springblade.founder.utils.R;
import java.util.List;
......@@ -26,10 +24,14 @@ public interface TjfxService {
//案件立案分月分析
R getFats(AjtjParam ajtjParam);
List<TbStAsj> getExportFats(AjtjParam ajtjParam);
//案件破案分月分析
R getPats(AjtjParam ajtjParam);
//破积案透视
R getPxats(AjtjParam ajtjParam);
//损失金额透视
R getSsjeTs(AjtjParam ajtjParam);
List<SsjeAjVo> getExportSsjeTs(AjtjParam ajtjParam);
}
......@@ -4,6 +4,7 @@ import com.baomidou.dynamic.datasource.annotation.DS;
import org.springblade.core.secure.utils.SecureUtil;
import org.springblade.founder.tjfx.entity.*;
import org.springblade.founder.tjfx.mapper.AjtjMapper;
import org.springblade.founder.tjfx.mapper.DwTjfxMapper;
import org.springblade.founder.tjfx.service.AjtjService;
import org.springblade.founder.utils.DateUtil;
import org.springblade.founder.utils.DwUtil;
......@@ -25,7 +26,8 @@ import java.util.Map;
public class AjtjServiceImpl implements AjtjService {
@Resource
private AjtjMapper ajtjMapper;
@Resource
private DwTjfxMapper dwTjfxMapper;
@Override
public List<AjtjResult> getFapafyuest(AjtjParam ajtjParam) {
setDwxx(ajtjParam);
......@@ -1209,4 +1211,9 @@ public class AjtjServiceImpl implements AjtjService {
}
}
@Override
public DwXnpgTj getDwTjFx(Map<String, Object> paramMap) {
return dwTjfxMapper.getDwTjFx(paramMap);
}
}
......@@ -2,10 +2,7 @@ package org.springblade.founder.tjfx.service.impl;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.springblade.founder.tjfx.entity.AjtjParam;
import org.springblade.founder.tjfx.entity.AjtjResult;
import org.springblade.founder.tjfx.entity.LianTj;
import org.springblade.founder.tjfx.entity.TbStAsj;
import org.springblade.founder.tjfx.entity.*;
import org.springblade.founder.tjfx.mapper.TjfxMapper;
import org.springblade.founder.tjfx.service.TjfxService;
import org.springblade.founder.utils.DateUtil;
......@@ -205,6 +202,14 @@ public class TjfxServiceImpl implements TjfxService {
return R.ok().data("rows",ajTs).data("total",count);
}
@Override
public List<TbStAsj> getExportFats(AjtjParam ajtjParam) {
Utils.setOraclePageParams(ajtjParam);
List<TbStAsj> ajTs = tjfxMapper.getAjTs(ajtjParam);
return ajTs;
}
@Override
public R getPats(AjtjParam ajtjParam) {
......@@ -232,4 +237,12 @@ public class TjfxServiceImpl implements TjfxService {
return R.ok().data("rows",ajTs).data("total",count);
}
@Override
public List<SsjeAjVo> getExportSsjeTs(AjtjParam ajtjParam) {
Utils.setOraclePageParams(ajtjParam);
List<SsjeAjVo> ajTs = tjfxMapper.getExportSsjeTs(ajtjParam);
return ajTs;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment