|
|
|
|
@ -4,6 +4,7 @@ import cn.hutool.core.date.DateUtil;
|
|
|
|
|
import cn.hutool.core.util.ArrayUtil; |
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import com.biutag.supervision.constants.enums.InspectCaseEnum; |
|
|
|
|
import com.biutag.supervision.constants.enums.ProblemSourcesEnum; |
|
|
|
|
import com.biutag.supervision.constants.enums.ProcessingStatusEnum; |
|
|
|
|
@ -12,10 +13,7 @@ import com.biutag.supervision.mapper.NegativeMapper;
|
|
|
|
|
import com.biutag.supervision.pojo.Result; |
|
|
|
|
import com.biutag.supervision.pojo.entity.*; |
|
|
|
|
import com.biutag.supervision.pojo.vo.*; |
|
|
|
|
import com.biutag.supervision.service.NegativeBlameService; |
|
|
|
|
import com.biutag.supervision.service.NewsService; |
|
|
|
|
import com.biutag.supervision.service.SubOneSupervisionNotifyService; |
|
|
|
|
import com.biutag.supervision.service.SuperviseReportService; |
|
|
|
|
import com.biutag.supervision.service.*; |
|
|
|
|
import com.biutag.supervision.util.CompletableUtils.CompletableFutureUtil; |
|
|
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
|
@ -55,6 +53,7 @@ public class SubOneSupervisionNotifyController {
|
|
|
|
|
private final NegativeBlameService negativeBlameService; |
|
|
|
|
private final CountyStreetDeptMapper countyStreetDeptMapper; |
|
|
|
|
private final SuperviseReportService superviseReportService; |
|
|
|
|
private final SupDepartService departService; |
|
|
|
|
// region 左边
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
@ -74,7 +73,9 @@ public class SubOneSupervisionNotifyController {
|
|
|
|
|
DayTimeSuperviseVo teamRankOverview = negativeMapper.getTeamRankOverview(departId, beginTime, endTime); |
|
|
|
|
List<RankVo> policeChangedRankList = negativeMapper.getPoliceChangedRankList(departId, beginTime, endTime); |
|
|
|
|
List<RankVo> teamChangedRankList = negativeMapper.getTeamChangedRankList(departId, beginTime, endTime); |
|
|
|
|
DayTimeSuperviseVo overview = new DayTimeSuperviseVo().addVO(policeRankOverview,teamRankOverview); |
|
|
|
|
JSONObject data = new JSONObject() |
|
|
|
|
.fluentPut("overview",overview) |
|
|
|
|
.fluentPut("fxsjRankOverview", policeRankOverview) |
|
|
|
|
.fluentPut("jsdwRankOverview", teamRankOverview) |
|
|
|
|
.fluentPut("fxsjChangedRankList", policeChangedRankList) |
|
|
|
|
@ -139,6 +140,12 @@ public class SubOneSupervisionNotifyController {
|
|
|
|
|
.between(SuperviseReport::getCrtTime,beginTime,endTime)); |
|
|
|
|
overView.setProblemQuarter(problemQuarter); |
|
|
|
|
|
|
|
|
|
LambdaQueryWrapper<SuperviseReport> queryWrapper=new LambdaQueryWrapper<>(); |
|
|
|
|
List<String> orgIds = departService.getAllNodeIds(String.valueOf(departId)); |
|
|
|
|
queryWrapper.in(SuperviseReport::getCrtDepartId, orgIds); |
|
|
|
|
|
|
|
|
|
overView.setReportNumber(superviseReportService.count(queryWrapper)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 办结率
|
|
|
|
|
// overView.setCompletedRate(overView.getProblemNumber() == 0 ? 0: NumberUtil.roundHalfEven(NumberUtil.mul(NumberUtil.div(overView.getCompletedNumber(), overView.getProblemNumber()), 100), 0).doubleValue());
|
|
|
|
|
@ -262,15 +269,17 @@ public class SubOneSupervisionNotifyController {
|
|
|
|
|
@GetMapping("/getSubOneYellowBetDrug") |
|
|
|
|
public Result<JSONObject> getYellowBetDrug(@RequestParam Integer departId, |
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { |
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime,@RequestParam Integer type) { |
|
|
|
|
// 黄赌毒总览
|
|
|
|
|
DayTimeSuperviseVo fxsjYellowBetOverview = negativeMapper.getSubOnePoliceYellowBetOverview(beginTime, endTime, departId, 1); |
|
|
|
|
DayTimeSuperviseVo jsdwYellowBetOverview = negativeMapper.getSubOneTeamYellowBetOverview(beginTime, endTime, departId, 1); |
|
|
|
|
DayTimeSuperviseVo fxsjYellowBetOverview = negativeMapper.getSubOnePoliceYellowBetOverview(beginTime, endTime, departId, type); |
|
|
|
|
DayTimeSuperviseVo jsdwYellowBetOverview = negativeMapper.getSubOneTeamYellowBetOverview(beginTime, endTime, departId, type); |
|
|
|
|
// 黄毒赌列表
|
|
|
|
|
List<OrganizeProblemRankVo> fxsjYellowBetRankList = negativeMapper.getSubOnePoliceYellowBetRankList(beginTime, endTime, departId, 1); |
|
|
|
|
List<OrganizeProblemRankVo> jsdwYellowBetRankList = negativeMapper.getSubOneTeamYellowBetRankList(beginTime, endTime, departId, 1); |
|
|
|
|
List<OrganizeProblemRankVo> fxsjYellowBetRankList = negativeMapper.getSubOnePoliceYellowBetRankList(beginTime, endTime, departId, type); |
|
|
|
|
List<OrganizeProblemRankVo> jsdwYellowBetRankList = negativeMapper.getSubOneTeamYellowBetRankList(beginTime, endTime, departId, type); |
|
|
|
|
DayTimeSuperviseVo overview = new DayTimeSuperviseVo().addVO(fxsjYellowBetOverview,jsdwYellowBetOverview); |
|
|
|
|
|
|
|
|
|
JSONObject data = new JSONObject() |
|
|
|
|
.fluentPut("overview",overview) |
|
|
|
|
.fluentPut("fxsjYellowBetOverview", fxsjYellowBetOverview) |
|
|
|
|
.fluentPut("jsdwYellowBetOverview", jsdwYellowBetOverview) |
|
|
|
|
.fluentPut("fxsjYellowBetRankList", fxsjYellowBetRankList) |
|
|
|
|
@ -279,118 +288,6 @@ public class SubOneSupervisionNotifyController {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 枪支管理数据 |
|
|
|
|
* |
|
|
|
|
* @param departId 部门id (分县市局ID) |
|
|
|
|
* @param beginTime 开始时间 |
|
|
|
|
* @param endTime 结束时间 |
|
|
|
|
* @return JSONObject |
|
|
|
|
*/ |
|
|
|
|
@Operation(summary = "枪支管理数据") |
|
|
|
|
@GetMapping("/getSubOneGunController") |
|
|
|
|
public Result<JSONObject> getSubOneGunController(@RequestParam Integer departId, |
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { |
|
|
|
|
// 枪支管理总览
|
|
|
|
|
DayTimeSuperviseVo fxsjGunControllerOverview = negativeMapper.getSubOnePoliceYellowBetOverview(beginTime, endTime, departId, 2); |
|
|
|
|
DayTimeSuperviseVo jsdwGunControllerOverview = negativeMapper.getSubOneTeamYellowBetOverview(beginTime, endTime, departId, 2); |
|
|
|
|
// 枪支管理列表
|
|
|
|
|
List<OrganizeProblemRankVo> fxsjGunControllerRankList = negativeMapper.getSubOnePoliceYellowBetRankList(beginTime, endTime, departId, 2); |
|
|
|
|
List<OrganizeProblemRankVo> jsdwGunControllerRankList = negativeMapper.getSubOneTeamYellowBetRankList(beginTime, endTime, departId, 2); |
|
|
|
|
|
|
|
|
|
JSONObject data = new JSONObject() |
|
|
|
|
.fluentPut("fxsjGunControllerOverview", fxsjGunControllerOverview) |
|
|
|
|
.fluentPut("jsdwGunControllerOverview", jsdwGunControllerOverview) |
|
|
|
|
.fluentPut("fxsjGunControllerRankList", fxsjGunControllerRankList) |
|
|
|
|
.fluentPut("jsdwGunControllerRankList", jsdwGunControllerRankList); |
|
|
|
|
return Result.success(data); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 涉企问题数据 |
|
|
|
|
* |
|
|
|
|
* @param departId 部门id (分县市局ID) |
|
|
|
|
* @param beginTime 开始时间 |
|
|
|
|
* @param endTime 结束时间 |
|
|
|
|
* @return JSONObject |
|
|
|
|
*/ |
|
|
|
|
@Operation(summary = "涉企问题数据") |
|
|
|
|
@GetMapping("/getSubOneCompanyProblem") |
|
|
|
|
public Result<JSONObject> getSubOneCompanyProblem(@RequestParam Integer departId, |
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { |
|
|
|
|
// 涉企问题总览
|
|
|
|
|
DayTimeSuperviseVo fxsjCompanyProblemOverview = negativeMapper.getSubOnePoliceYellowBetOverview(beginTime, endTime, departId, 3); |
|
|
|
|
DayTimeSuperviseVo jsdwCompanyProblemOverview = negativeMapper.getSubOneTeamYellowBetOverview(beginTime, endTime, departId, 3); |
|
|
|
|
// 涉企问题列表
|
|
|
|
|
List<OrganizeProblemRankVo> fxsjCompanyProblemRankList = negativeMapper.getSubOnePoliceYellowBetRankList(beginTime, endTime, departId, 3); |
|
|
|
|
List<OrganizeProblemRankVo> jsdwCompanyProblemRankList = negativeMapper.getSubOneTeamYellowBetRankList(beginTime, endTime, departId, 3); |
|
|
|
|
|
|
|
|
|
JSONObject data = new JSONObject() |
|
|
|
|
.fluentPut("fxsjCompanyProblemOverview", fxsjCompanyProblemOverview) |
|
|
|
|
.fluentPut("jsdwCompanyProblemOverview", jsdwCompanyProblemOverview) |
|
|
|
|
.fluentPut("fxsjCompanyProblemRankList", fxsjCompanyProblemRankList) |
|
|
|
|
.fluentPut("jsdwCompanyProblemRankList", jsdwCompanyProblemRankList); |
|
|
|
|
return Result.success(data); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 执法办案数据 |
|
|
|
|
* |
|
|
|
|
* @param departId 部门id (分县市局ID) |
|
|
|
|
* @param beginTime 开始时间 |
|
|
|
|
* @param endTime 结束时间 |
|
|
|
|
* @return JSONObject |
|
|
|
|
*/ |
|
|
|
|
@Operation(summary = "执法办案数据") |
|
|
|
|
@GetMapping("/getSubOneHandleCase") |
|
|
|
|
public Result<JSONObject> getSubOneHandleCase(@RequestParam Integer departId, |
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { |
|
|
|
|
// 执法办案总览
|
|
|
|
|
DayTimeSuperviseVo fxsjHandleCaseOverview = negativeMapper.getSubOnePoliceYellowBetOverview(beginTime, endTime, departId, 4); |
|
|
|
|
DayTimeSuperviseVo jsdwHandleCaseOverview = negativeMapper.getSubOneTeamYellowBetOverview(beginTime, endTime, departId, 4); |
|
|
|
|
// 执法办案列表
|
|
|
|
|
List<OrganizeProblemRankVo> fxsjHandleCaseRankList = negativeMapper.getSubOnePoliceYellowBetRankList(beginTime, endTime, departId, 4); |
|
|
|
|
List<OrganizeProblemRankVo> jsdwHandleCaseRankList = negativeMapper.getSubOneTeamYellowBetRankList(beginTime, endTime, departId, 4); |
|
|
|
|
|
|
|
|
|
JSONObject data = new JSONObject() |
|
|
|
|
.fluentPut("fxsjHandleCaseOverview", fxsjHandleCaseOverview) |
|
|
|
|
.fluentPut("jsdwHandleCaseOverview", jsdwHandleCaseOverview) |
|
|
|
|
.fluentPut("fxsjHandleCaseRankList", fxsjHandleCaseRankList) |
|
|
|
|
.fluentPut("jsdwHandleCaseRankList", jsdwHandleCaseRankList); |
|
|
|
|
return Result.success(data); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 工作日测酒数据 |
|
|
|
|
* |
|
|
|
|
* @param departId 部门id (分县市局ID) |
|
|
|
|
* @param beginTime 开始时间 |
|
|
|
|
* @param endTime 结束时间 |
|
|
|
|
* @return JSONObject |
|
|
|
|
*/ |
|
|
|
|
@Operation(summary = "工作日测酒数据") |
|
|
|
|
@GetMapping("/getSubOneCheckBeer") |
|
|
|
|
public Result<JSONObject> getSubOneCheckBeer(@RequestParam Integer departId, |
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { |
|
|
|
|
// 工作日测酒总览
|
|
|
|
|
DayTimeSuperviseVo fxsjCheckBeerOverview = negativeMapper.getSubOnePoliceYellowBetOverview(beginTime, endTime, departId, 5); |
|
|
|
|
DayTimeSuperviseVo jsdwCheckBeerOverview = negativeMapper.getSubOneTeamYellowBetOverview(beginTime, endTime, departId, 5); |
|
|
|
|
// 工作日测酒列表
|
|
|
|
|
List<OrganizeProblemRankVo> fxsjCheckBeerRankList = negativeMapper.getSubOnePoliceYellowBetRankList(beginTime, endTime, departId, 5); |
|
|
|
|
List<OrganizeProblemRankVo> jsdwCheckBeerRankList = negativeMapper.getSubOneTeamYellowBetRankList(beginTime, endTime, departId, 5); |
|
|
|
|
|
|
|
|
|
JSONObject data = new JSONObject() |
|
|
|
|
.fluentPut("fxsjCheckBeerOverview", fxsjCheckBeerOverview) |
|
|
|
|
.fluentPut("jsdwCheckBeerOverview", jsdwCheckBeerOverview) |
|
|
|
|
.fluentPut("fxsjCheckBeerRankList", fxsjCheckBeerRankList) |
|
|
|
|
.fluentPut("jsdwCheckBeerRankList", jsdwCheckBeerRankList); |
|
|
|
|
return Result.success(data); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 督察工作动态 |
|
|
|
|
|