|
|
|
@ -9,28 +9,24 @@ import com.biutag.supervision.mapper.CountyStreetDeptMapper; |
|
|
|
import com.biutag.supervision.mapper.RpcApplyMapper; |
|
|
|
import com.biutag.supervision.mapper.RpcApplyMapper; |
|
|
|
import com.biutag.supervision.mapper.RpcInfringerResultMapper; |
|
|
|
import com.biutag.supervision.mapper.RpcInfringerResultMapper; |
|
|
|
import com.biutag.supervision.pojo.Result; |
|
|
|
import com.biutag.supervision.pojo.Result; |
|
|
|
import com.biutag.supervision.pojo.dto.common.BarItem; |
|
|
|
|
|
|
|
import com.biutag.supervision.pojo.dto.common.PieItem; |
|
|
|
|
|
|
|
import com.biutag.supervision.pojo.entity.CountyStreetDept; |
|
|
|
import com.biutag.supervision.pojo.entity.CountyStreetDept; |
|
|
|
import com.biutag.supervision.pojo.entity.RpcApply; |
|
|
|
import com.biutag.supervision.pojo.entity.RpcApply; |
|
|
|
import com.biutag.supervision.pojo.entity.SupDictData; |
|
|
|
import com.biutag.supervision.pojo.request.subdatav.SubDataVRequest; |
|
|
|
import com.biutag.supervision.pojo.vo.ComfortCountVO; |
|
|
|
|
|
|
|
import com.biutag.supervision.pojo.vo.ComfortMapIconVo; |
|
|
|
import com.biutag.supervision.pojo.vo.ComfortMapIconVo; |
|
|
|
import com.biutag.supervision.pojo.vo.EchartsVo; |
|
|
|
|
|
|
|
import com.biutag.supervision.service.DataRightsComfortService; |
|
|
|
|
|
|
|
import com.biutag.supervision.service.RpcApplyService; |
|
|
|
import com.biutag.supervision.service.RpcApplyService; |
|
|
|
import com.biutag.supervision.service.SupDictDataService; |
|
|
|
import com.biutag.supervision.service.datav.DatavService; |
|
|
|
import com.biutag.supervision.util.CompletableUtils.CompletableFutureUtil; |
|
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.format.annotation.DateTimeFormat; |
|
|
|
import org.springframework.format.annotation.DateTimeFormat; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.*; |
|
|
|
import java.math.BigDecimal; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
import java.util.Date; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.Set; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -46,102 +42,60 @@ import java.util.stream.Collectors; |
|
|
|
public class SubOneRightsController { |
|
|
|
public class SubOneRightsController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final DataRightsComfortService dataRightsComfortService; |
|
|
|
|
|
|
|
private final RpcApplyMapper rpcApplyMapper; |
|
|
|
private final RpcApplyMapper rpcApplyMapper; |
|
|
|
private final SupDictDataService supDictDataService; |
|
|
|
|
|
|
|
private final CountyStreetDeptMapper countyStreetDeptMapper; |
|
|
|
private final CountyStreetDeptMapper countyStreetDeptMapper; |
|
|
|
private final RpcApplyService rpcApplyService; |
|
|
|
private final RpcApplyService rpcApplyService; |
|
|
|
private final RpcInfringerResultMapper rpcInfringerResultMapper; |
|
|
|
private final RpcInfringerResultMapper rpcInfringerResultMapper; |
|
|
|
// 大屏中央总览数据
|
|
|
|
private final DatavService datavService; |
|
|
|
@GetMapping("/getSubOneALlComfortCount") |
|
|
|
|
|
|
|
public Result<JSONObject> getALlComfortCount(@RequestParam Integer departId, |
|
|
|
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { |
|
|
|
|
|
|
|
endTime = DateUtil.endOfDay(endTime); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "维权案件情况") |
|
|
|
|
|
|
|
@PostMapping("/getSubRightsBarList") |
|
|
|
|
|
|
|
public Result<JSONObject> getSubRightsBarList(@RequestBody SubDataVRequest request) { |
|
|
|
|
|
|
|
return datavService.getSubRightsBarList(request); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "抚慰金额情况") |
|
|
|
|
|
|
|
@PostMapping("/getSubComfortMoneyBarList") |
|
|
|
|
|
|
|
public Result<JSONObject> getSubComfortMoneyBarList(@RequestBody SubDataVRequest request) { |
|
|
|
|
|
|
|
return datavService.getSubComfortMoneyBarList(request); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
List<RpcApply> list= rpcApplyMapper.selectList(new LambdaQueryWrapper<RpcApply>() |
|
|
|
@Operation(summary = "案件类别占比") |
|
|
|
.between(RpcApply::getCrtTime, beginTime, endTime) |
|
|
|
@PostMapping("/getSubCaseType") |
|
|
|
.eq(RpcApply::getSecondDepartId,departId) |
|
|
|
public Result<JSONObject> getSubCaseType(@RequestBody SubDataVRequest request) { |
|
|
|
.eq(RpcApply::getType, RpcApplyTypeEnum.RIGHTS_PROTECTION.getValue())); |
|
|
|
return datavService.getSubCaseType(request); |
|
|
|
Long comfortTotal = rpcApplyMapper.countSubOneComfortPersonNumber(beginTime, endTime, departId); |
|
|
|
|
|
|
|
// Integer comfortTotal = dataRightsComfortService.countComfortPersonNumber(beginTime, endTime); // 抚慰人数
|
|
|
|
|
|
|
|
Double comfortMoney = rpcApplyMapper.countSubOneComfortMoney(beginTime, endTime, departId); |
|
|
|
|
|
|
|
// Double comfortMoney = dataRightsComfortService.countComfortMoney(beginTime, endTime); // 抚慰金额
|
|
|
|
|
|
|
|
Integer hitTotal = dataRightsComfortService.countSubOneHitPersonNumber(beginTime, endTime, departId); // 打击处理人数
|
|
|
|
|
|
|
|
ComfortCountVO comfortOverview = new ComfortCountVO(); |
|
|
|
|
|
|
|
//抚慰人数
|
|
|
|
|
|
|
|
comfortOverview.setComfortTotal(comfortTotal); |
|
|
|
|
|
|
|
//打击处理人数
|
|
|
|
|
|
|
|
comfortOverview.setHitTotal(hitTotal); |
|
|
|
|
|
|
|
//抚慰人数
|
|
|
|
|
|
|
|
comfortOverview.setComfortMoney(comfortMoney); |
|
|
|
|
|
|
|
//维权案件总数
|
|
|
|
|
|
|
|
comfortOverview.setComfortCaseTotal(list.stream().map(RpcApply::getCaseNumber).collect(Collectors.toSet()).size()); |
|
|
|
|
|
|
|
//受侵害人数
|
|
|
|
|
|
|
|
comfortOverview.setHurtTotal( rpcApplyMapper.selectVictimNumberByOrg(beginTime,endTime, String.valueOf(departId))); |
|
|
|
|
|
|
|
// 维权案件情况 - 派出所
|
|
|
|
|
|
|
|
List<BarItem> pcsList = rpcApplyMapper.selectSubPcsProtectRightsBarList(beginTime, endTime, departId,10); |
|
|
|
|
|
|
|
// 维权案件情况 - 大队
|
|
|
|
|
|
|
|
List<BarItem> dbList = rpcApplyMapper.selectSubDdProtectRightsBarList(beginTime, endTime, departId,10); |
|
|
|
|
|
|
|
//抚慰金额-派出所
|
|
|
|
|
|
|
|
List<BarItem> fxsjComfortMoneyRank = rpcApplyMapper.selectSubProtectRightsBarList(beginTime, endTime, departId,10); |
|
|
|
|
|
|
|
//抚慰金额-大队
|
|
|
|
|
|
|
|
List<BarItem> jsdwComfortMoneyRank=rpcApplyMapper.selectSubComfortMoneyBarList(beginTime, endTime, departId,10); |
|
|
|
|
|
|
|
JSONObject data = new JSONObject() |
|
|
|
|
|
|
|
.fluentPut("comfortOverview", comfortOverview) |
|
|
|
|
|
|
|
.fluentPut("fxsjRightsRankList",pcsList) |
|
|
|
|
|
|
|
.fluentPut("jsdwRightsRankList",dbList) |
|
|
|
|
|
|
|
.fluentPut("fxsjComfortMoneyRank",fxsjComfortMoneyRank) |
|
|
|
|
|
|
|
.fluentPut("jsdwComfortMoneyRank",jsdwComfortMoneyRank); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return Result.success(data); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "大屏中央总览数据") |
|
|
|
|
|
|
|
@PostMapping("/getSubOneALlComfortCount") |
|
|
|
|
|
|
|
public Result<JSONObject> getSubOneALlComfortCount(@RequestBody SubDataVRequest request) { |
|
|
|
|
|
|
|
return datavService.getSubOneALlComfortCount(request); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// region 右边
|
|
|
|
@Operation(summary = "打处情况") |
|
|
|
// 民辅警受伤人数情况和受伤类别
|
|
|
|
@PostMapping("/getSubHitState") |
|
|
|
@GetMapping("/getSubOnePoliceHurtSituationAndHurtType") |
|
|
|
public Result<JSONObject> getSubHitState(@RequestBody SubDataVRequest request) { |
|
|
|
public Result<JSONObject> getSubOnePoliceHurtSituationAndHurtType(@RequestParam Integer departId, |
|
|
|
return datavService.getSubHitState(request); |
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { |
|
|
|
|
|
|
|
endTime =DateUtil.endOfDay(endTime); |
|
|
|
|
|
|
|
List<EchartsVo> policeHurtSituationList = rpcApplyMapper.getSubOnePoliceHurtSituation(beginTime, endTime,departId); // 人数情况
|
|
|
|
|
|
|
|
List<EchartsVo> policeHurtTypeList = rpcApplyMapper.getSubOnePoliceHurtType(beginTime, endTime,departId); // 受伤类别
|
|
|
|
|
|
|
|
JSONObject data = new JSONObject() |
|
|
|
|
|
|
|
.fluentPut("policeHurtSituationList", policeHurtSituationList) |
|
|
|
|
|
|
|
.fluentPut("policeHurtTypeList", policeHurtTypeList); |
|
|
|
|
|
|
|
return Result.success(data); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 发案情况占比
|
|
|
|
@Operation(summary = "抚慰情况") |
|
|
|
@GetMapping("/getSubOneCaseAriseSituationRate") |
|
|
|
@PostMapping("/getSubComfortState") |
|
|
|
public Result<JSONObject> getSubOneCaseAriseSituationRate(@RequestParam Integer departId, |
|
|
|
public Result<JSONObject> getSubComfortState(@RequestBody SubDataVRequest request) { |
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
return datavService.getSubComfortState(request); |
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { |
|
|
|
} |
|
|
|
endTime =DateUtil.endOfDay(endTime); |
|
|
|
|
|
|
|
// 发案环节
|
|
|
|
|
|
|
|
List<EchartsVo> incidentLinkList = rpcApplyMapper.getSubOneIncidentLink(beginTime, endTime,departId); |
|
|
|
|
|
|
|
// 发案警种
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<EchartsVo> incidentPoliceList = rpcApplyMapper.getSubOneIncidentPolice(beginTime, endTime,departId); |
|
|
|
|
|
|
|
List<SupDictData> supDictDataList = supDictDataService.list(new LambdaQueryWrapper<SupDictData>().eq(SupDictData::getDictType,"personType")); |
|
|
|
|
|
|
|
incidentPoliceList.forEach(s->{ |
|
|
|
|
|
|
|
Optional<SupDictData> supDictData = supDictDataList.stream().filter(v->v.getDictValue().equals(s.getName())).findFirst(); |
|
|
|
|
|
|
|
supDictData.ifPresent(dictData -> s.setName(dictData.getDictLabel())); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "民辅警受伤情况") |
|
|
|
|
|
|
|
@PostMapping("/getSubPoliceHurtSituationAndHurtType") |
|
|
|
|
|
|
|
public Result<JSONObject> getSubPoliceHurtSituationAndHurtType(@RequestBody SubDataVRequest request) { |
|
|
|
|
|
|
|
return datavService.getSubPoliceHurtSituationAndHurtType(request); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 发案单位
|
|
|
|
|
|
|
|
List<EchartsVo> incidentOrgList = rpcApplyMapper.getSubOneIncidentOrg(beginTime, endTime,departId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JSONObject data = new JSONObject() |
|
|
|
@Operation(summary = "发案情况占比") |
|
|
|
.fluentPut("incidentLinkList", incidentLinkList) |
|
|
|
@PostMapping("/getSubOneCaseAriseSituationRate") |
|
|
|
.fluentPut("incidentPoliceTypeList", incidentPoliceList) |
|
|
|
public Result<JSONObject> getSubOneCaseAriseSituationRate(@RequestBody SubDataVRequest request) { |
|
|
|
.fluentPut("incidentOrgList", incidentOrgList); |
|
|
|
return datavService.getSubOneCaseAriseSituationRate(request); |
|
|
|
return Result.success(data); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// endregion
|
|
|
|
// endregion
|
|
|
|
@ -161,46 +115,29 @@ public class SubOneRightsController { |
|
|
|
res.add(iconVo); |
|
|
|
res.add(iconVo); |
|
|
|
} |
|
|
|
} |
|
|
|
for (ComfortMapIconVo re : res) { |
|
|
|
for (ComfortMapIconVo re : res) { |
|
|
|
String deptId = re.getDepartId(); |
|
|
|
String subDepart = re.getDepartId(); |
|
|
|
|
|
|
|
Integer rightsNumber = rpcApplyMapper.selectMapRightsNumber(beginTime, finalEndTime, subDepart); |
|
|
|
List<RpcApply> list = rpcApplyService.list(new LambdaQueryWrapper<RpcApply>() |
|
|
|
Integer victimNumber = rpcApplyMapper.selectMapVictimNumber(beginTime, finalEndTime, subDepart); |
|
|
|
.between(RpcApply::getCrtTime, beginTime, finalEndTime) |
|
|
|
Long comfortPersonNumber = rpcApplyMapper.selectMapComfortPersonNumber(beginTime, finalEndTime, subDepart); |
|
|
|
.eq(RpcApply::getDepartId,deptId) |
|
|
|
List<String> tortNames = rpcApplyMapper.selectMaptHitPersonNumber(beginTime, finalEndTime, subDepart); |
|
|
|
.eq(RpcApply::getType, RpcApplyTypeEnum.RIGHTS_PROTECTION.getValue())); |
|
|
|
BigDecimal comfortMoney = rpcApplyMapper.selectMapComfortMoney(beginTime, finalEndTime, subDepart); |
|
|
|
|
|
|
|
re.setRightsNumber(rightsNumber); |
|
|
|
Set<String> caseNumbers = list.stream().filter(one->StrUtil.isNotBlank(one.getDepartId())).map(RpcApply::getCaseNumber).collect(Collectors.toSet()); |
|
|
|
re.setVictimNumber(victimNumber); |
|
|
|
|
|
|
|
re.setComfortPersonNumber(comfortPersonNumber); |
|
|
|
// 维权案件总数
|
|
|
|
|
|
|
|
re.setRightsNumber(caseNumbers.size()); |
|
|
|
|
|
|
|
// 受侵害人数
|
|
|
|
|
|
|
|
re.setVictimNumber(rpcApplyMapper.selectVictimNumberByOrg(beginTime,finalEndTime,deptId)); |
|
|
|
|
|
|
|
// 打击处理人数
|
|
|
|
|
|
|
|
List<String> tortNames = rpcInfringerResultMapper.selectNamesByOrgTime(beginTime, finalEndTime,deptId); |
|
|
|
|
|
|
|
long initialListSize = tortNames.size(); |
|
|
|
long initialListSize = tortNames.size(); |
|
|
|
long hitPersonNumber = tortNames.stream() |
|
|
|
long hitPersonNumber = tortNames.stream() |
|
|
|
.filter(s -> s.contains(",")).toList().size(); |
|
|
|
.filter(s -> s.contains(",")).toList().size(); |
|
|
|
// 筛选出包含逗号的名称
|
|
|
|
// 筛选出包含逗号的名称
|
|
|
|
long nums = tortNames.stream() |
|
|
|
long nums = tortNames.stream() |
|
|
|
.filter(s -> s.contains(",")) |
|
|
|
.filter(s -> s.contains(",")) |
|
|
|
.mapToLong(s -> s.split(",").length) |
|
|
|
.mapToLong(s -> s.split(",").length) // 拆分每个名称并计算拆分后的数组长度
|
|
|
|
.sum();// 计算所有拆分后数组长度的总和 // 拆分每个名称并计算拆分后的数组长度
|
|
|
|
.sum();// 计算所有拆分后数组长度的总和
|
|
|
|
if(tortNames.stream().noneMatch(s -> s.contains(","))){ |
|
|
|
if(tortNames.stream().noneMatch(s -> s.contains(","))){ |
|
|
|
re.setHitPersonNumber(initialListSize ); |
|
|
|
re.setHitPersonNumber(initialListSize ); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
re.setHitPersonNumber(initialListSize + nums - hitPersonNumber); |
|
|
|
re.setHitPersonNumber(initialListSize + nums - hitPersonNumber); |
|
|
|
} |
|
|
|
} |
|
|
|
//抚慰金额
|
|
|
|
re.setComfortMoney(comfortMoney); |
|
|
|
re.setComfortMoney(rpcApplyMapper.selectComfortMoneyBar(beginTime, finalEndTime, deptId)); |
|
|
|
|
|
|
|
// 抚慰人数
|
|
|
|
|
|
|
|
re.setComfortPersonNumber(rpcApplyService.orgCount(beginTime, finalEndTime, RpcApplyTypeEnum.COMFORT.getValue(), deptId)); |
|
|
|
|
|
|
|
// CompletableFutureUtil.runSyncObject(() -> {
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// re.setComfortMoney(rpcApplyMapper.selectComfortMoneyBarByOrg(beginTime, finalEndTime, deptId));
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// CompletableFutureUtil.runSyncObject(() -> {
|
|
|
|
|
|
|
|
// // 抚慰人数
|
|
|
|
|
|
|
|
// re.setComfortPersonNumber(rpcApplyService.orgCount(beginTime, finalEndTime, RpcApplyTypeEnum.COMFORT.getValue(), deptId));
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -213,55 +150,6 @@ public class SubOneRightsController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// endregion
|
|
|
|
|
|
|
|
//打处情况
|
|
|
|
|
|
|
|
@GetMapping("getPunishmentSituation") |
|
|
|
|
|
|
|
public Result<JSONObject> getPunishmentSituation(@RequestParam Integer departId, |
|
|
|
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime){ |
|
|
|
|
|
|
|
endTime =DateUtil.endOfDay(endTime); |
|
|
|
|
|
|
|
//获取相关案件
|
|
|
|
|
|
|
|
List<RpcApply> list= rpcApplyMapper.selectList(new LambdaQueryWrapper<RpcApply>() |
|
|
|
|
|
|
|
.between(RpcApply::getCrtTime, beginTime, endTime) |
|
|
|
|
|
|
|
.eq(RpcApply::getSecondDepartId,departId) |
|
|
|
|
|
|
|
.eq(RpcApply::getType, RpcApplyTypeEnum.RIGHTS_PROTECTION.getValue())); |
|
|
|
|
|
|
|
//案件分组
|
|
|
|
|
|
|
|
Map<String, List<RpcApply>> collect = list.stream() |
|
|
|
|
|
|
|
.filter(s-> StrUtil.isNotEmpty(s.getInfringerHandle()) ) |
|
|
|
|
|
|
|
.collect(Collectors.groupingBy(RpcApply::getInfringerHandle)); |
|
|
|
|
|
|
|
List<PieItem> pieItems = collect.keySet().stream().map(name -> { |
|
|
|
|
|
|
|
return new PieItem(name, collect.get(name).size()); |
|
|
|
|
|
|
|
}).toList(); |
|
|
|
|
|
|
|
JSONObject data = new JSONObject().fluentPut("PunishmentSituation",pieItems); |
|
|
|
|
|
|
|
return Result.success(data); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 抚慰情况
|
|
|
|
|
|
|
|
@GetMapping("/getComfortSituation") |
|
|
|
|
|
|
|
public Result<JSONObject> getComfortSituation(@RequestParam Integer departId, |
|
|
|
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { |
|
|
|
|
|
|
|
endTime = DateUtil.endOfDay(endTime); |
|
|
|
|
|
|
|
List<PieItem> comfortSituationList = rpcApplyMapper.selectSubComfortSituation(beginTime, endTime,departId); |
|
|
|
|
|
|
|
JSONObject data = new JSONObject().fluentPut("comfortSituationList", comfortSituationList); |
|
|
|
|
|
|
|
return Result.success(data); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//案件类别占比
|
|
|
|
|
|
|
|
@GetMapping("getSubCaseType") |
|
|
|
|
|
|
|
public Result<JSONObject> getSubCaseType(@RequestParam Integer departId, |
|
|
|
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime){ |
|
|
|
|
|
|
|
endTime = DateUtil.endOfDay(endTime); |
|
|
|
|
|
|
|
//案件类别 - 刑事
|
|
|
|
|
|
|
|
List<EchartsVo> crownCaseBar =rpcApplyMapper.selectSubCaseData(beginTime, endTime,"1",departId); |
|
|
|
|
|
|
|
//案件类别 - 行政
|
|
|
|
|
|
|
|
List<EchartsVo> administrativeCase = rpcApplyMapper.selectSubCaseData( beginTime, endTime,"2",departId); |
|
|
|
|
|
|
|
JSONObject data = new JSONObject().fluentPut("crownCaseBar",crownCaseBar).fluentPut("administrativeCase",administrativeCase); |
|
|
|
|
|
|
|
return Result.success(data); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|