parent
9e0dace244
commit
22f01e5336
@ -0,0 +1,67 @@
|
||||
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.page.TableDataInfo;
|
||||
import com.ruoyi.database.domain.DisposalInfo;
|
||||
import com.ruoyi.database.domain.MetaImpUserModelInfo;
|
||||
import com.ruoyi.database.service.MetaImpUserModelInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Api(tags = "重点人员预警信息表")
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/base/metaImpUserModelInfo")
|
||||
public class MetaImpUserModelInfoController extends BaseController {
|
||||
|
||||
private final MetaImpUserModelInfoService metaImpUserModelInfoService;
|
||||
|
||||
@GetMapping
|
||||
@ApiOperation("查询重点人员预警信息表")
|
||||
public TableDataInfo<MetaImpUserModelInfo> list() {
|
||||
startPage();
|
||||
ArrayList<String> strings = new ArrayList<>();
|
||||
strings.add("320924510000");
|
||||
strings.add("320924510102");
|
||||
strings.add("320924510101");
|
||||
strings.add("320924830100");
|
||||
strings.add("320924830000");
|
||||
strings.add("320924680000");
|
||||
QueryWrapper<MetaImpUserModelInfo> metaImpUserModelInfoQueryWrapper = new QueryWrapper<>();
|
||||
metaImpUserModelInfoQueryWrapper.in("sign_police_code",strings);
|
||||
List<MetaImpUserModelInfo> list = metaImpUserModelInfoService.list(metaImpUserModelInfoQueryWrapper);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@GetMapping("/time")
|
||||
@ApiOperation("查询24小时重点人员预警信息表")
|
||||
public TableDataInfo<MetaImpUserModelInfo> timeList() {
|
||||
startPage();
|
||||
ArrayList<String> strings = new ArrayList<>();
|
||||
strings.add("320924510000");
|
||||
strings.add("320924510102");
|
||||
strings.add("320924510101");
|
||||
strings.add("320924830100");
|
||||
strings.add("320924830000");
|
||||
strings.add("320924680000");
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
LocalDateTime minusDay = now.minusDays(1);
|
||||
QueryWrapper<MetaImpUserModelInfo> metaImpUserModelInfoQueryWrapper = new QueryWrapper<>();
|
||||
metaImpUserModelInfoQueryWrapper.in("sign_police_code",strings);
|
||||
metaImpUserModelInfoQueryWrapper.between("warning_time",formatter.format(minusDay), formatter.format(now));
|
||||
List<MetaImpUserModelInfo> list = metaImpUserModelInfoService.list(metaImpUserModelInfoQueryWrapper);
|
||||
return getDataTable(list);
|
||||
}
|
||||
}
|
@ -0,0 +1,134 @@
|
||||
package com.ruoyi.database.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @TableName meta_imp_user_model_info
|
||||
*/
|
||||
@TableName(value ="meta_imp_user_model_info")
|
||||
@Data
|
||||
public class MetaImpUserModelInfo extends BaseEntity {
|
||||
|
||||
@ApiModelProperty("主键")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
private Integer dataType;
|
||||
|
||||
private String impUserSubType;
|
||||
|
||||
private String impUserName;
|
||||
|
||||
private String impUserIdCard;
|
||||
|
||||
private BigDecimal longitude;
|
||||
|
||||
private BigDecimal latitude;
|
||||
|
||||
private String activityTime;
|
||||
|
||||
private String activityDeviceAddress;
|
||||
|
||||
private String activityDeviceCode;
|
||||
|
||||
private String activityPoliceStationCode;
|
||||
|
||||
private String activityPoliceStationName;
|
||||
|
||||
private String activityMessage;
|
||||
|
||||
private String signPoliceman;
|
||||
|
||||
private String signPolicemanIdCard;
|
||||
|
||||
private Integer signStatus;
|
||||
@TableField(exist = false)
|
||||
private String signStatusCn;
|
||||
|
||||
private Integer disposalStatus;
|
||||
@TableField(exist = false)
|
||||
private String disposalStatusCn;
|
||||
|
||||
private String signPoliceStation;
|
||||
|
||||
private String signPoliceCode;
|
||||
|
||||
private String warningTime;
|
||||
|
||||
private String isImpAddress;
|
||||
|
||||
private String key1;
|
||||
|
||||
private String value1;
|
||||
|
||||
private String key2;
|
||||
|
||||
private String value2;
|
||||
|
||||
private String key3;
|
||||
|
||||
private String value3;
|
||||
|
||||
private String key4;
|
||||
|
||||
private String value4;
|
||||
|
||||
private String key5;
|
||||
|
||||
private String value5;
|
||||
|
||||
private String key6;
|
||||
|
||||
private String value6;
|
||||
|
||||
private String key7;
|
||||
|
||||
private String value7;
|
||||
|
||||
private String key8;
|
||||
|
||||
private String value8;
|
||||
|
||||
private String key9;
|
||||
|
||||
private String value9;
|
||||
|
||||
private String key10;
|
||||
|
||||
private String value10;
|
||||
|
||||
private String key11;
|
||||
|
||||
private String value11;
|
||||
|
||||
private String key12;
|
||||
|
||||
private String value12;
|
||||
|
||||
private String key13;
|
||||
|
||||
private String value13;
|
||||
|
||||
private String key14;
|
||||
|
||||
private String value14;
|
||||
|
||||
private String key15;
|
||||
|
||||
private String value15;
|
||||
|
||||
private String key16;
|
||||
|
||||
private String value16;
|
||||
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.ruoyi.database.mapper;
|
||||
|
||||
import com.ruoyi.database.domain.MetaImpUserModelInfo;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author 28758
|
||||
* @description 针对表【meta_imp_user_model_info(?ص???Ԥ??ģ????Ϣ?)】的数据库操作Mapper
|
||||
* @createDate 2024-01-28 15:49:30
|
||||
* @Entity com.ruoyi.database.domain.MetaImpUserModelInfo
|
||||
*/
|
||||
@Mapper
|
||||
public interface MetaImpUserModelInfoMapper extends BaseMapper<MetaImpUserModelInfo> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,13 @@
|
||||
package com.ruoyi.database.service;
|
||||
|
||||
import com.ruoyi.database.domain.MetaImpUserModelInfo;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author 28758
|
||||
* @description 针对表【meta_imp_user_model_info(?ص???Ԥ??ģ????Ϣ?)】的数据库操作Service
|
||||
* @createDate 2024-01-28 15:49:30
|
||||
*/
|
||||
public interface MetaImpUserModelInfoService extends IService<MetaImpUserModelInfo> {
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.ruoyi.database.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.database.domain.MetaImpUserModelInfo;
|
||||
import com.ruoyi.database.service.MetaImpUserModelInfoService;
|
||||
import com.ruoyi.database.mapper.MetaImpUserModelInfoMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author 28758
|
||||
* @description 针对表【meta_imp_user_model_info(?ص???Ԥ??ģ????Ϣ?)】的数据库操作Service实现
|
||||
* @createDate 2024-01-28 15:49:30
|
||||
*/
|
||||
@Service
|
||||
public class MetaImpUserModelInfoServiceImpl extends ServiceImpl<MetaImpUserModelInfoMapper, MetaImpUserModelInfo>
|
||||
implements MetaImpUserModelInfoService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in new issue