bug修改。
This commit is contained in:
parent
9b87b24503
commit
51dd58e077
@ -216,6 +216,8 @@ public class CaseScoreController extends AbstractController {
|
||||
caseSuperviseVO.setAreaId(caseScoreDTO.getAreaId());
|
||||
caseSuperviseVO.setAreaName(caseScoreDTO.getAreaName());
|
||||
caseSuperviseVO.setSuperviseCount("0");
|
||||
caseSuperviseVO.setInspectCount(String.valueOf(caseScoreDTO.getInspectTimeout().size()));
|
||||
caseSuperviseVO.setCloseCount(String.valueOf(caseScoreDTO.getCloseTimeout().size()));
|
||||
caseSuperviseService.saveCaseSupervise(caseSuperviseVO);
|
||||
}
|
||||
|
||||
|
@ -168,8 +168,8 @@ public class CaseSuperviseController extends AbstractController {
|
||||
|
||||
@ApiOperation(value = "导出excel(案件督察)", notes = "导出excel(案件督察)接口")
|
||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||
@GetMapping("excelpersonscore")
|
||||
public void excelPersonScore(HttpServletResponse response) throws Exception {
|
||||
@GetMapping("excelcasescore")
|
||||
public void excelCaseScore(HttpServletResponse response) throws Exception {
|
||||
Map<String, Object> params = requestParams();
|
||||
|
||||
String excelName = params.get("year") + "年"+ params.get("quarter") +"季度街镇村案件督察分数统计表";
|
||||
|
@ -159,8 +159,8 @@
|
||||
t1.area_id,
|
||||
t1.area_name,
|
||||
SUM(t1.supervise_count) supervise_count,
|
||||
SUM(t1.inspect_count) inspect_count,
|
||||
t1.close_count,
|
||||
MAX(t1.inspect_count) inspect_count,
|
||||
MAX(t1.close_count) close_count,
|
||||
t1.case_supervise_id
|
||||
FROM
|
||||
gen_case_supervise t1
|
||||
|
@ -103,9 +103,15 @@
|
||||
var year;
|
||||
if(!value) {
|
||||
date = new Date();
|
||||
yearDate = date.getFullYear();
|
||||
}else {
|
||||
if(value != new Date().getFullYear()) {
|
||||
year = value + '-12-31';
|
||||
date = new Date(year);
|
||||
}else {
|
||||
date = new Date();
|
||||
}
|
||||
yearDate = value;
|
||||
}
|
||||
var month = date.getMonth() + 1;
|
||||
if(month >= 1 && month <=3) {
|
||||
|
@ -63,9 +63,15 @@
|
||||
var year;
|
||||
if(!value) {
|
||||
date = new Date();
|
||||
yearDate = date.getFullYear();
|
||||
}else {
|
||||
if(value != new Date().getFullYear()) {
|
||||
year = value + '-12-31';
|
||||
date = new Date(year);
|
||||
}else {
|
||||
date = new Date();
|
||||
}
|
||||
yearDate = value;
|
||||
}
|
||||
var month = date.getMonth() + 1;
|
||||
if(month >= 1 && month <=3) {
|
||||
@ -94,6 +100,44 @@
|
||||
|
||||
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() {
|
||||
table.render({
|
||||
|
@ -101,9 +101,15 @@
|
||||
var year;
|
||||
if(!value) {
|
||||
date = new Date();
|
||||
yearDate = date.getFullYear();
|
||||
}else {
|
||||
if(value != new Date().getFullYear()) {
|
||||
year = value + '-12-31';
|
||||
date = new Date(year);
|
||||
}else {
|
||||
date = new Date();
|
||||
}
|
||||
yearDate = value;
|
||||
}
|
||||
var month = date.getMonth() + 1;
|
||||
if(month >= 1 && month <=3) {
|
||||
|
@ -103,9 +103,15 @@
|
||||
var year;
|
||||
if(!value) {
|
||||
date = new Date();
|
||||
yearDate = date.getFullYear();
|
||||
}else {
|
||||
if(value != new Date().getFullYear()) {
|
||||
year = value + '-12-31';
|
||||
date = new Date(year);
|
||||
}else {
|
||||
date = new Date();
|
||||
}
|
||||
yearDate = value;
|
||||
}
|
||||
var month = date.getMonth() + 1;
|
||||
if(month >= 1 && month <=3) {
|
||||
|
Loading…
Reference in New Issue
Block a user