|
|
|
@ -3,6 +3,7 @@ package com.ruoyi.database.controller;
|
|
|
|
|
import cn.hutool.db.handler.StringHandler;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
|
import com.ruoyi.database.domain.DisposalInfo;
|
|
|
|
|
import com.ruoyi.database.domain.MetaImpUserModelInfo;
|
|
|
|
@ -34,11 +35,26 @@ public class MetaImpUserModelInfoController extends BaseController {
|
|
|
|
|
private final MetaImpUserModelInfoService metaImpUserModelInfoService;
|
|
|
|
|
private final TransitHuntersUserModelRecordService transitHuntersUserModelRecordService;
|
|
|
|
|
|
|
|
|
|
// @GetMapping
|
|
|
|
|
// @ApiOperation("查询重点人员预警信息详情")
|
|
|
|
|
// public TableDataInfo<MetaImpUserModelInfoVO> list(MetaImpUserModelInfoVO metaImpUserModelInfoVO) {
|
|
|
|
|
// return getDataTable(list);
|
|
|
|
|
// }
|
|
|
|
|
@GetMapping
|
|
|
|
|
@ApiOperation("查询重点人员预警信息详情")
|
|
|
|
|
public AjaxResult list(MetaImpUserModelInfoVO metaImpUserModelInfoVO) {
|
|
|
|
|
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")
|
|
|
|
|
@ApiOperation("查询24小时重点人员预警信息表")
|
|
|
|
@ -69,6 +85,7 @@ public class MetaImpUserModelInfoController extends BaseController {
|
|
|
|
|
metaImpUserModelInfoVO.setImpUserName(metaImpUserModelInfo.getImpUserName());
|
|
|
|
|
metaImpUserModelInfoVO.setImpUserIdCard(metaImpUserModelInfo.getImpUserIdCard());
|
|
|
|
|
metaImpUserModelInfoVO.setWarningTime(metaImpUserModelInfo.getWarningTime());
|
|
|
|
|
metaImpUserModelInfoVO.setDataId(metaImpUserModelInfo.getId());
|
|
|
|
|
metaImpUserModelInfoVO.setType("重点人员");
|
|
|
|
|
if (metaImpUserModelInfo.getDataType() == 101003) {
|
|
|
|
|
metaImpUserModelInfoVO.setValue(metaImpUserModelInfo.getValue3());
|
|
|
|
@ -89,6 +106,7 @@ public class MetaImpUserModelInfoController extends BaseController {
|
|
|
|
|
String warningTime = transitHuntersUserModelRecord.getWarningTime();
|
|
|
|
|
LocalDateTime localDateTime = LocalDateTime.parse(warningTime, inputFormatter);
|
|
|
|
|
metaImpUserModelInfoVO.setWarningTime(localDateTime.format(formatter));
|
|
|
|
|
metaImpUserModelInfoVO.setDataId(transitHuntersUserModelRecord.getId());
|
|
|
|
|
metaImpUserModelInfoVO.setType("狩猎人员");
|
|
|
|
|
metaImpUserModelInfoVOS.add(metaImpUserModelInfoVO);
|
|
|
|
|
}
|
|
|
|
|