|
|
@ -3,6 +3,7 @@ package com.ruoyi.database.controller;
|
|
|
|
import cn.hutool.db.handler.StringHandler;
|
|
|
|
import cn.hutool.db.handler.StringHandler;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
import com.ruoyi.database.domain.DisposalInfo;
|
|
|
|
import com.ruoyi.database.domain.DisposalInfo;
|
|
|
|
import com.ruoyi.database.domain.MetaImpUserModelInfo;
|
|
|
|
import com.ruoyi.database.domain.MetaImpUserModelInfo;
|
|
|
@ -34,11 +35,26 @@ public class MetaImpUserModelInfoController extends BaseController {
|
|
|
|
private final MetaImpUserModelInfoService metaImpUserModelInfoService;
|
|
|
|
private final MetaImpUserModelInfoService metaImpUserModelInfoService;
|
|
|
|
private final TransitHuntersUserModelRecordService transitHuntersUserModelRecordService;
|
|
|
|
private final TransitHuntersUserModelRecordService transitHuntersUserModelRecordService;
|
|
|
|
|
|
|
|
|
|
|
|
// @GetMapping
|
|
|
|
@GetMapping
|
|
|
|
// @ApiOperation("查询重点人员预警信息详情")
|
|
|
|
@ApiOperation("查询重点人员预警信息详情")
|
|
|
|
// public TableDataInfo<MetaImpUserModelInfoVO> list(MetaImpUserModelInfoVO metaImpUserModelInfoVO) {
|
|
|
|
public AjaxResult list(MetaImpUserModelInfoVO metaImpUserModelInfoVO) {
|
|
|
|
// return getDataTable(list);
|
|
|
|
if ("重点人员".equals(metaImpUserModelInfoVO.getType())) {
|
|
|
|
// }
|
|
|
|
MetaImpUserModelInfo one = metaImpUserModelInfoService.lambdaQuery().eq(MetaImpUserModelInfo::getId, metaImpUserModelInfoVO.getDataId()).one();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return AjaxResult.success(one);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if ("狩猎人员".equals(metaImpUserModelInfoVO.getType())) {
|
|
|
|
|
|
|
|
TransitHuntersUserModelRecord one = transitHuntersUserModelRecordService.lambdaQuery().eq(TransitHuntersUserModelRecord::getId, metaImpUserModelInfoVO.getDataId()).one();
|
|
|
|
|
|
|
|
if (one.getWarningLevel() == 3){
|
|
|
|
|
|
|
|
one.setWarningLevelCn("二级");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (one.getCaptureFrequency() == 1){
|
|
|
|
|
|
|
|
one.setEndGlobalPic(null);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return AjaxResult.success(one);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return AjaxResult.error();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/time")
|
|
|
|
@GetMapping("/time")
|
|
|
|
@ApiOperation("查询24小时重点人员预警信息表")
|
|
|
|
@ApiOperation("查询24小时重点人员预警信息表")
|
|
|
@ -55,32 +71,33 @@ public class MetaImpUserModelInfoController extends BaseController {
|
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
|
LocalDateTime minusDay = now.minusDays(1);
|
|
|
|
LocalDateTime minusDay = now.minusDays(1);
|
|
|
|
QueryWrapper<MetaImpUserModelInfo> metaImpUserModelInfoQueryWrapper = new QueryWrapper<>();
|
|
|
|
QueryWrapper<MetaImpUserModelInfo> metaImpUserModelInfoQueryWrapper = new QueryWrapper<>();
|
|
|
|
metaImpUserModelInfoQueryWrapper.in("sign_police_code",strings);
|
|
|
|
metaImpUserModelInfoQueryWrapper.in("sign_police_code", strings);
|
|
|
|
metaImpUserModelInfoQueryWrapper.between("warning_time",formatter.format(minusDay), formatter.format(now));
|
|
|
|
metaImpUserModelInfoQueryWrapper.between("warning_time", formatter.format(minusDay), formatter.format(now));
|
|
|
|
List<MetaImpUserModelInfo> list = metaImpUserModelInfoService.list(metaImpUserModelInfoQueryWrapper);
|
|
|
|
List<MetaImpUserModelInfo> list = metaImpUserModelInfoService.list(metaImpUserModelInfoQueryWrapper);
|
|
|
|
QueryWrapper<TransitHuntersUserModelRecord> wrapper = new QueryWrapper<>();
|
|
|
|
QueryWrapper<TransitHuntersUserModelRecord> wrapper = new QueryWrapper<>();
|
|
|
|
wrapper.between("partition_field", formatter.format(minusDay), formatter.format(now));
|
|
|
|
wrapper.between("partition_field", formatter.format(minusDay), formatter.format(now));
|
|
|
|
List<TransitHuntersUserModelRecord> list1 = transitHuntersUserModelRecordService.list(wrapper);
|
|
|
|
List<TransitHuntersUserModelRecord> list1 = transitHuntersUserModelRecordService.list(wrapper);
|
|
|
|
|
|
|
|
|
|
|
|
ArrayList<MetaImpUserModelInfoVO> metaImpUserModelInfoVOS = new ArrayList<>();
|
|
|
|
ArrayList<MetaImpUserModelInfoVO> metaImpUserModelInfoVOS = new ArrayList<>();
|
|
|
|
for (MetaImpUserModelInfo metaImpUserModelInfo : list){
|
|
|
|
for (MetaImpUserModelInfo metaImpUserModelInfo : list) {
|
|
|
|
MetaImpUserModelInfoVO metaImpUserModelInfoVO = new MetaImpUserModelInfoVO();
|
|
|
|
MetaImpUserModelInfoVO metaImpUserModelInfoVO = new MetaImpUserModelInfoVO();
|
|
|
|
metaImpUserModelInfoVO.setImpUserSubTypeCn(metaImpUserModelInfo.getImpUserSubTypeCn());
|
|
|
|
metaImpUserModelInfoVO.setImpUserSubTypeCn(metaImpUserModelInfo.getImpUserSubTypeCn());
|
|
|
|
metaImpUserModelInfoVO.setImpUserName(metaImpUserModelInfo.getImpUserName());
|
|
|
|
metaImpUserModelInfoVO.setImpUserName(metaImpUserModelInfo.getImpUserName());
|
|
|
|
metaImpUserModelInfoVO.setImpUserIdCard(metaImpUserModelInfo.getImpUserIdCard());
|
|
|
|
metaImpUserModelInfoVO.setImpUserIdCard(metaImpUserModelInfo.getImpUserIdCard());
|
|
|
|
metaImpUserModelInfoVO.setWarningTime(metaImpUserModelInfo.getWarningTime());
|
|
|
|
metaImpUserModelInfoVO.setWarningTime(metaImpUserModelInfo.getWarningTime());
|
|
|
|
|
|
|
|
metaImpUserModelInfoVO.setDataId(metaImpUserModelInfo.getId());
|
|
|
|
metaImpUserModelInfoVO.setType("重点人员");
|
|
|
|
metaImpUserModelInfoVO.setType("重点人员");
|
|
|
|
if (metaImpUserModelInfo.getDataType() == 101003){
|
|
|
|
if (metaImpUserModelInfo.getDataType() == 101003) {
|
|
|
|
metaImpUserModelInfoVO.setValue(metaImpUserModelInfo.getValue3());
|
|
|
|
metaImpUserModelInfoVO.setValue(metaImpUserModelInfo.getValue3());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (metaImpUserModelInfo.getDataType() == 060001){
|
|
|
|
if (metaImpUserModelInfo.getDataType() == 060001) {
|
|
|
|
metaImpUserModelInfoVO.setValue(metaImpUserModelInfo.getValue4());
|
|
|
|
metaImpUserModelInfoVO.setValue(metaImpUserModelInfo.getValue4());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
metaImpUserModelInfoVOS.add(metaImpUserModelInfoVO);
|
|
|
|
metaImpUserModelInfoVOS.add(metaImpUserModelInfoVO);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
for (TransitHuntersUserModelRecord transitHuntersUserModelRecord : list1){
|
|
|
|
for (TransitHuntersUserModelRecord transitHuntersUserModelRecord : list1) {
|
|
|
|
MetaImpUserModelInfoVO metaImpUserModelInfoVO = new MetaImpUserModelInfoVO();
|
|
|
|
MetaImpUserModelInfoVO metaImpUserModelInfoVO = new MetaImpUserModelInfoVO();
|
|
|
|
metaImpUserModelInfoVO.setImpUserSubTypeCn(transitHuntersUserModelRecord.getHuntersUserTypeCn());
|
|
|
|
metaImpUserModelInfoVO.setImpUserSubTypeCn(transitHuntersUserModelRecord.getHuntersUserTypeCn());
|
|
|
|
metaImpUserModelInfoVO.setImpUserName(transitHuntersUserModelRecord.getHuntersUserName());
|
|
|
|
metaImpUserModelInfoVO.setImpUserName(transitHuntersUserModelRecord.getHuntersUserName());
|
|
|
@ -89,6 +106,7 @@ public class MetaImpUserModelInfoController extends BaseController {
|
|
|
|
String warningTime = transitHuntersUserModelRecord.getWarningTime();
|
|
|
|
String warningTime = transitHuntersUserModelRecord.getWarningTime();
|
|
|
|
LocalDateTime localDateTime = LocalDateTime.parse(warningTime, inputFormatter);
|
|
|
|
LocalDateTime localDateTime = LocalDateTime.parse(warningTime, inputFormatter);
|
|
|
|
metaImpUserModelInfoVO.setWarningTime(localDateTime.format(formatter));
|
|
|
|
metaImpUserModelInfoVO.setWarningTime(localDateTime.format(formatter));
|
|
|
|
|
|
|
|
metaImpUserModelInfoVO.setDataId(transitHuntersUserModelRecord.getId());
|
|
|
|
metaImpUserModelInfoVO.setType("狩猎人员");
|
|
|
|
metaImpUserModelInfoVO.setType("狩猎人员");
|
|
|
|
metaImpUserModelInfoVOS.add(metaImpUserModelInfoVO);
|
|
|
|
metaImpUserModelInfoVOS.add(metaImpUserModelInfoVO);
|
|
|
|
}
|
|
|
|
}
|
|
|
|