bug修改。

This commit is contained in:
Renpc-kilig 2021-01-21 10:37:57 +08:00
parent 9b87b24503
commit 51dd58e077
7 changed files with 76 additions and 12 deletions

View File

@ -216,6 +216,8 @@ public class CaseScoreController extends AbstractController {
caseSuperviseVO.setAreaId(caseScoreDTO.getAreaId()); caseSuperviseVO.setAreaId(caseScoreDTO.getAreaId());
caseSuperviseVO.setAreaName(caseScoreDTO.getAreaName()); caseSuperviseVO.setAreaName(caseScoreDTO.getAreaName());
caseSuperviseVO.setSuperviseCount("0"); caseSuperviseVO.setSuperviseCount("0");
caseSuperviseVO.setInspectCount(String.valueOf(caseScoreDTO.getInspectTimeout().size()));
caseSuperviseVO.setCloseCount(String.valueOf(caseScoreDTO.getCloseTimeout().size()));
caseSuperviseService.saveCaseSupervise(caseSuperviseVO); caseSuperviseService.saveCaseSupervise(caseSuperviseVO);
} }

View File

@ -168,8 +168,8 @@ public class CaseSuperviseController extends AbstractController {
@ApiOperation(value = "导出excel(案件督察)", notes = "导出excel(案件督察)接口") @ApiOperation(value = "导出excel(案件督察)", notes = "导出excel(案件督察)接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("excelpersonscore") @GetMapping("excelcasescore")
public void excelPersonScore(HttpServletResponse response) throws Exception { public void excelCaseScore(HttpServletResponse response) throws Exception {
Map<String, Object> params = requestParams(); Map<String, Object> params = requestParams();
String excelName = params.get("year") + ""+ params.get("quarter") +"季度街镇村案件督察分数统计表"; String excelName = params.get("year") + ""+ params.get("quarter") +"季度街镇村案件督察分数统计表";

View File

@ -159,8 +159,8 @@
t1.area_id, t1.area_id,
t1.area_name, t1.area_name,
SUM(t1.supervise_count) supervise_count, SUM(t1.supervise_count) supervise_count,
SUM(t1.inspect_count) inspect_count, MAX(t1.inspect_count) inspect_count,
t1.close_count, MAX(t1.close_count) close_count,
t1.case_supervise_id t1.case_supervise_id
FROM FROM
gen_case_supervise t1 gen_case_supervise t1

View File

@ -103,9 +103,15 @@
var year; var year;
if(!value) { if(!value) {
date = new Date(); date = new Date();
yearDate = date.getFullYear();
}else { }else {
year = value + '-12-31'; if(value != new Date().getFullYear()) {
date = new Date(year); year = value + '-12-31';
date = new Date(year);
}else {
date = new Date();
}
yearDate = value;
} }
var month = date.getMonth() + 1; var month = date.getMonth() + 1;
if(month >= 1 && month <=3) { if(month >= 1 && month <=3) {

View File

@ -63,9 +63,15 @@
var year; var year;
if(!value) { if(!value) {
date = new Date(); date = new Date();
yearDate = date.getFullYear();
}else { }else {
year = value + '-12-31'; if(value != new Date().getFullYear()) {
date = new Date(year); year = value + '-12-31';
date = new Date(year);
}else {
date = new Date();
}
yearDate = value;
} }
var month = date.getMonth() + 1; var month = date.getMonth() + 1;
if(month >= 1 && month <=3) { if(month >= 1 && month <=3) {
@ -94,6 +100,44 @@
quarterFun(); quarterFun();
$(document).on('click', '#excel', function() {
var year = $('#year').val();
var quarter = $('#quarter').val();
excel(year,quarter);
});
function excel(v1,v2){
if(v1 === ''){
layer.msg('请选择导出数据年份')
}
if(v2 === ''){
layer.msg('请选择导出数据季度')
}
var v2Str = "";
if(v2 === '1'){
v2Str = '第一季度'
}
if(v2 === '2'){
v2Str = '第二季度'
}
if(v2 === '3'){
v2Str = '第三季度'
}
if(v2 === '4'){
v2Str = '第四季度'
}
top.dialog.msg('确定要导出'+v1+'年'+v2Str+'的数据吗?', {
time: 0,
btn: [top.dataMessage.button.yes, top.dataMessage.button.no],
shade: 0.3,
yes: function (index) {
top.dialog.close(index);
window.open(top.restAjax.path('api/casesupervise/excelcasescore?year={year}&quarter={quarter}', [v1,v2]));
}
});
}
// 初始化表格 // 初始化表格
function initTable() { function initTable() {
table.render({ table.render({

View File

@ -101,9 +101,15 @@
var year; var year;
if(!value) { if(!value) {
date = new Date(); date = new Date();
yearDate = date.getFullYear();
}else { }else {
year = value + '-12-31'; if(value != new Date().getFullYear()) {
date = new Date(year); year = value + '-12-31';
date = new Date(year);
}else {
date = new Date();
}
yearDate = value;
} }
var month = date.getMonth() + 1; var month = date.getMonth() + 1;
if(month >= 1 && month <=3) { if(month >= 1 && month <=3) {

View File

@ -103,9 +103,15 @@
var year; var year;
if(!value) { if(!value) {
date = new Date(); date = new Date();
yearDate = date.getFullYear();
}else { }else {
year = value + '-12-31'; if(value != new Date().getFullYear()) {
date = new Date(year); year = value + '-12-31';
date = new Date(year);
}else {
date = new Date();
}
yearDate = value;
} }
var month = date.getMonth() + 1; var month = date.getMonth() + 1;
if(month >= 1 && month <=3) { if(month >= 1 && month <=3) {