|
|
@ -5,15 +5,18 @@ 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.domain.AjaxResult;
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
|
|
|
|
import com.ruoyi.common.utils.bean.BeanUtils;
|
|
|
|
import com.ruoyi.database.domain.DisposalInfo;
|
|
|
|
import com.ruoyi.database.domain.DisposalInfo;
|
|
|
|
import com.ruoyi.database.domain.MetaImpUserModelInfo;
|
|
|
|
import com.ruoyi.database.domain.MetaImpUserModelInfo;
|
|
|
|
import com.ruoyi.database.domain.TransitHuntersUserModelRecord;
|
|
|
|
import com.ruoyi.database.domain.TransitHuntersUserModelRecord;
|
|
|
|
|
|
|
|
import com.ruoyi.database.domain.vo.ImpUserModelVO;
|
|
|
|
import com.ruoyi.database.domain.vo.MetaImpUserModelInfoVO;
|
|
|
|
import com.ruoyi.database.domain.vo.MetaImpUserModelInfoVO;
|
|
|
|
import com.ruoyi.database.service.MetaImpUserModelInfoService;
|
|
|
|
import com.ruoyi.database.service.MetaImpUserModelInfoService;
|
|
|
|
import com.ruoyi.database.service.TransitHuntersUserModelRecordService;
|
|
|
|
import com.ruoyi.database.service.TransitHuntersUserModelRecordService;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.SmartInitializingSingleton;
|
|
|
|
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
|
|
|
|
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
@ -21,9 +24,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.*;
|
|
|
|
import java.util.Comparator;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
|
|
@Api(tags = "重点人员预警信息表")
|
|
|
|
@Api(tags = "重点人员预警信息表")
|
|
|
@ -40,8 +41,21 @@ public class MetaImpUserModelInfoController extends BaseController {
|
|
|
|
public AjaxResult list(MetaImpUserModelInfoVO metaImpUserModelInfoVO) {
|
|
|
|
public AjaxResult list(MetaImpUserModelInfoVO metaImpUserModelInfoVO) {
|
|
|
|
if ("重点人员".equals(metaImpUserModelInfoVO.getType())) {
|
|
|
|
if ("重点人员".equals(metaImpUserModelInfoVO.getType())) {
|
|
|
|
MetaImpUserModelInfo one = metaImpUserModelInfoService.lambdaQuery().eq(MetaImpUserModelInfo::getId, metaImpUserModelInfoVO.getDataId()).one();
|
|
|
|
MetaImpUserModelInfo one = metaImpUserModelInfoService.lambdaQuery().eq(MetaImpUserModelInfo::getId, metaImpUserModelInfoVO.getDataId()).one();
|
|
|
|
|
|
|
|
ImpUserModelVO impUserModelVO = new ImpUserModelVO();
|
|
|
|
return AjaxResult.success(one);
|
|
|
|
BeanUtils.copyProperties(one, impUserModelVO);
|
|
|
|
|
|
|
|
Map<String, String> map = new HashMap<>();
|
|
|
|
|
|
|
|
map.put(one.getKey1(), one.getValue1());
|
|
|
|
|
|
|
|
map.put(one.getKey2(), one.getValue2());
|
|
|
|
|
|
|
|
map.put(one.getKey3(), one.getValue3());
|
|
|
|
|
|
|
|
map.put(one.getKey4(), one.getValue4());
|
|
|
|
|
|
|
|
map.put(one.getKey5(), one.getValue5());
|
|
|
|
|
|
|
|
map.put(one.getKey6(), one.getValue6());
|
|
|
|
|
|
|
|
map.put(one.getKey7(), one.getValue7());
|
|
|
|
|
|
|
|
map.put(one.getKey8(), one.getValue8());
|
|
|
|
|
|
|
|
map.put(one.getKey9(), one.getValue9());
|
|
|
|
|
|
|
|
map.put(one.getKey10(), one.getValue10());
|
|
|
|
|
|
|
|
impUserModelVO.setKV(map);
|
|
|
|
|
|
|
|
return AjaxResult.success(impUserModelVO);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ("狩猎人员".equals(metaImpUserModelInfoVO.getType())) {
|
|
|
|
if ("狩猎人员".equals(metaImpUserModelInfoVO.getType())) {
|
|
|
|
TransitHuntersUserModelRecord one = transitHuntersUserModelRecordService.lambdaQuery().eq(TransitHuntersUserModelRecord::getId, metaImpUserModelInfoVO.getDataId()).one();
|
|
|
|
TransitHuntersUserModelRecord one = transitHuntersUserModelRecordService.lambdaQuery().eq(TransitHuntersUserModelRecord::getId, metaImpUserModelInfoVO.getDataId()).one();
|
|
|
@ -87,11 +101,28 @@ public class MetaImpUserModelInfoController extends BaseController {
|
|
|
|
metaImpUserModelInfoVO.setWarningTime(metaImpUserModelInfo.getWarningTime());
|
|
|
|
metaImpUserModelInfoVO.setWarningTime(metaImpUserModelInfo.getWarningTime());
|
|
|
|
metaImpUserModelInfoVO.setDataId(metaImpUserModelInfo.getId());
|
|
|
|
metaImpUserModelInfoVO.setDataId(metaImpUserModelInfo.getId());
|
|
|
|
metaImpUserModelInfoVO.setType("重点人员");
|
|
|
|
metaImpUserModelInfoVO.setType("重点人员");
|
|
|
|
if (metaImpUserModelInfo.getDataType() == 101003) {
|
|
|
|
if (Objects.equals(metaImpUserModelInfo.getDataType(), "101003")) {
|
|
|
|
metaImpUserModelInfoVO.setValue(metaImpUserModelInfo.getValue3());
|
|
|
|
metaImpUserModelInfoVO.setValue(metaImpUserModelInfo.getValue3());
|
|
|
|
|
|
|
|
metaImpUserModelInfoVO.setSubType("人脸抓拍");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (metaImpUserModelInfo.getDataType() == 060001) {
|
|
|
|
if (Objects.equals(metaImpUserModelInfo.getDataType(), "060001")) {
|
|
|
|
metaImpUserModelInfoVO.setValue(metaImpUserModelInfo.getValue4());
|
|
|
|
metaImpUserModelInfoVO.setValue(metaImpUserModelInfo.getValue4());
|
|
|
|
|
|
|
|
metaImpUserModelInfoVO.setSubType("车辆抓拍");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Objects.equals(metaImpUserModelInfo.getDataType(), "500002")) {
|
|
|
|
|
|
|
|
metaImpUserModelInfoVO.setSubType("技侦定位");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Objects.equals(metaImpUserModelInfo.getDataType(), "100086")) {
|
|
|
|
|
|
|
|
metaImpUserModelInfoVO.setSubType("汽车客运");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Objects.equals(metaImpUserModelInfo.getDataType(), "900018")) {
|
|
|
|
|
|
|
|
metaImpUserModelInfoVO.setSubType("民航进港");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Objects.equals(metaImpUserModelInfo.getDataType(), "102011")) {
|
|
|
|
|
|
|
|
metaImpUserModelInfoVO.setSubType("铁路订票");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Objects.equals(metaImpUserModelInfo.getDataType(), "101005")) {
|
|
|
|
|
|
|
|
metaImpUserModelInfoVO.setSubType("旅馆住宿");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
metaImpUserModelInfoVOS.add(metaImpUserModelInfoVO);
|
|
|
|
metaImpUserModelInfoVOS.add(metaImpUserModelInfoVO);
|
|
|
|
|
|
|
|
|
|
|
@ -115,4 +146,7 @@ public class MetaImpUserModelInfoController extends BaseController {
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
return getDataTable(infoVOS);
|
|
|
|
return getDataTable(infoVOS);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|