|
|
|
|
@ -7,8 +7,7 @@ import com.biutag.supervision.constants.enums.RepeatEnum;
|
|
|
|
|
import com.biutag.supervision.mapper.DataPetitionComplaintMapper; |
|
|
|
|
import com.biutag.supervision.pojo.Result; |
|
|
|
|
import com.biutag.supervision.pojo.dto.CaseVerifDepart; |
|
|
|
|
import com.biutag.supervision.pojo.vo.RecentMailTrendByDayVo; |
|
|
|
|
import com.biutag.supervision.pojo.vo.RecentMailTrendByMonthVo; |
|
|
|
|
import com.biutag.supervision.pojo.vo.*; |
|
|
|
|
import com.biutag.supervision.service.DataMailService; |
|
|
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
|
@ -43,15 +42,99 @@ public class DataMailViewController {
|
|
|
|
|
private final DataMailService dataMailService; |
|
|
|
|
private final DataPetitionComplaintMapper dataPetitionComplaintMapper; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 信访数据大屏统计 |
|
|
|
|
* @param beginTime |
|
|
|
|
* @param endTime |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
// region 左边
|
|
|
|
|
// 初访重访情况
|
|
|
|
|
@Operation(summary = "初访重访情况") |
|
|
|
|
@GetMapping("/getFirstAndRepeatMail") |
|
|
|
|
public Result<JSONObject> getFirstAndRepeatMail(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { |
|
|
|
|
// 初访重访情况总览
|
|
|
|
|
MailFirstAndRepeatOverviewVo firstAndRepeatOverview = dataMailService.getFirstAndRepeatOverview(beginTime, endTime); |
|
|
|
|
// 初访重访分类数据排行
|
|
|
|
|
List<OrganizeProblemRankVo> fxsjFirstRankList = dataMailService.getMailRank(beginTime, endTime, 3, RepeatEnum.FIRST_MAIL.getId()); |
|
|
|
|
List<OrganizeProblemRankVo> fxsjRepeatRankList = dataMailService.getMailRank(beginTime, endTime, 3, RepeatEnum.REPEAT_MAIL.getId()); |
|
|
|
|
List<OrganizeProblemRankVo> fxsjLeaderViewRankList = dataMailService.getMailLeaderRank(beginTime, endTime, 3); |
|
|
|
|
|
|
|
|
|
List<OrganizeProblemRankVo> bwzdFirstRankList = dataMailService.getMailRank(beginTime, endTime, 4, RepeatEnum.FIRST_MAIL.getId()); |
|
|
|
|
List<OrganizeProblemRankVo> bwzdRepeatRankList = dataMailService.getMailRank(beginTime, endTime, 4, RepeatEnum.REPEAT_MAIL.getId()); |
|
|
|
|
List<OrganizeProblemRankVo> bwzdLeaderViewRankList = dataMailService.getMailLeaderRank(beginTime, endTime, 4); |
|
|
|
|
JSONObject data = new JSONObject() |
|
|
|
|
.fluentPut("firstAndRepeatOverview", firstAndRepeatOverview) |
|
|
|
|
.fluentPut("fxsjFirstRankList", fxsjFirstRankList) |
|
|
|
|
.fluentPut("fxsjRepeatRankList", fxsjRepeatRankList) |
|
|
|
|
.fluentPut("fxsjLeaderViewRankList", fxsjLeaderViewRankList) |
|
|
|
|
.fluentPut("bwzdFirstRankList", bwzdFirstRankList) |
|
|
|
|
.fluentPut("bwzdRepeatRankList", bwzdRepeatRankList) |
|
|
|
|
.fluentPut("bwzdLeaderViewRankList", bwzdLeaderViewRankList); |
|
|
|
|
return Result.success(data); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// endregion
|
|
|
|
|
// region 中间
|
|
|
|
|
// 信访数据中央总览统计
|
|
|
|
|
@Operation(summary = "信访数据大屏中央数据统计") |
|
|
|
|
@GetMapping("/getAllMailCount") |
|
|
|
|
public Result<JSONObject> getAllMailCount(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { |
|
|
|
|
// 信访数据总数概览
|
|
|
|
|
MailOverviewVo overview = dataMailService.getAllMailCount(beginTime, endTime); |
|
|
|
|
JSONObject data = new JSONObject().fluentPut("overview", overview); |
|
|
|
|
return Result.success(data); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "信访数据大屏信访趋势统计") |
|
|
|
|
@GetMapping("/getMailTrend") |
|
|
|
|
public Result<JSONObject> getMailTrend(@RequestParam Integer year) { |
|
|
|
|
List<EchartsVo> countryList = dataMailService.getMailTrend(year, 21); // 国家
|
|
|
|
|
List<EchartsVo> policeList = dataMailService.getMailTrend(year, 22); // 公安部信访
|
|
|
|
|
List<EchartsVo> manageList = dataMailService.getMailTrend(year, 23); // 局长信箱
|
|
|
|
|
List<EchartsVo> numberList = dataMailService.getMailTrend(year, 24); // 12337信访
|
|
|
|
|
JSONObject data = new JSONObject().fluentPut("countryList", countryList) |
|
|
|
|
.fluentPut("policeList", policeList) |
|
|
|
|
.fluentPut("manageList", manageList) |
|
|
|
|
.fluentPut("numberList", numberList); |
|
|
|
|
return Result.success(data); |
|
|
|
|
} |
|
|
|
|
// endregion
|
|
|
|
|
|
|
|
|
|
// region 右边
|
|
|
|
|
// 缠访集访情况
|
|
|
|
|
@Operation(summary = "缠访集访情况") |
|
|
|
|
@GetMapping("/getEntanglementAndMassMail") |
|
|
|
|
public Result<JSONObject> getEntanglementAndMassMail(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { |
|
|
|
|
// 缠访集访情况
|
|
|
|
|
MailEntanglementMassOverviewVo mailEntanglementMassOverview = dataMailService.getEntanglementAndMassOverview(beginTime, endTime); |
|
|
|
|
|
|
|
|
|
List<OrganizeProblemRankVo> fxsjLeaderReviewList = dataMailService.getMailLeaderRank(beginTime, endTime, 3); |
|
|
|
|
List<OrganizeProblemRankVo> fxsjEntanglementList = dataMailService.getEntanglementMailRank(beginTime, endTime, 3); |
|
|
|
|
List<OrganizeProblemRankVo> fxsjMassList = dataMailService.getMassMailRank(beginTime, endTime, 3); |
|
|
|
|
|
|
|
|
|
List<OrganizeProblemRankVo> bwzdLeaderReviewList = dataMailService.getMailLeaderRank(beginTime, endTime, 4); |
|
|
|
|
List<OrganizeProblemRankVo> bwzdEntanglementList = dataMailService.getEntanglementMailRank(beginTime, endTime, 4); |
|
|
|
|
List<OrganizeProblemRankVo> bwzdMassList = dataMailService.getMassMailRank(beginTime, endTime, 4); |
|
|
|
|
|
|
|
|
|
JSONObject data = new JSONObject() |
|
|
|
|
.fluentPut("mailEntanglementMassOverview", mailEntanglementMassOverview) |
|
|
|
|
.fluentPut("fxsjLeaderReviewList", fxsjLeaderReviewList) |
|
|
|
|
.fluentPut("fxsjEntanglementList", fxsjEntanglementList) |
|
|
|
|
.fluentPut("fxsjMassList", fxsjMassList) |
|
|
|
|
.fluentPut("bwzdLeaderReviewList", bwzdLeaderReviewList) |
|
|
|
|
.fluentPut("bwzdEntanglementList", bwzdEntanglementList) |
|
|
|
|
.fluentPut("bwzdMassList", bwzdMassList); |
|
|
|
|
return Result.success(data); |
|
|
|
|
} |
|
|
|
|
// endregion 右边
|
|
|
|
|
|
|
|
|
|
// region 旧接口
|
|
|
|
|
|
|
|
|
|
// 信访数据大屏统计
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "信访数据大屏中央数据统计") |
|
|
|
|
@GetMapping |
|
|
|
|
public Result<JSONObject> mailVisits(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, @RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { |
|
|
|
|
public Result<JSONObject> mailVisits(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { |
|
|
|
|
// 信访数据总数概览
|
|
|
|
|
JSONObject overview = dataMailService.allMailCount(beginTime, endTime); |
|
|
|
|
// 分县市局信初重访领导访排名
|
|
|
|
|
@ -82,6 +165,7 @@ public class DataMailViewController {
|
|
|
|
|
return Result.success(data); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 信访数据大屏信访趋势统计(按日) |
|
|
|
|
*/ |
|
|
|
|
@ -186,6 +270,6 @@ public class DataMailViewController {
|
|
|
|
|
jsonObject.fluentPut("totalList", totalList); |
|
|
|
|
return Result.success(jsonObject); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// endregion
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|