|
|
@ -56,14 +56,18 @@ public class BigScreenController extends BaseController {
|
|
|
|
@ApiOperation("资源概况")
|
|
|
|
@ApiOperation("资源概况")
|
|
|
|
public AjaxResult overviewResources() {
|
|
|
|
public AjaxResult overviewResources() {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
//人户一致 101
|
|
|
|
|
|
|
|
//流动人口 102
|
|
|
|
|
|
|
|
//人在户不在 124
|
|
|
|
|
|
|
|
//户在人不在 201
|
|
|
|
// 流口查询
|
|
|
|
// 流口查询
|
|
|
|
QueryWrapper<MetaActualUserInfo> queryLdrkWrapper = new QueryWrapper<>();
|
|
|
|
QueryWrapper<MetaActualUserInfo> queryLdrkWrapper = new QueryWrapper<>();
|
|
|
|
queryLdrkWrapper.eq("actual_user_type", 102);
|
|
|
|
queryLdrkWrapper.eq("actual_user_type", 102);
|
|
|
|
int actualUserLdrkCount = actualUserInfoService.count(queryLdrkWrapper);
|
|
|
|
int actualUserLdrkCount = actualUserInfoService.count(queryLdrkWrapper);
|
|
|
|
// 实有人口总数
|
|
|
|
// 实有人口总数
|
|
|
|
// QueryWrapper<MetaActualUserInfo> querySyrkWrapper = new QueryWrapper<>();
|
|
|
|
QueryWrapper<MetaActualUserInfo> querySyrkWrapper = new QueryWrapper<>();
|
|
|
|
// querySyrkWrapper.ne("actual_user_type", 101);
|
|
|
|
querySyrkWrapper.ne("actual_user_type", 101);
|
|
|
|
int actualUserSyrkCount = actualUserInfoService.count();
|
|
|
|
int actualUserSyrkCount = actualUserInfoService.count(querySyrkWrapper);
|
|
|
|
//实有房屋总数
|
|
|
|
//实有房屋总数
|
|
|
|
// int countSyfw = realEstateInfoService.countSyfw(new MetaRealEstateInfo());
|
|
|
|
// int countSyfw = realEstateInfoService.countSyfw(new MetaRealEstateInfo());
|
|
|
|
int countSyfw = realEstateInfoService.count();
|
|
|
|
int countSyfw = realEstateInfoService.count();
|
|
|
@ -289,6 +293,7 @@ public class BigScreenController extends BaseController {
|
|
|
|
@ApiOperation("警情统计列表,重点警情")
|
|
|
|
@ApiOperation("警情统计列表,重点警情")
|
|
|
|
public AjaxResult policeSituationStatisticsList() {
|
|
|
|
public AjaxResult policeSituationStatisticsList() {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
|
|
List<MetaAlarmInfoAndHandleAlarmVo> metaAlarmInfos = alarmInfoService.listAlarmAndHandleAlarm();
|
|
|
|
List<MetaAlarmInfoAndHandleAlarmVo> metaAlarmInfos = alarmInfoService.listAlarmAndHandleAlarm();
|
|
|
|
return AjaxResult.success(metaAlarmInfos);
|
|
|
|
return AjaxResult.success(metaAlarmInfos);
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
@ -307,7 +312,22 @@ public class BigScreenController extends BaseController {
|
|
|
|
|
|
|
|
|
|
|
|
Date thirtyMinutesAgo = DateUtil.offsetMinute(new Date(), -NumKit.checkInt(time));
|
|
|
|
Date thirtyMinutesAgo = DateUtil.offsetMinute(new Date(), -NumKit.checkInt(time));
|
|
|
|
QueryWrapper<MetaAlarmInfo> queryWrapper = new QueryWrapper<>();
|
|
|
|
QueryWrapper<MetaAlarmInfo> queryWrapper = new QueryWrapper<>();
|
|
|
|
queryWrapper.gt("alarm_response_time", DateUtil.format(thirtyMinutesAgo, "yyyyMMddHHmmss"));
|
|
|
|
queryWrapper.gt("alarm_response_time", DateUtil.format(thirtyMinutesAgo, "yyyyMMddHHmmss"))
|
|
|
|
|
|
|
|
.and(wrapper -> wrapper.like("alarm_response_unit", "射阳县公安局临海派出所").or()
|
|
|
|
|
|
|
|
.like("alarm_response_unit", "射阳县公安局临海派出所第一警务区").or()
|
|
|
|
|
|
|
|
.like("alarm_response_unit", "射阳县公安局临海派出所第二警务区").or()
|
|
|
|
|
|
|
|
.like("alarm_response_unit", "射阳县公安局临海派出所第三警务区").or()
|
|
|
|
|
|
|
|
.like("alarm_response_unit", "射阳县公安局临海派出所第四警务区").or()
|
|
|
|
|
|
|
|
.like("alarm_response_unit", "射阳县公安局临港派出所").or()
|
|
|
|
|
|
|
|
.like("alarm_response_unit", "射阳县公安局临港派出所社区警务责任区").or()
|
|
|
|
|
|
|
|
.like("alarm_response_unit", "射阳县公安局临港派出所第一警务区").or()
|
|
|
|
|
|
|
|
.like("alarm_response_unit", "射阳县公安局临港派出所第二警务区").or()
|
|
|
|
|
|
|
|
.like("alarm_response_unit", "射阳县公安局临港派出所第一警务区").or()
|
|
|
|
|
|
|
|
.like("alarm_response_unit", "射阳县公安局扁担港边防派出所").or()
|
|
|
|
|
|
|
|
.like("alarm_response_unit", "射阳县公安局扁担港边防派出所第一警务区").or()
|
|
|
|
|
|
|
|
.like("alarm_response_unit", "射阳县公安局黄沙河边防派出所").or()
|
|
|
|
|
|
|
|
.like("alarm_response_unit", "射阳县公安局黄沙河边防派出所第一警务区").or()
|
|
|
|
|
|
|
|
.like("alarm_response_unit", "射阳县公安局黄沙河边防派出所第三警务区"));
|
|
|
|
List<MetaAlarmInfo> metaAlarmInfos = alarmInfoService.list(queryWrapper);
|
|
|
|
List<MetaAlarmInfo> metaAlarmInfos = alarmInfoService.list(queryWrapper);
|
|
|
|
return AjaxResult.success(metaAlarmInfos);
|
|
|
|
return AjaxResult.success(metaAlarmInfos);
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|