Commit e1320ea0 by liulianglang

现阶段还未成年数据

parent 2f80432f
...@@ -3,10 +3,7 @@ package org.springblade.founder.tjfx.controller; ...@@ -3,10 +3,7 @@ package org.springblade.founder.tjfx.controller;
import com.alibaba.excel.EasyExcel; import com.alibaba.excel.EasyExcel;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.apache.commons.codec.Charsets; import org.apache.commons.codec.Charsets;
import org.springblade.founder.tjfx.entity.DwTjParam; import org.springblade.founder.tjfx.entity.*;
import org.springblade.founder.tjfx.entity.TbStAsj;
import org.springblade.founder.tjfx.entity.TbXwZbfzxyr;
import org.springblade.founder.tjfx.entity.WcnrEntity;
import org.springblade.founder.tjfx.service.AjlbSysDictService; import org.springblade.founder.tjfx.service.AjlbSysDictService;
import org.springblade.founder.tjfx.service.WcnrfzShrTjService; import org.springblade.founder.tjfx.service.WcnrfzShrTjService;
import org.springblade.founder.tjfx.service.WcnrfzTjService; import org.springblade.founder.tjfx.service.WcnrfzTjService;
...@@ -43,6 +40,28 @@ public class WcnrfzShrTjController { ...@@ -43,6 +40,28 @@ public class WcnrfzShrTjController {
return R.error(e.getMessage()); return R.error(e.getMessage());
} }
} }
@RequestMapping("/ExportWcnrTj")
@ResponseBody
public void ExportWcnrTj(DwTjParam dwTjParam, HttpServletResponse response, HttpServletRequest request) throws IOException {
EasyUIPage easyUIPage = new EasyUIPage();
easyUIPage.setPage(1);
easyUIPage.setPageParaOracle(10000);
int begin = easyUIPage.getBegin();
int end = easyUIPage.getEnd();
dwTjParam.setBegin(begin);
dwTjParam.setEnd(end);
Map<String, Object> rtMap = wcnrfzShrTjService.getWcnrTj(dwTjParam);
List<DwWcnrTj> list =(List<DwWcnrTj>)rtMap.get("rows");
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(), DwWcnrTj.class).sheet("未成年受害人涉案信息统计").doWrite(list);
}
@PostMapping("/getWcnrAjlbTjByPid") @PostMapping("/getWcnrAjlbTjByPid")
@ApiOperation(value = "未成年人单位案件类别统计") @ApiOperation(value = "未成年人单位案件类别统计")
......
package org.springblade.founder.tjfx.entity; 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 lombok.Data; import lombok.Data;
@Data @Data
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
@ExcelIgnoreUnannotated
public class DwWcnrTj { public class DwWcnrTj {
private String dwdm; private String dwdm;
@ExcelProperty({"单位","单位"})
private String dwmc; private String dwmc;
@ExcelProperty({"危害国家安全案","案件数"})
private int ajs01; private int ajs01;
@ExcelProperty({"危害公共安全案","案件数"})
private int ajs02; private int ajs02;
@ExcelProperty({"破坏社会主义市场经济秩序案","案件数"})
private int ajs03; private int ajs03;
@ExcelProperty({"侵犯公民人身权利、民主权利案","案件数"})
private int ajs04; private int ajs04;
@ExcelProperty({"侵犯财产案","案件数"})
private int ajs05; private int ajs05;
@ExcelProperty({"妨害社会管理秩序案","案件数"})
private int ajs06; private int ajs06;
@ExcelProperty({"危害国防利益案","案件数"})
private int ajs07; private int ajs07;
@ExcelProperty({"贪污贿赂案","案件数"})
private int ajs08; private int ajs08;
@ExcelProperty({"渎职案","案件数"})
private int ajs09; private int ajs09;
@ExcelProperty({"军人违反职责案","案件数"})
private int ajs10; private int ajs10;
@ExcelProperty({"危害国家安全案","人员数"})
private int rys01; private int rys01;
@ExcelProperty({"危害公共安全案","人员数"})
private int rys02; private int rys02;
@ExcelProperty({"破坏社会主义市场经济秩序案","人员数"})
private int rys03; private int rys03;
@ExcelProperty({"侵犯公民人身权利、民主权利案","人员数"})
private int rys04; private int rys04;
@ExcelProperty({"侵犯财产案","人员数"})
private int rys05; private int rys05;
@ExcelProperty({"妨害社会管理秩序案","人员数"})
private int rys06; private int rys06;
@ExcelProperty({"危害国防利益案","人员数"})
private int rys07; private int rys07;
@ExcelProperty({"贪污贿赂案","人员数"})
private int rys08; private int rys08;
@ExcelProperty({"渎职案","人员数"})
private int rys09; private int rys09;
@ExcelProperty({"军人违反职责案","人员数"})
private int rys10; private int rys10;
private String qryType; private String qryType;
private int ryshj;
private int ajshj;
} }
...@@ -25,6 +25,10 @@ public class TbXwZbfzxyr extends BaseModel { ...@@ -25,6 +25,10 @@ public class TbXwZbfzxyr extends BaseModel {
private String zhfsdm = null; private String zhfsdm = null;
// 违法犯罪人员编号 // 违法犯罪人员编号
private String wffzrybh = null; private String wffzrybh = null;
//时间段查询里面包含案件
private String xasjbhstr;
//不在时间段查询里面包含案件
private String nxasjbhstr;
// 人员编号 // 人员编号
private String rybh = null; private String rybh = null;
// 在逃人员编号 // 在逃人员编号
......
...@@ -163,6 +163,79 @@ public class WcnrfzShrTjServiceImpl implements WcnrfzShrTjService { ...@@ -163,6 +163,79 @@ public class WcnrfzShrTjServiceImpl implements WcnrfzShrTjService {
res = dataList.stream().sorted(Comparator.comparing(DwWcnrTj::getDwdm)) res = dataList.stream().sorted(Comparator.comparing(DwWcnrTj::getDwdm))
.collect(Collectors.toList()); .collect(Collectors.toList());
DwWcnrTj zsnum=new DwWcnrTj();
zsnum.setDwdm("合计");
zsnum.setDwmc("合计");
int ajs01zs=0;
int ajs02zs=0;
int ajs03zs=0;
int ajs04zs=0;
int ajs05zs=0;
int ajs06zs=0;
int ajs07zs=0;
int ajs08zs=0;
int ajs09zs=0;
int ajs10zs=0;
int rys01zs=0;
int rys02zs=0;
int rys03zs=0;
int rys04zs=0;
int rys05zs=0;
int rys06zs=0;
int rys07zs=0;
int rys08zs=0;
int rys09zs=0;
int rys10zs=0;
for(DwWcnrTj js:dataList){
ajs01zs+=js.getAjs01();
ajs02zs+=js.getAjs02();
ajs03zs+=js.getAjs03();
ajs04zs+=js.getAjs04();
ajs05zs+=js.getAjs05();
ajs06zs+=js.getAjs06();
ajs07zs+=js.getAjs07();
ajs08zs+=js.getAjs08();
ajs09zs+=js.getAjs09();
ajs10zs+=js.getAjs10();
js.setAjshj(js.getAjs01()+js.getAjs02()+js.getAjs03()+js.getAjs04()+js.getAjs05()+js.getAjs06()+js.getAjs07()+js.getAjs08()+js.getAjs09()+js.getAjs10());
rys01zs+=js.getRys01();
rys02zs += js.getRys02();
rys03zs += js.getRys03();
rys04zs += js.getRys04();
rys05zs += js.getRys05();
rys06zs += js.getRys06();
rys07zs += js.getRys07();
rys08zs += js.getRys08();
rys09zs += js.getRys09();
rys10zs += js.getRys10();
js.setRyshj(js.getRys01()+js.getRys02()+js.getRys03()+js.getRys04()+js.getRys05()+js.getRys06()+js.getRys07()+js.getRys08()+js.getRys09()+js.getRys10());
}
zsnum.setAjs01(ajs01zs);
zsnum.setAjs02(ajs02zs);
zsnum.setAjs03(ajs03zs);
zsnum.setAjs04(ajs04zs);
zsnum.setAjs05(ajs05zs);
zsnum.setAjs06(ajs06zs);
zsnum.setAjs07(ajs07zs);
zsnum.setAjs08(ajs08zs);
zsnum.setAjs09(ajs09zs);
zsnum.setAjs10(ajs10zs);
zsnum.setRys01(rys01zs);
zsnum.setRys02(rys02zs);
zsnum.setRys03(rys03zs);
zsnum.setRys04(rys04zs);
zsnum.setRys05(rys05zs);
zsnum.setRys06(rys06zs);
zsnum.setRys07(rys07zs);
zsnum.setRys08(rys08zs);
zsnum.setRys09(rys09zs);
zsnum.setRys10(rys10zs);
res.add(zsnum);
rtMap.put("rows",res); rtMap.put("rows",res);
return rtMap; return rtMap;
} }
......
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