parent
ad4c2adf05
commit
47aff1c05c
@ -0,0 +1,89 @@
|
||||
package com.ruoyi.business.controller;
|
||||
|
||||
|
||||
import com.ruoyi.business.domain.vo.PoachingVo;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.StringKit;
|
||||
import com.ruoyi.database.service.DevopsDeviceInfoService;
|
||||
import com.ruoyi.database.service.MetaHuntersInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 大屏查询接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-29 09:34:47
|
||||
*/
|
||||
@Api(tags = "非法狩猎大屏查询接口")
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/base/poaching")
|
||||
public class PoachingController extends BaseController {
|
||||
|
||||
private final DevopsDeviceInfoService deviceInfoService;
|
||||
private final MetaHuntersInfoService huntersInfoService;
|
||||
|
||||
@PostMapping("/overviewResources")
|
||||
@ApiOperation("资源概况")
|
||||
public AjaxResult overviewResources() {
|
||||
try {
|
||||
// 流口查询
|
||||
int deviceCount = deviceInfoService.count();
|
||||
//实有房屋总数 todo 等表创建好了之后
|
||||
int personCuont = huntersInfoService.count();
|
||||
|
||||
PoachingVo bean = new PoachingVo();
|
||||
bean.setPersonCount(StringKit.toString(personCuont));
|
||||
bean.setDeviceCount(StringKit.toString(deviceCount));
|
||||
return AjaxResult.success(bean);
|
||||
} catch (Exception e) {
|
||||
logger.info(StringKit.toString(e));
|
||||
return AjaxResult.error("请求失败,请联系管理员");
|
||||
}
|
||||
}
|
||||
|
||||
@PostMapping("/personnelStatistics")
|
||||
@ApiOperation("人员统计")
|
||||
public AjaxResult personnelStatistics() {
|
||||
try {
|
||||
|
||||
Map parMap = new HashMap();
|
||||
parMap.put("ffslryCount","7644");
|
||||
Map map1 = new HashMap();
|
||||
map1.put("XX人员","34%");
|
||||
parMap.put("xx1",map1);
|
||||
|
||||
Map map2 = new HashMap();
|
||||
map2.put("XX人员","23%");
|
||||
parMap.put("xx2",map2);
|
||||
|
||||
Map map3 = new HashMap();
|
||||
map3.put("XX人员","17%");
|
||||
parMap.put("xx3",map3);
|
||||
|
||||
Map map4 = new HashMap();
|
||||
map4.put("XX人员","12%");
|
||||
parMap.put("xx4",map4);
|
||||
|
||||
Map map5 = new HashMap();
|
||||
map5.put("XX人员","14%");
|
||||
parMap.put("xx5",map5);
|
||||
|
||||
return AjaxResult.success(parMap);
|
||||
} catch (Exception e) {
|
||||
logger.info(StringKit.toString(e));
|
||||
return AjaxResult.error("请求失败,请联系管理员");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
package com.ruoyi.business.domain.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 重点人员vo
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-29 09:33:22
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "KeyPersonnelVo", description = "重点人员vo")
|
||||
public class BuildEstateInfoVo {
|
||||
|
||||
|
||||
/**
|
||||
* 点位名称
|
||||
*/
|
||||
@ApiModelProperty("点位名称")
|
||||
private String realEstateBriefAddress;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
@ApiModelProperty("经度")
|
||||
private String longitude;
|
||||
|
||||
/**
|
||||
* 纬度
|
||||
*/
|
||||
@ApiModelProperty("纬度")
|
||||
private String latitude;
|
||||
|
||||
/**
|
||||
* 总数
|
||||
*/
|
||||
@ApiModelProperty("总数")
|
||||
private String count;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package com.ruoyi.business.domain.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 重点人员vo
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-29 09:33:22
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "KeyPersonnelVo", description = "重点人员vo")
|
||||
public class BuildInfoActualVo {
|
||||
|
||||
|
||||
/**
|
||||
* 总数
|
||||
*/
|
||||
@ApiModelProperty("总数")
|
||||
private String count;
|
||||
|
||||
|
||||
/** 人户一致 */
|
||||
@ApiModelProperty("人户一致")
|
||||
private String rhyzCount;
|
||||
|
||||
|
||||
/** 人户不一致 */
|
||||
@ApiModelProperty("人户不一致")
|
||||
private String rhbyzCount;
|
||||
|
||||
/** 户在人不在 */
|
||||
@ApiModelProperty("户在人不在")
|
||||
private String hzrbzCount;
|
||||
|
||||
/** 境外人员 */
|
||||
@ApiModelProperty("境外人员")
|
||||
private String jwryCount;
|
||||
|
||||
/** 重点人员 */
|
||||
@ApiModelProperty("重点人员")
|
||||
private String zdryCount;
|
||||
|
||||
/** 关爱人员 */
|
||||
@ApiModelProperty("关爱人员")
|
||||
private String garyCount;
|
||||
|
||||
/** 常驻人员 */
|
||||
@ApiModelProperty("常驻人员")
|
||||
private String czryCount;
|
||||
|
||||
/** 暂住人员 */
|
||||
@ApiModelProperty("暂住人员")
|
||||
private String zzryCount;
|
||||
|
||||
/** 流动人员 */
|
||||
@ApiModelProperty("流动人员")
|
||||
private String ldCount;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
package com.ruoyi.business.domain.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 重点人员vo
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-29 09:33:22
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "KeyPersonnelVo", description = "重点人员vo")
|
||||
public class BuildInformationVo {
|
||||
|
||||
|
||||
/**
|
||||
* 总数
|
||||
*/
|
||||
@ApiModelProperty("总数")
|
||||
private String count;
|
||||
|
||||
|
||||
/** 住宅 */
|
||||
@ApiModelProperty("住宅数量")
|
||||
private String zzCount;
|
||||
|
||||
|
||||
/** 商铺 */
|
||||
@ApiModelProperty("商铺数量")
|
||||
private String spCount;
|
||||
|
||||
/** 商住两用 */
|
||||
@ApiModelProperty("商住两用数量")
|
||||
private String szlyCount;
|
||||
|
||||
/** 空置 */
|
||||
@ApiModelProperty("空置数量")
|
||||
private String kzCount;
|
||||
|
||||
/** 出租房数量 */
|
||||
@ApiModelProperty("出租房数量")
|
||||
private String czfCount;
|
||||
|
||||
/** 群租房数量 */
|
||||
@ApiModelProperty("群租房数量")
|
||||
private String qzfCount;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
package com.ruoyi.business.domain.vo;
|
||||
|
||||
import com.ruoyi.database.domain.MetaActualUserInfo;
|
||||
import com.ruoyi.database.domain.MetaImpUserInfo;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 重点人员vo
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-29 09:33:22
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "KeyPersonnelVo", description = "重点人员vo")
|
||||
public class BuildUserInformationVo {
|
||||
|
||||
//房屋信息
|
||||
private HomeInfoVo homeInfo;
|
||||
//户主
|
||||
private MetaActualUserInfo actualUserInfo;
|
||||
//实有人口数据
|
||||
private List<MetaActualUserInfo> userInfos;
|
||||
//户在人不在数据
|
||||
private List<MetaActualUserInfo> HouseholdInUserInfos;
|
||||
//重点人数据
|
||||
private List<MetaImpUserInfo> impUserInfos;
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,145 @@
|
||||
package com.ruoyi.business.domain.vo;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 视频监控设备表(DevopsVideoInfo)Domain
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-01 20:06:03
|
||||
*/
|
||||
@Data
|
||||
public class DevopsVideoInfoVo extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 场所编码
|
||||
*/
|
||||
private String placeCode;
|
||||
|
||||
/**
|
||||
* 场所名称
|
||||
*/
|
||||
private String placeName;
|
||||
|
||||
/**
|
||||
* 设备编码
|
||||
*/
|
||||
private String deviceCode;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
private String deviceName;
|
||||
|
||||
/**
|
||||
* 监控类型
|
||||
*/
|
||||
private Integer monitoringType;
|
||||
|
||||
/**
|
||||
* 安装位置
|
||||
*/
|
||||
private String deviceAddress;
|
||||
|
||||
/**
|
||||
* 设备方位
|
||||
*/
|
||||
private Integer orientation;
|
||||
|
||||
/**
|
||||
* 设备SN编号
|
||||
*/
|
||||
private String deviceSn;
|
||||
|
||||
/**
|
||||
* 设备品牌
|
||||
*/
|
||||
private String deviceBrand;
|
||||
|
||||
/**
|
||||
* 设备ip
|
||||
*/
|
||||
private String deviceIp;
|
||||
|
||||
/**
|
||||
* 设备端口
|
||||
*/
|
||||
private Integer devicePort;
|
||||
|
||||
/**
|
||||
* 设备MAC
|
||||
*/
|
||||
private String deviceMac;
|
||||
|
||||
/**
|
||||
* 设备经度
|
||||
*/
|
||||
private Double longitude;
|
||||
|
||||
/**
|
||||
* 设备纬度
|
||||
*/
|
||||
private Double latitude;
|
||||
|
||||
/**
|
||||
* U3D经度
|
||||
*/
|
||||
private Double u3dLongitude;
|
||||
|
||||
/**
|
||||
* U3D纬度
|
||||
*/
|
||||
private Double u3dLatitude;
|
||||
|
||||
/**
|
||||
* 设备高度
|
||||
*/
|
||||
private String deviceHeight;
|
||||
|
||||
/**
|
||||
* 设备厂家
|
||||
*/
|
||||
private String manufactor;
|
||||
|
||||
/**
|
||||
* 登陆帐号
|
||||
*/
|
||||
private String account;
|
||||
|
||||
/**
|
||||
* 登陆密码
|
||||
*/
|
||||
private String password;
|
||||
|
||||
/**
|
||||
* 通道国标编码
|
||||
*/
|
||||
private String gbsChannelNo;
|
||||
|
||||
/**
|
||||
* NVR设备编码
|
||||
*/
|
||||
private String gbsNvrNo;
|
||||
|
||||
/**
|
||||
* 通道号
|
||||
*/
|
||||
private Integer channelNo;
|
||||
|
||||
private String plateNo;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.ruoyi.business.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class HomeInfoVo {
|
||||
//地址
|
||||
private String address;
|
||||
//网格
|
||||
private String grid;
|
||||
//房屋类型
|
||||
private String type;
|
||||
//是否出租
|
||||
private String isRent;
|
||||
//警务区
|
||||
private String policeDistrictCode;
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.ruoyi.business.domain.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 人车统计Vo
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-29 09:33:22
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "HumanVehicleStatisticsVo", description = "人车统计Vo")
|
||||
public class HumanVehicleStatisticsVo {
|
||||
|
||||
/**
|
||||
* 当天车辆统计
|
||||
*/
|
||||
@ApiModelProperty("当天车辆统计")
|
||||
private String vehicleCount;
|
||||
|
||||
/**
|
||||
* 当天人员统计
|
||||
*/
|
||||
@ApiModelProperty("当天人员统计")
|
||||
private String userCount;
|
||||
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.ruoyi.business.domain.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 资源概况vo
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-11-29 09:33:22
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "OverviewResourcesVo", description = "资源概况vo")
|
||||
public class PoachingVo {
|
||||
|
||||
/**
|
||||
* 人员总数
|
||||
*/
|
||||
@ApiModelProperty("人员总数")
|
||||
private String personCount;
|
||||
|
||||
/**
|
||||
* 设备总数
|
||||
*/
|
||||
@ApiModelProperty("设备总数")
|
||||
private String deviceCount;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,106 @@
|
||||
package com.ruoyi.database.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
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.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.database.domain.MetaHuntersInfo;
|
||||
import com.ruoyi.database.service.MetaHuntersInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 非法狩猎人员信息表(MetaHuntersInfo)Controller
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-09 17:22:05
|
||||
*/
|
||||
@Api(tags = "非法狩猎人员信息表")
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/base/metaHuntersInfo")
|
||||
public class MetaHuntersInfoController extends BaseController {
|
||||
|
||||
private final MetaHuntersInfoService metaHuntersInfoService;
|
||||
|
||||
@GetMapping
|
||||
@ApiOperation("查询非法狩猎人员信息表")
|
||||
public TableDataInfo<MetaHuntersInfo> list(MetaHuntersInfo metaHuntersInfo) {
|
||||
startPage();
|
||||
|
||||
List<MetaHuntersInfo> list = new ArrayList<>();
|
||||
if(metaHuntersInfo.getFirstTime() != null && metaHuntersInfo.getEndTime() != null){
|
||||
list = metaHuntersInfoService.list(new QueryWrapper<>(metaHuntersInfo)
|
||||
.between("registration_time", metaHuntersInfo.getFirstTime(), metaHuntersInfo.getEndTime())
|
||||
);
|
||||
}else {
|
||||
list = metaHuntersInfoService.list(new QueryWrapper<>(metaHuntersInfo));
|
||||
}
|
||||
|
||||
// List<MetaHuntersInfo> list = metaHuntersInfoService.list(new QueryWrapper<>(metaHuntersInfo));
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("新增非法狩猎人员信息表")
|
||||
@Log(title = "非法狩猎人员信息表", businessType = BusinessType.INSERT)
|
||||
public AjaxResult insert(@RequestBody MetaHuntersInfo metaHuntersInfo) {
|
||||
return toAjax(metaHuntersInfoService.save(metaHuntersInfo));
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改非法狩猎人员信息表")
|
||||
@Log(title = "非法狩猎人员信息表", businessType = BusinessType.UPDATE)
|
||||
public AjaxResult update(@RequestBody MetaHuntersInfo metaHuntersInfo) {
|
||||
return toAjax(metaHuntersInfoService.updateById(metaHuntersInfo));
|
||||
}
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除非法狩猎人员信息表")
|
||||
@Log(title = "非法狩猎人员信息表", businessType = BusinessType.DELETE)
|
||||
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||
return toAjax(metaHuntersInfoService.removeByIds(idList));
|
||||
}
|
||||
|
||||
@PostMapping("/export")
|
||||
@ApiOperation("导出非法狩猎人员信息表")
|
||||
@Log(title = "非法狩猎人员信息表", businessType = BusinessType.EXPORT)
|
||||
public void export(HttpServletResponse response, MetaHuntersInfo metaHuntersInfo) {
|
||||
List<MetaHuntersInfo> list = metaHuntersInfoService.list(new QueryWrapper<>(metaHuntersInfo));
|
||||
ExcelUtil<MetaHuntersInfo> util = new ExcelUtil<>(MetaHuntersInfo.class);
|
||||
util.exportExcel(response, list, "非法狩猎人员信息表");
|
||||
}
|
||||
|
||||
@PostMapping("/importTemplate")
|
||||
@ApiOperation("导入非法狩猎人员信息表模板")
|
||||
@Log(title = "非法狩猎人员信息表", businessType = BusinessType.IMPORT)
|
||||
public void importTemplate(HttpServletResponse response) {
|
||||
ExcelUtil<MetaHuntersInfo> util = new ExcelUtil<>(MetaHuntersInfo.class);
|
||||
util.importTemplateExcel(response, "场所基础信息模板");
|
||||
}
|
||||
|
||||
@PostMapping("/importData")
|
||||
@ApiOperation("导入非法狩猎人员信息表")
|
||||
@Log(title = "非法狩猎人员信息表", businessType = BusinessType.IMPORT)
|
||||
public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception {
|
||||
ExcelUtil<MetaHuntersInfo> util = new ExcelUtil<>(MetaHuntersInfo.class);
|
||||
List<MetaHuntersInfo> list = util.importExcel(file.getInputStream());
|
||||
Object result = metaHuntersInfoService.importData(list);
|
||||
if (result instanceof List) {
|
||||
util.exportExcel(response, (List) result, "非法狩猎人员信息表错误数据");
|
||||
return null;
|
||||
}
|
||||
return AjaxResult.success(result);
|
||||
}
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.database.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.ruoyi.database.domain.MetaPortInfo;
|
||||
import com.ruoyi.database.service.MetaPortInfoService;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
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.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 港口信息表(MetaPortInfo)Controller
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-12 09:01:15
|
||||
*/
|
||||
@Api(tags = "港口信息表")
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/base/metaPortInfo")
|
||||
public class MetaPortInfoController extends BaseController {
|
||||
|
||||
private final MetaPortInfoService metaPortInfoService;
|
||||
|
||||
@GetMapping
|
||||
@ApiOperation("查询港口信息表")
|
||||
public TableDataInfo<MetaPortInfo> list(MetaPortInfo metaPortInfo) {
|
||||
startPage();
|
||||
List<MetaPortInfo> list = metaPortInfoService.list(new QueryWrapper<>(metaPortInfo));
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("新增港口信息表")
|
||||
@Log(title = "港口信息表", businessType = BusinessType.INSERT)
|
||||
public AjaxResult insert(@RequestBody MetaPortInfo metaPortInfo) {
|
||||
return toAjax(metaPortInfoService.save(metaPortInfo));
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改港口信息表")
|
||||
@Log(title = "港口信息表", businessType = BusinessType.UPDATE)
|
||||
public AjaxResult update(@RequestBody MetaPortInfo metaPortInfo) {
|
||||
return toAjax(metaPortInfoService.updateById(metaPortInfo));
|
||||
}
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除港口信息表")
|
||||
@Log(title = "港口信息表", businessType = BusinessType.DELETE)
|
||||
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||
return toAjax(metaPortInfoService.removeByIds(idList));
|
||||
}
|
||||
|
||||
@PostMapping("/export")
|
||||
@ApiOperation("导出港口信息表")
|
||||
@Log(title = "港口信息表", businessType = BusinessType.EXPORT)
|
||||
public void export(HttpServletResponse response, MetaPortInfo metaPortInfo) {
|
||||
List<MetaPortInfo> list = metaPortInfoService.list(new QueryWrapper<>(metaPortInfo));
|
||||
ExcelUtil<MetaPortInfo> util = new ExcelUtil<>(MetaPortInfo.class);
|
||||
util.exportExcel(response, list, "港口信息表");
|
||||
}
|
||||
|
||||
@PostMapping("/importTemplate")
|
||||
@ApiOperation("导入港口信息表模板")
|
||||
@Log(title = "港口信息表", businessType = BusinessType.IMPORT)
|
||||
public void importTemplate(HttpServletResponse response) {
|
||||
ExcelUtil<MetaPortInfo> util = new ExcelUtil<>(MetaPortInfo.class);
|
||||
util.importTemplateExcel(response, "场所基础信息模板");
|
||||
}
|
||||
|
||||
@PostMapping("/importData")
|
||||
@ApiOperation("导入港口信息表")
|
||||
@Log(title = "港口信息表", businessType = BusinessType.IMPORT)
|
||||
public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception {
|
||||
ExcelUtil<MetaPortInfo> util = new ExcelUtil<>(MetaPortInfo.class);
|
||||
List<MetaPortInfo> list = util.importExcel(file.getInputStream());
|
||||
Object result = metaPortInfoService.importData(list);
|
||||
if (result instanceof List) {
|
||||
util.exportExcel(response, (List) result, "港口信息表错误数据");
|
||||
return null;
|
||||
}
|
||||
return AjaxResult.success(result);
|
||||
}
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.database.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.ruoyi.database.domain.MetaRealEstateInfo;
|
||||
import com.ruoyi.database.service.MetaRealEstateInfoService;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
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.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 实有房屋信息表(MetaRealEstateInfo)Controller
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-05 09:24:09
|
||||
*/
|
||||
@Api(tags = "实有房屋信息表")
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/base/metaRealEstateInfo")
|
||||
public class MetaRealEstateInfoController extends BaseController {
|
||||
|
||||
private final MetaRealEstateInfoService metaRealEstateInfoService;
|
||||
|
||||
@GetMapping
|
||||
@ApiOperation("查询实有房屋信息表")
|
||||
public TableDataInfo<MetaRealEstateInfo> list(MetaRealEstateInfo metaRealEstateInfo) {
|
||||
startPage();
|
||||
List<MetaRealEstateInfo> list = metaRealEstateInfoService.list(new QueryWrapper<>(metaRealEstateInfo));
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("新增实有房屋信息表")
|
||||
@Log(title = "实有房屋信息表", businessType = BusinessType.INSERT)
|
||||
public AjaxResult insert(@RequestBody MetaRealEstateInfo metaRealEstateInfo) {
|
||||
return toAjax(metaRealEstateInfoService.save(metaRealEstateInfo));
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改实有房屋信息表")
|
||||
@Log(title = "实有房屋信息表", businessType = BusinessType.UPDATE)
|
||||
public AjaxResult update(@RequestBody MetaRealEstateInfo metaRealEstateInfo) {
|
||||
return toAjax(metaRealEstateInfoService.updateById(metaRealEstateInfo));
|
||||
}
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除实有房屋信息表")
|
||||
@Log(title = "实有房屋信息表", businessType = BusinessType.DELETE)
|
||||
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||
return toAjax(metaRealEstateInfoService.removeByIds(idList));
|
||||
}
|
||||
|
||||
@PostMapping("/export")
|
||||
@ApiOperation("导出实有房屋信息表")
|
||||
@Log(title = "实有房屋信息表", businessType = BusinessType.EXPORT)
|
||||
public void export(HttpServletResponse response, MetaRealEstateInfo metaRealEstateInfo) {
|
||||
List<MetaRealEstateInfo> list = metaRealEstateInfoService.list(new QueryWrapper<>(metaRealEstateInfo));
|
||||
ExcelUtil<MetaRealEstateInfo> util = new ExcelUtil<>(MetaRealEstateInfo.class);
|
||||
util.exportExcel(response, list, "实有房屋信息表");
|
||||
}
|
||||
|
||||
@PostMapping("/importTemplate")
|
||||
@ApiOperation("导入实有房屋信息表模板")
|
||||
@Log(title = "实有房屋信息表", businessType = BusinessType.IMPORT)
|
||||
public void importTemplate(HttpServletResponse response) {
|
||||
ExcelUtil<MetaRealEstateInfo> util = new ExcelUtil<>(MetaRealEstateInfo.class);
|
||||
util.importTemplateExcel(response, "场所基础信息模板");
|
||||
}
|
||||
|
||||
@PostMapping("/importData")
|
||||
@ApiOperation("导入实有房屋信息表")
|
||||
@Log(title = "实有房屋信息表", businessType = BusinessType.IMPORT)
|
||||
public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception {
|
||||
ExcelUtil<MetaRealEstateInfo> util = new ExcelUtil<>(MetaRealEstateInfo.class);
|
||||
List<MetaRealEstateInfo> list = util.importExcel(file.getInputStream());
|
||||
Object result = metaRealEstateInfoService.importData(list);
|
||||
if (result instanceof List) {
|
||||
util.exportExcel(response, (List) result, "实有房屋信息表错误数据");
|
||||
return null;
|
||||
}
|
||||
return AjaxResult.success(result);
|
||||
}
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.database.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.ruoyi.database.domain.MetaRentalHousingInfo;
|
||||
import com.ruoyi.database.service.MetaRentalHousingInfoService;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
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.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 出租房信息表(MetaRentalHousingInfo)Controller
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-04 10:08:14
|
||||
*/
|
||||
@Api(tags = "出租房信息表")
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/base/metaRentalHousingInfo")
|
||||
public class MetaRentalHousingInfoController extends BaseController {
|
||||
|
||||
private final MetaRentalHousingInfoService metaRentalHousingInfoService;
|
||||
|
||||
@GetMapping
|
||||
@ApiOperation("查询出租房信息表")
|
||||
public TableDataInfo<MetaRentalHousingInfo> list(MetaRentalHousingInfo metaRentalHousingInfo) {
|
||||
startPage();
|
||||
List<MetaRentalHousingInfo> list = metaRentalHousingInfoService.list(new QueryWrapper<>(metaRentalHousingInfo));
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("新增出租房信息表")
|
||||
@Log(title = "出租房信息表", businessType = BusinessType.INSERT)
|
||||
public AjaxResult insert(@RequestBody MetaRentalHousingInfo metaRentalHousingInfo) {
|
||||
return toAjax(metaRentalHousingInfoService.save(metaRentalHousingInfo));
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改出租房信息表")
|
||||
@Log(title = "出租房信息表", businessType = BusinessType.UPDATE)
|
||||
public AjaxResult update(@RequestBody MetaRentalHousingInfo metaRentalHousingInfo) {
|
||||
return toAjax(metaRentalHousingInfoService.updateById(metaRentalHousingInfo));
|
||||
}
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除出租房信息表")
|
||||
@Log(title = "出租房信息表", businessType = BusinessType.DELETE)
|
||||
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||
return toAjax(metaRentalHousingInfoService.removeByIds(idList));
|
||||
}
|
||||
|
||||
@PostMapping("/export")
|
||||
@ApiOperation("导出出租房信息表")
|
||||
@Log(title = "出租房信息表", businessType = BusinessType.EXPORT)
|
||||
public void export(HttpServletResponse response, MetaRentalHousingInfo metaRentalHousingInfo) {
|
||||
List<MetaRentalHousingInfo> list = metaRentalHousingInfoService.list(new QueryWrapper<>(metaRentalHousingInfo));
|
||||
ExcelUtil<MetaRentalHousingInfo> util = new ExcelUtil<>(MetaRentalHousingInfo.class);
|
||||
util.exportExcel(response, list, "出租房信息表");
|
||||
}
|
||||
|
||||
@PostMapping("/importTemplate")
|
||||
@ApiOperation("导入出租房信息表模板")
|
||||
@Log(title = "出租房信息表", businessType = BusinessType.IMPORT)
|
||||
public void importTemplate(HttpServletResponse response) {
|
||||
ExcelUtil<MetaRentalHousingInfo> util = new ExcelUtil<>(MetaRentalHousingInfo.class);
|
||||
util.importTemplateExcel(response, "场所基础信息模板");
|
||||
}
|
||||
|
||||
@PostMapping("/importData")
|
||||
@ApiOperation("导入出租房信息表")
|
||||
@Log(title = "出租房信息表", businessType = BusinessType.IMPORT)
|
||||
public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception {
|
||||
ExcelUtil<MetaRentalHousingInfo> util = new ExcelUtil<>(MetaRentalHousingInfo.class);
|
||||
List<MetaRentalHousingInfo> list = util.importExcel(file.getInputStream());
|
||||
Object result = metaRentalHousingInfoService.importData(list);
|
||||
if (result instanceof List) {
|
||||
util.exportExcel(response, (List) result, "出租房信息表错误数据");
|
||||
return null;
|
||||
}
|
||||
return AjaxResult.success(result);
|
||||
}
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.database.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.ruoyi.database.domain.MetaWharfInfo;
|
||||
import com.ruoyi.database.service.MetaWharfInfoService;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
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.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 码头信息表(MetaWharfInfo)Controller
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-12 09:01:15
|
||||
*/
|
||||
@Api(tags = "码头信息表")
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/base/metaWharfInfo")
|
||||
public class MetaWharfInfoController extends BaseController {
|
||||
|
||||
private final MetaWharfInfoService metaWharfInfoService;
|
||||
|
||||
@GetMapping
|
||||
@ApiOperation("查询码头信息表")
|
||||
public TableDataInfo<MetaWharfInfo> list(MetaWharfInfo metaWharfInfo) {
|
||||
startPage();
|
||||
List<MetaWharfInfo> list = metaWharfInfoService.list(new QueryWrapper<>(metaWharfInfo));
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("新增码头信息表")
|
||||
@Log(title = "码头信息表", businessType = BusinessType.INSERT)
|
||||
public AjaxResult insert(@RequestBody MetaWharfInfo metaWharfInfo) {
|
||||
return toAjax(metaWharfInfoService.save(metaWharfInfo));
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改码头信息表")
|
||||
@Log(title = "码头信息表", businessType = BusinessType.UPDATE)
|
||||
public AjaxResult update(@RequestBody MetaWharfInfo metaWharfInfo) {
|
||||
return toAjax(metaWharfInfoService.updateById(metaWharfInfo));
|
||||
}
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除码头信息表")
|
||||
@Log(title = "码头信息表", businessType = BusinessType.DELETE)
|
||||
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||
return toAjax(metaWharfInfoService.removeByIds(idList));
|
||||
}
|
||||
|
||||
@PostMapping("/export")
|
||||
@ApiOperation("导出码头信息表")
|
||||
@Log(title = "码头信息表", businessType = BusinessType.EXPORT)
|
||||
public void export(HttpServletResponse response, MetaWharfInfo metaWharfInfo) {
|
||||
List<MetaWharfInfo> list = metaWharfInfoService.list(new QueryWrapper<>(metaWharfInfo));
|
||||
ExcelUtil<MetaWharfInfo> util = new ExcelUtil<>(MetaWharfInfo.class);
|
||||
util.exportExcel(response, list, "码头信息表");
|
||||
}
|
||||
|
||||
@PostMapping("/importTemplate")
|
||||
@ApiOperation("导入码头信息表模板")
|
||||
@Log(title = "码头信息表", businessType = BusinessType.IMPORT)
|
||||
public void importTemplate(HttpServletResponse response) {
|
||||
ExcelUtil<MetaWharfInfo> util = new ExcelUtil<>(MetaWharfInfo.class);
|
||||
util.importTemplateExcel(response, "场所基础信息模板");
|
||||
}
|
||||
|
||||
@PostMapping("/importData")
|
||||
@ApiOperation("导入码头信息表")
|
||||
@Log(title = "码头信息表", businessType = BusinessType.IMPORT)
|
||||
public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception {
|
||||
ExcelUtil<MetaWharfInfo> util = new ExcelUtil<>(MetaWharfInfo.class);
|
||||
List<MetaWharfInfo> list = util.importExcel(file.getInputStream());
|
||||
Object result = metaWharfInfoService.importData(list);
|
||||
if (result instanceof List) {
|
||||
util.exportExcel(response, (List) result, "码头信息表错误数据");
|
||||
return null;
|
||||
}
|
||||
return AjaxResult.success(result);
|
||||
}
|
||||
}
|
@ -0,0 +1,106 @@
|
||||
package com.ruoyi.database.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.ruoyi.database.domain.MetaHuntersInfo;
|
||||
import com.ruoyi.database.domain.TransitHuntersUserRecord;
|
||||
import com.ruoyi.database.service.TransitHuntersUserRecordService;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
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.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 非法狩猎人员人脸记录表(TransitHuntersUserRecord)Controller
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-08 22:40:47
|
||||
*/
|
||||
@Api(tags = "非法狩猎人员人脸记录表")
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/base/transitHuntersUserRecord")
|
||||
public class TransitHuntersUserRecordController extends BaseController {
|
||||
|
||||
private final TransitHuntersUserRecordService transitHuntersUserRecordService;
|
||||
|
||||
@GetMapping
|
||||
@ApiOperation("查询非法狩猎人员人脸记录表")
|
||||
public TableDataInfo<TransitHuntersUserRecord> list(TransitHuntersUserRecord transitHuntersUserRecord) {
|
||||
startPage();
|
||||
|
||||
List<TransitHuntersUserRecord> list = new ArrayList<>();
|
||||
if(transitHuntersUserRecord.getFirstTime() != null && transitHuntersUserRecord.getEndTime() != null){
|
||||
list = transitHuntersUserRecordService.list(new QueryWrapper<>(transitHuntersUserRecord)
|
||||
.between("partition_field", transitHuntersUserRecord.getFirstTime(), transitHuntersUserRecord.getEndTime())
|
||||
);
|
||||
}else {
|
||||
list = transitHuntersUserRecordService.list(new QueryWrapper<>(transitHuntersUserRecord));
|
||||
}
|
||||
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("新增非法狩猎人员人脸记录表")
|
||||
@Log(title = "非法狩猎人员人脸记录表", businessType = BusinessType.INSERT)
|
||||
public AjaxResult insert(@RequestBody TransitHuntersUserRecord transitHuntersUserRecord) {
|
||||
return toAjax(transitHuntersUserRecordService.save(transitHuntersUserRecord));
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改非法狩猎人员人脸记录表")
|
||||
@Log(title = "非法狩猎人员人脸记录表", businessType = BusinessType.UPDATE)
|
||||
public AjaxResult update(@RequestBody TransitHuntersUserRecord transitHuntersUserRecord) {
|
||||
return toAjax(transitHuntersUserRecordService.updateById(transitHuntersUserRecord));
|
||||
}
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除非法狩猎人员人脸记录表")
|
||||
@Log(title = "非法狩猎人员人脸记录表", businessType = BusinessType.DELETE)
|
||||
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||
return toAjax(transitHuntersUserRecordService.removeByIds(idList));
|
||||
}
|
||||
|
||||
@PostMapping("/export")
|
||||
@ApiOperation("导出非法狩猎人员人脸记录表")
|
||||
@Log(title = "非法狩猎人员人脸记录表", businessType = BusinessType.EXPORT)
|
||||
public void export(HttpServletResponse response, TransitHuntersUserRecord transitHuntersUserRecord) {
|
||||
List<TransitHuntersUserRecord> list = transitHuntersUserRecordService.list(new QueryWrapper<>(transitHuntersUserRecord));
|
||||
ExcelUtil<TransitHuntersUserRecord> util = new ExcelUtil<>(TransitHuntersUserRecord.class);
|
||||
util.exportExcel(response, list, "非法狩猎人员人脸记录表");
|
||||
}
|
||||
|
||||
@PostMapping("/importTemplate")
|
||||
@ApiOperation("导入非法狩猎人员人脸记录表模板")
|
||||
@Log(title = "非法狩猎人员人脸记录表", businessType = BusinessType.IMPORT)
|
||||
public void importTemplate(HttpServletResponse response) {
|
||||
ExcelUtil<TransitHuntersUserRecord> util = new ExcelUtil<>(TransitHuntersUserRecord.class);
|
||||
util.importTemplateExcel(response, "场所基础信息模板");
|
||||
}
|
||||
|
||||
@PostMapping("/importData")
|
||||
@ApiOperation("导入非法狩猎人员人脸记录表")
|
||||
@Log(title = "非法狩猎人员人脸记录表", businessType = BusinessType.IMPORT)
|
||||
public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception {
|
||||
ExcelUtil<TransitHuntersUserRecord> util = new ExcelUtil<>(TransitHuntersUserRecord.class);
|
||||
List<TransitHuntersUserRecord> list = util.importExcel(file.getInputStream());
|
||||
Object result = transitHuntersUserRecordService.importData(list);
|
||||
if (result instanceof List) {
|
||||
util.exportExcel(response, (List) result, "非法狩猎人员人脸记录表错误数据");
|
||||
return null;
|
||||
}
|
||||
return AjaxResult.success(result);
|
||||
}
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
package com.ruoyi.database.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.ruoyi.database.domain.TransitHuntersUserRecord;
|
||||
import com.ruoyi.database.domain.TransitHuntersVehicleRecord;
|
||||
import com.ruoyi.database.service.TransitHuntersVehicleRecordService;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
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.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 非法狩猎人员车辆记录表(TransitHuntersVehicleRecord)Controller
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-08 22:40:46
|
||||
*/
|
||||
@Api(tags = "非法狩猎人员车辆记录表")
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/base/transitHuntersVehicleRecord")
|
||||
public class TransitHuntersVehicleRecordController extends BaseController {
|
||||
|
||||
private final TransitHuntersVehicleRecordService transitHuntersVehicleRecordService;
|
||||
|
||||
@GetMapping
|
||||
@ApiOperation("查询非法狩猎人员车辆记录表")
|
||||
public TableDataInfo<TransitHuntersVehicleRecord> list(TransitHuntersVehicleRecord transitHuntersVehicleRecord) {
|
||||
startPage();
|
||||
// List<TransitHuntersVehicleRecord> list = transitHuntersVehicleRecordService.list(new QueryWrapper<>(transitHuntersVehicleRecord));
|
||||
|
||||
List<TransitHuntersVehicleRecord> list = new ArrayList<>();
|
||||
if(transitHuntersVehicleRecord.getFirstTime() != null && transitHuntersVehicleRecord.getEndTime() != null){
|
||||
list = transitHuntersVehicleRecordService.list(new QueryWrapper<>(transitHuntersVehicleRecord)
|
||||
.between("partition_field", transitHuntersVehicleRecord.getFirstTime(), transitHuntersVehicleRecord.getEndTime())
|
||||
);
|
||||
}else {
|
||||
list = transitHuntersVehicleRecordService.list(new QueryWrapper<>(transitHuntersVehicleRecord));
|
||||
}
|
||||
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("新增非法狩猎人员车辆记录表")
|
||||
@Log(title = "非法狩猎人员车辆记录表", businessType = BusinessType.INSERT)
|
||||
public AjaxResult insert(@RequestBody TransitHuntersVehicleRecord transitHuntersVehicleRecord) {
|
||||
return toAjax(transitHuntersVehicleRecordService.save(transitHuntersVehicleRecord));
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改非法狩猎人员车辆记录表")
|
||||
@Log(title = "非法狩猎人员车辆记录表", businessType = BusinessType.UPDATE)
|
||||
public AjaxResult update(@RequestBody TransitHuntersVehicleRecord transitHuntersVehicleRecord) {
|
||||
return toAjax(transitHuntersVehicleRecordService.updateById(transitHuntersVehicleRecord));
|
||||
}
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除非法狩猎人员车辆记录表")
|
||||
@Log(title = "非法狩猎人员车辆记录表", businessType = BusinessType.DELETE)
|
||||
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||
return toAjax(transitHuntersVehicleRecordService.removeByIds(idList));
|
||||
}
|
||||
|
||||
@PostMapping("/export")
|
||||
@ApiOperation("导出非法狩猎人员车辆记录表")
|
||||
@Log(title = "非法狩猎人员车辆记录表", businessType = BusinessType.EXPORT)
|
||||
public void export(HttpServletResponse response, TransitHuntersVehicleRecord transitHuntersVehicleRecord) {
|
||||
List<TransitHuntersVehicleRecord> list = transitHuntersVehicleRecordService.list(new QueryWrapper<>(transitHuntersVehicleRecord));
|
||||
ExcelUtil<TransitHuntersVehicleRecord> util = new ExcelUtil<>(TransitHuntersVehicleRecord.class);
|
||||
util.exportExcel(response, list, "非法狩猎人员车辆记录表");
|
||||
}
|
||||
|
||||
@PostMapping("/importTemplate")
|
||||
@ApiOperation("导入非法狩猎人员车辆记录表模板")
|
||||
@Log(title = "非法狩猎人员车辆记录表", businessType = BusinessType.IMPORT)
|
||||
public void importTemplate(HttpServletResponse response) {
|
||||
ExcelUtil<TransitHuntersVehicleRecord> util = new ExcelUtil<>(TransitHuntersVehicleRecord.class);
|
||||
util.importTemplateExcel(response, "场所基础信息模板");
|
||||
}
|
||||
|
||||
@PostMapping("/importData")
|
||||
@ApiOperation("导入非法狩猎人员车辆记录表")
|
||||
@Log(title = "非法狩猎人员车辆记录表", businessType = BusinessType.IMPORT)
|
||||
public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception {
|
||||
ExcelUtil<TransitHuntersVehicleRecord> util = new ExcelUtil<>(TransitHuntersVehicleRecord.class);
|
||||
List<TransitHuntersVehicleRecord> list = util.importExcel(file.getInputStream());
|
||||
Object result = transitHuntersVehicleRecordService.importData(list);
|
||||
if (result instanceof List) {
|
||||
util.exportExcel(response, (List) result, "非法狩猎人员车辆记录表错误数据");
|
||||
return null;
|
||||
}
|
||||
return AjaxResult.success(result);
|
||||
}
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.database.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.ruoyi.database.domain.TransitImpUserRecord;
|
||||
import com.ruoyi.database.service.TransitImpUserRecordService;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
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.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 涉稳列管人员人脸抓拍记录表(TransitImpUserRecord)Controller
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-08 22:40:45
|
||||
*/
|
||||
@Api(tags = "涉稳列管人员人脸抓拍记录表")
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/base/transitImpUserRecord")
|
||||
public class TransitImpUserRecordController extends BaseController {
|
||||
|
||||
private final TransitImpUserRecordService transitImpUserRecordService;
|
||||
|
||||
@GetMapping
|
||||
@ApiOperation("查询涉稳列管人员人脸抓拍记录表")
|
||||
public TableDataInfo<TransitImpUserRecord> list(TransitImpUserRecord transitImpUserRecord) {
|
||||
startPage();
|
||||
List<TransitImpUserRecord> list = transitImpUserRecordService.list(new QueryWrapper<>(transitImpUserRecord));
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("新增涉稳列管人员人脸抓拍记录表")
|
||||
@Log(title = "涉稳列管人员人脸抓拍记录表", businessType = BusinessType.INSERT)
|
||||
public AjaxResult insert(@RequestBody TransitImpUserRecord transitImpUserRecord) {
|
||||
return toAjax(transitImpUserRecordService.save(transitImpUserRecord));
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改涉稳列管人员人脸抓拍记录表")
|
||||
@Log(title = "涉稳列管人员人脸抓拍记录表", businessType = BusinessType.UPDATE)
|
||||
public AjaxResult update(@RequestBody TransitImpUserRecord transitImpUserRecord) {
|
||||
return toAjax(transitImpUserRecordService.updateById(transitImpUserRecord));
|
||||
}
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除涉稳列管人员人脸抓拍记录表")
|
||||
@Log(title = "涉稳列管人员人脸抓拍记录表", businessType = BusinessType.DELETE)
|
||||
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||
return toAjax(transitImpUserRecordService.removeByIds(idList));
|
||||
}
|
||||
|
||||
@PostMapping("/export")
|
||||
@ApiOperation("导出涉稳列管人员人脸抓拍记录表")
|
||||
@Log(title = "涉稳列管人员人脸抓拍记录表", businessType = BusinessType.EXPORT)
|
||||
public void export(HttpServletResponse response, TransitImpUserRecord transitImpUserRecord) {
|
||||
List<TransitImpUserRecord> list = transitImpUserRecordService.list(new QueryWrapper<>(transitImpUserRecord));
|
||||
ExcelUtil<TransitImpUserRecord> util = new ExcelUtil<>(TransitImpUserRecord.class);
|
||||
util.exportExcel(response, list, "涉稳列管人员人脸抓拍记录表");
|
||||
}
|
||||
|
||||
@PostMapping("/importTemplate")
|
||||
@ApiOperation("导入涉稳列管人员人脸抓拍记录表模板")
|
||||
@Log(title = "涉稳列管人员人脸抓拍记录表", businessType = BusinessType.IMPORT)
|
||||
public void importTemplate(HttpServletResponse response) {
|
||||
ExcelUtil<TransitImpUserRecord> util = new ExcelUtil<>(TransitImpUserRecord.class);
|
||||
util.importTemplateExcel(response, "场所基础信息模板");
|
||||
}
|
||||
|
||||
@PostMapping("/importData")
|
||||
@ApiOperation("导入涉稳列管人员人脸抓拍记录表")
|
||||
@Log(title = "涉稳列管人员人脸抓拍记录表", businessType = BusinessType.IMPORT)
|
||||
public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception {
|
||||
ExcelUtil<TransitImpUserRecord> util = new ExcelUtil<>(TransitImpUserRecord.class);
|
||||
List<TransitImpUserRecord> list = util.importExcel(file.getInputStream());
|
||||
Object result = transitImpUserRecordService.importData(list);
|
||||
if (result instanceof List) {
|
||||
util.exportExcel(response, (List) result, "涉稳列管人员人脸抓拍记录表错误数据");
|
||||
return null;
|
||||
}
|
||||
return AjaxResult.success(result);
|
||||
}
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.database.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.ruoyi.database.domain.TransitImpVehicleRecord;
|
||||
import com.ruoyi.database.service.TransitImpVehicleRecordService;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
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.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 重点人车辆记录表(TransitImpVehicleRecord)Controller
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-04 14:25:46
|
||||
*/
|
||||
@Api(tags = "重点人车辆记录表")
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/base/transitImpVehicleRecord")
|
||||
public class TransitImpVehicleRecordController extends BaseController {
|
||||
|
||||
private final TransitImpVehicleRecordService transitImpVehicleRecordService;
|
||||
|
||||
@GetMapping
|
||||
@ApiOperation("查询重点人车辆记录表")
|
||||
public TableDataInfo<TransitImpVehicleRecord> list(TransitImpVehicleRecord transitImpVehicleRecord) {
|
||||
startPage();
|
||||
List<TransitImpVehicleRecord> list = transitImpVehicleRecordService.list(new QueryWrapper<>(transitImpVehicleRecord));
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("新增重点人车辆记录表")
|
||||
@Log(title = "重点人车辆记录表", businessType = BusinessType.INSERT)
|
||||
public AjaxResult insert(@RequestBody TransitImpVehicleRecord transitImpVehicleRecord) {
|
||||
return toAjax(transitImpVehicleRecordService.save(transitImpVehicleRecord));
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改重点人车辆记录表")
|
||||
@Log(title = "重点人车辆记录表", businessType = BusinessType.UPDATE)
|
||||
public AjaxResult update(@RequestBody TransitImpVehicleRecord transitImpVehicleRecord) {
|
||||
return toAjax(transitImpVehicleRecordService.updateById(transitImpVehicleRecord));
|
||||
}
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除重点人车辆记录表")
|
||||
@Log(title = "重点人车辆记录表", businessType = BusinessType.DELETE)
|
||||
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||
return toAjax(transitImpVehicleRecordService.removeByIds(idList));
|
||||
}
|
||||
|
||||
@PostMapping("/export")
|
||||
@ApiOperation("导出重点人车辆记录表")
|
||||
@Log(title = "重点人车辆记录表", businessType = BusinessType.EXPORT)
|
||||
public void export(HttpServletResponse response, TransitImpVehicleRecord transitImpVehicleRecord) {
|
||||
List<TransitImpVehicleRecord> list = transitImpVehicleRecordService.list(new QueryWrapper<>(transitImpVehicleRecord));
|
||||
ExcelUtil<TransitImpVehicleRecord> util = new ExcelUtil<>(TransitImpVehicleRecord.class);
|
||||
util.exportExcel(response, list, "重点人车辆记录表");
|
||||
}
|
||||
|
||||
@PostMapping("/importTemplate")
|
||||
@ApiOperation("导入重点人车辆记录表模板")
|
||||
@Log(title = "重点人车辆记录表", businessType = BusinessType.IMPORT)
|
||||
public void importTemplate(HttpServletResponse response) {
|
||||
ExcelUtil<TransitImpVehicleRecord> util = new ExcelUtil<>(TransitImpVehicleRecord.class);
|
||||
util.importTemplateExcel(response, "场所基础信息模板");
|
||||
}
|
||||
|
||||
@PostMapping("/importData")
|
||||
@ApiOperation("导入重点人车辆记录表")
|
||||
@Log(title = "重点人车辆记录表", businessType = BusinessType.IMPORT)
|
||||
public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception {
|
||||
ExcelUtil<TransitImpVehicleRecord> util = new ExcelUtil<>(TransitImpVehicleRecord.class);
|
||||
List<TransitImpVehicleRecord> list = util.importExcel(file.getInputStream());
|
||||
Object result = transitImpVehicleRecordService.importData(list);
|
||||
if (result instanceof List) {
|
||||
util.exportExcel(response, (List) result, "重点人车辆记录表错误数据");
|
||||
return null;
|
||||
}
|
||||
return AjaxResult.success(result);
|
||||
}
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.database.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.ruoyi.database.domain.TransitUserRecord;
|
||||
import com.ruoyi.database.service.TransitUserRecordService;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
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.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 人脸记录表(TransitUserRecord)Controller
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-04 14:25:44
|
||||
*/
|
||||
@Api(tags = "人脸记录表")
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/base/transitUserRecord")
|
||||
public class TransitUserRecordController extends BaseController {
|
||||
|
||||
private final TransitUserRecordService transitUserRecordService;
|
||||
|
||||
@GetMapping
|
||||
@ApiOperation("查询人脸记录表")
|
||||
public TableDataInfo<TransitUserRecord> list(TransitUserRecord transitUserRecord) {
|
||||
startPage();
|
||||
List<TransitUserRecord> list = transitUserRecordService.list(new QueryWrapper<>(transitUserRecord));
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("新增人脸记录表")
|
||||
@Log(title = "人脸记录表", businessType = BusinessType.INSERT)
|
||||
public AjaxResult insert(@RequestBody TransitUserRecord transitUserRecord) {
|
||||
return toAjax(transitUserRecordService.save(transitUserRecord));
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改人脸记录表")
|
||||
@Log(title = "人脸记录表", businessType = BusinessType.UPDATE)
|
||||
public AjaxResult update(@RequestBody TransitUserRecord transitUserRecord) {
|
||||
return toAjax(transitUserRecordService.updateById(transitUserRecord));
|
||||
}
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除人脸记录表")
|
||||
@Log(title = "人脸记录表", businessType = BusinessType.DELETE)
|
||||
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||
return toAjax(transitUserRecordService.removeByIds(idList));
|
||||
}
|
||||
|
||||
@PostMapping("/export")
|
||||
@ApiOperation("导出人脸记录表")
|
||||
@Log(title = "人脸记录表", businessType = BusinessType.EXPORT)
|
||||
public void export(HttpServletResponse response, TransitUserRecord transitUserRecord) {
|
||||
List<TransitUserRecord> list = transitUserRecordService.list(new QueryWrapper<>(transitUserRecord));
|
||||
ExcelUtil<TransitUserRecord> util = new ExcelUtil<>(TransitUserRecord.class);
|
||||
util.exportExcel(response, list, "人脸记录表");
|
||||
}
|
||||
|
||||
@PostMapping("/importTemplate")
|
||||
@ApiOperation("导入人脸记录表模板")
|
||||
@Log(title = "人脸记录表", businessType = BusinessType.IMPORT)
|
||||
public void importTemplate(HttpServletResponse response) {
|
||||
ExcelUtil<TransitUserRecord> util = new ExcelUtil<>(TransitUserRecord.class);
|
||||
util.importTemplateExcel(response, "场所基础信息模板");
|
||||
}
|
||||
|
||||
@PostMapping("/importData")
|
||||
@ApiOperation("导入人脸记录表")
|
||||
@Log(title = "人脸记录表", businessType = BusinessType.IMPORT)
|
||||
public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception {
|
||||
ExcelUtil<TransitUserRecord> util = new ExcelUtil<>(TransitUserRecord.class);
|
||||
List<TransitUserRecord> list = util.importExcel(file.getInputStream());
|
||||
Object result = transitUserRecordService.importData(list);
|
||||
if (result instanceof List) {
|
||||
util.exportExcel(response, (List) result, "人脸记录表错误数据");
|
||||
return null;
|
||||
}
|
||||
return AjaxResult.success(result);
|
||||
}
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.database.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.ruoyi.database.domain.TransitVehicleRecord;
|
||||
import com.ruoyi.database.service.TransitVehicleRecordService;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
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.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 车辆记录表(TransitVehicleRecord)Controller
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-04 14:25:45
|
||||
*/
|
||||
@Api(tags = "车辆记录表")
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/base/transitVehicleRecord")
|
||||
public class TransitVehicleRecordController extends BaseController {
|
||||
|
||||
private final TransitVehicleRecordService transitVehicleRecordService;
|
||||
|
||||
@GetMapping
|
||||
@ApiOperation("查询车辆记录表")
|
||||
public TableDataInfo<TransitVehicleRecord> list(TransitVehicleRecord transitVehicleRecord) {
|
||||
startPage();
|
||||
List<TransitVehicleRecord> list = transitVehicleRecordService.list(new QueryWrapper<>(transitVehicleRecord));
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("新增车辆记录表")
|
||||
@Log(title = "车辆记录表", businessType = BusinessType.INSERT)
|
||||
public AjaxResult insert(@RequestBody TransitVehicleRecord transitVehicleRecord) {
|
||||
return toAjax(transitVehicleRecordService.save(transitVehicleRecord));
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改车辆记录表")
|
||||
@Log(title = "车辆记录表", businessType = BusinessType.UPDATE)
|
||||
public AjaxResult update(@RequestBody TransitVehicleRecord transitVehicleRecord) {
|
||||
return toAjax(transitVehicleRecordService.updateById(transitVehicleRecord));
|
||||
}
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除车辆记录表")
|
||||
@Log(title = "车辆记录表", businessType = BusinessType.DELETE)
|
||||
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
|
||||
return toAjax(transitVehicleRecordService.removeByIds(idList));
|
||||
}
|
||||
|
||||
@PostMapping("/export")
|
||||
@ApiOperation("导出车辆记录表")
|
||||
@Log(title = "车辆记录表", businessType = BusinessType.EXPORT)
|
||||
public void export(HttpServletResponse response, TransitVehicleRecord transitVehicleRecord) {
|
||||
List<TransitVehicleRecord> list = transitVehicleRecordService.list(new QueryWrapper<>(transitVehicleRecord));
|
||||
ExcelUtil<TransitVehicleRecord> util = new ExcelUtil<>(TransitVehicleRecord.class);
|
||||
util.exportExcel(response, list, "车辆记录表");
|
||||
}
|
||||
|
||||
@PostMapping("/importTemplate")
|
||||
@ApiOperation("导入车辆记录表模板")
|
||||
@Log(title = "车辆记录表", businessType = BusinessType.IMPORT)
|
||||
public void importTemplate(HttpServletResponse response) {
|
||||
ExcelUtil<TransitVehicleRecord> util = new ExcelUtil<>(TransitVehicleRecord.class);
|
||||
util.importTemplateExcel(response, "场所基础信息模板");
|
||||
}
|
||||
|
||||
@PostMapping("/importData")
|
||||
@ApiOperation("导入车辆记录表")
|
||||
@Log(title = "车辆记录表", businessType = BusinessType.IMPORT)
|
||||
public AjaxResult importData(HttpServletResponse response, MultipartFile file) throws Exception {
|
||||
ExcelUtil<TransitVehicleRecord> util = new ExcelUtil<>(TransitVehicleRecord.class);
|
||||
List<TransitVehicleRecord> list = util.importExcel(file.getInputStream());
|
||||
Object result = transitVehicleRecordService.importData(list);
|
||||
if (result instanceof List) {
|
||||
util.exportExcel(response, (List) result, "车辆记录表错误数据");
|
||||
return null;
|
||||
}
|
||||
return AjaxResult.success(result);
|
||||
}
|
||||
}
|
@ -0,0 +1,127 @@
|
||||
package com.ruoyi.database.domain;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 非法狩猎人员信息表(MetaHuntersInfo)Domain
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-09 17:22:06
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName(value = "meta_hunters_info")
|
||||
@ApiModel(value = "MetaHuntersInfo", description = "非法狩猎人员信息表")
|
||||
public class MetaHuntersInfo extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty("主键")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
*/
|
||||
@ApiModelProperty("姓名")
|
||||
@Excel(name = "姓名")
|
||||
@TableField(condition = SqlCondition.LIKE_RIGHT)
|
||||
private String hunterName;
|
||||
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
@ApiModelProperty("性别")
|
||||
@Excel(name = "性别")
|
||||
private Integer sex;
|
||||
@TableField(exist = false)
|
||||
private String sexCn;
|
||||
|
||||
/**
|
||||
* 联系方式
|
||||
*/
|
||||
@ApiModelProperty("联系方式")
|
||||
@Excel(name = "联系方式")
|
||||
@TableField(condition = SqlCondition.LIKE_RIGHT)
|
||||
private String phone;
|
||||
|
||||
/**
|
||||
* 证件号码
|
||||
*/
|
||||
@ApiModelProperty("证件号码")
|
||||
@Excel(name = "证件号码")
|
||||
@TableField(condition = SqlCondition.LIKE_RIGHT)
|
||||
private String idCard;
|
||||
|
||||
/**
|
||||
* 户籍所属辖区
|
||||
*/
|
||||
@ApiModelProperty("户籍所属辖区")
|
||||
@Excel(name = "户籍所属辖区")
|
||||
private String houseHoldRegister;
|
||||
|
||||
/**
|
||||
* 户籍地址详情
|
||||
*/
|
||||
@ApiModelProperty("户籍地址详情")
|
||||
@Excel(name = "户籍地址详情")
|
||||
@TableField(condition = SqlCondition.LIKE_RIGHT)
|
||||
private String houseHoldAddress;
|
||||
|
||||
/**
|
||||
* 现住地详址
|
||||
*/
|
||||
@ApiModelProperty("现住地详址")
|
||||
@Excel(name = "现住地详址")
|
||||
@TableField(condition = SqlCondition.LIKE_RIGHT)
|
||||
private String habitationAddress;
|
||||
|
||||
/**
|
||||
* 涉案情况
|
||||
*/
|
||||
@ApiModelProperty("涉案情况")
|
||||
@Excel(name = "涉案情况")
|
||||
private String caseSituation;
|
||||
|
||||
/**
|
||||
* 案件处理情况
|
||||
*/
|
||||
@ApiModelProperty("案件处理情况")
|
||||
@Excel(name = "案件处理情况")
|
||||
private String caseHandlingSituation;
|
||||
|
||||
/**
|
||||
* 管控状态
|
||||
*/
|
||||
@ApiModelProperty("管控状态")
|
||||
@Excel(name = "管控状态")
|
||||
private Integer controlStatus;
|
||||
@TableField(exist = false)
|
||||
private String controlStatusCn;
|
||||
|
||||
/**
|
||||
* 数据有效性
|
||||
*/
|
||||
@ApiModelProperty("数据有效性")
|
||||
@Excel(name = "数据有效性")
|
||||
private Integer dataStatus;
|
||||
@TableField(exist = false)
|
||||
private String dataStatusCn;
|
||||
|
||||
/**
|
||||
* 登记时间
|
||||
*/
|
||||
@ApiModelProperty("登记时间")
|
||||
@Excel(name = "登记时间")
|
||||
private String registrationTime;
|
||||
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.ruoyi.database.domain;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 港口信息表(MetaPortInfo)Domain
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-12 09:01:16
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName(value = "meta_port_info")
|
||||
@ApiModel(value = "MetaPortInfo", description = "港口信息表")
|
||||
public class MetaPortInfo extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty("主键")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 港口编号
|
||||
*/
|
||||
@ApiModelProperty("港口编号")
|
||||
@Excel(name = "港口编号")
|
||||
private String portCode;
|
||||
|
||||
/**
|
||||
* 港口名称
|
||||
*/
|
||||
@ApiModelProperty("港口名称")
|
||||
@Excel(name = "港口名称")
|
||||
private String portName;
|
||||
|
||||
/**
|
||||
* 港口地址
|
||||
*/
|
||||
@ApiModelProperty("港口地址")
|
||||
@Excel(name = "港口地址")
|
||||
private String portAddress;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
@ApiModelProperty("经度")
|
||||
@Excel(name = "经度")
|
||||
private Double longitude;
|
||||
|
||||
/**
|
||||
* 纬度
|
||||
*/
|
||||
@ApiModelProperty("纬度")
|
||||
@Excel(name = "纬度")
|
||||
private Double latitude;
|
||||
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.ruoyi.database.domain;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 实有房屋信息表(MetaRealEstateInfo)Domain
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-06 15:01:30
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName(value = "meta_real_estate_info")
|
||||
@ApiModel(value = "MetaRealEstateInfo", description = "实有房屋信息表")
|
||||
public class MetaRealEstateInfo extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty("主键")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 房屋ID
|
||||
*/
|
||||
@ApiModelProperty("房屋ID")
|
||||
@Excel(name = "房屋ID")
|
||||
private String homeId;
|
||||
|
||||
/**
|
||||
* 派出所代码
|
||||
*/
|
||||
@ApiModelProperty("派出所代码")
|
||||
@Excel(name = "派出所代码")
|
||||
private String policeStationCode;
|
||||
|
||||
/**
|
||||
* 警务区编码
|
||||
*/
|
||||
@ApiModelProperty("警务区编码")
|
||||
@Excel(name = "警务区编码")
|
||||
private String policeDistrictCode;
|
||||
|
||||
/**
|
||||
* 实有房屋地址简称
|
||||
*/
|
||||
@ApiModelProperty("实有房屋地址简称")
|
||||
@Excel(name = "实有房屋地址简称")
|
||||
private String realEstateBriefAddress;
|
||||
|
||||
/**
|
||||
* 实有房屋地址
|
||||
*/
|
||||
@ApiModelProperty("实有房屋地址")
|
||||
@Excel(name = "实有房屋地址")
|
||||
private String realEstateAddress;
|
||||
|
||||
/**
|
||||
* 单元名称
|
||||
*/
|
||||
@ApiModelProperty("单元名称")
|
||||
@Excel(name = "单元名称")
|
||||
private String unitName;
|
||||
|
||||
/**
|
||||
* 楼栋名称
|
||||
*/
|
||||
@ApiModelProperty("楼栋名称")
|
||||
@Excel(name = "楼栋名称")
|
||||
private String buildingName;
|
||||
|
||||
/**
|
||||
* 房屋名称
|
||||
*/
|
||||
@ApiModelProperty("房屋名称")
|
||||
@Excel(name = "房屋名称")
|
||||
private String homeName;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
@ApiModelProperty("经度")
|
||||
@Excel(name = "经度")
|
||||
private Double longitude;
|
||||
|
||||
/**
|
||||
* 纬度
|
||||
*/
|
||||
@ApiModelProperty("纬度")
|
||||
@Excel(name = "纬度")
|
||||
private Double latitude;
|
||||
|
||||
}
|
@ -0,0 +1,225 @@
|
||||
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 com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 出租房信息表(MetaRentalHousingInfo)Domain
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-04 10:08:15
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName(value = "meta_rental_housing_info")
|
||||
@ApiModel(value = "MetaRentalHousingInfo", description = "出租房信息表")
|
||||
public class MetaRentalHousingInfo extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty("主键")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 出租房屋地址
|
||||
*/
|
||||
@ApiModelProperty("出租房屋地址")
|
||||
@Excel(name = "出租房屋地址")
|
||||
private String rentalHousingAddress;
|
||||
|
||||
/**
|
||||
* 房主
|
||||
*/
|
||||
@ApiModelProperty("房主")
|
||||
@Excel(name = "房主")
|
||||
private String homeowner;
|
||||
|
||||
/**
|
||||
* 房主身份证
|
||||
*/
|
||||
@ApiModelProperty("房主身份证")
|
||||
@Excel(name = "房主身份证")
|
||||
private String homeownerIdCard;
|
||||
|
||||
/**
|
||||
* 房主户籍地区县
|
||||
*/
|
||||
@ApiModelProperty("房主户籍地区县")
|
||||
@Excel(name = "房主户籍地区县")
|
||||
private String homeownerHouseHoldRegister;
|
||||
|
||||
/**
|
||||
* 户籍地址详情
|
||||
*/
|
||||
@ApiModelProperty("户籍地址详情")
|
||||
@Excel(name = "户籍地址详情")
|
||||
private String homeownerHouseHoldAddress;
|
||||
|
||||
/**
|
||||
* 房主现居住地区县
|
||||
*/
|
||||
@ApiModelProperty("房主现居住地区县")
|
||||
@Excel(name = "房主现居住地区县")
|
||||
private String homeownerHabitationRegister;
|
||||
|
||||
/**
|
||||
* 房主现居住地
|
||||
*/
|
||||
@ApiModelProperty("房主现居住地")
|
||||
@Excel(name = "房主现居住地")
|
||||
private String homeownerHabitationAddress;
|
||||
|
||||
/**
|
||||
* 房主联系方式
|
||||
*/
|
||||
@ApiModelProperty("房主联系方式")
|
||||
@Excel(name = "房主联系方式")
|
||||
private String homeownerPhone;
|
||||
|
||||
/**
|
||||
* 状态标识:0有效,1无效
|
||||
*/
|
||||
@ApiModelProperty("状态标识:0有效,1无效")
|
||||
@Excel(name = "状态标识:0有效,1无效")
|
||||
private Integer stateFlag;
|
||||
@TableField(exist = false)
|
||||
private String stateFlagCn;
|
||||
|
||||
/**
|
||||
* 出租房到期时间
|
||||
*/
|
||||
@ApiModelProperty("出租房到期时间")
|
||||
@Excel(name = "出租房到期时间")
|
||||
private String rentalHousingEndDate;
|
||||
|
||||
/**
|
||||
* 派出所代码
|
||||
*/
|
||||
@ApiModelProperty("派出所代码")
|
||||
@Excel(name = "派出所代码")
|
||||
private String policeStationCode;
|
||||
|
||||
/**
|
||||
* 警务区编码
|
||||
*/
|
||||
@ApiModelProperty("警务区编码")
|
||||
@Excel(name = "警务区编码")
|
||||
private String policeDistrictCode;
|
||||
|
||||
/**
|
||||
* 流动人口标准地址ID
|
||||
*/
|
||||
@ApiModelProperty("流动人口标准地址ID")
|
||||
@Excel(name = "流动人口标准地址ID")
|
||||
private String floatingPopulationStandardAddressId;
|
||||
|
||||
/**
|
||||
* 流动人口标准地址
|
||||
*/
|
||||
@ApiModelProperty("流动人口标准地址")
|
||||
@Excel(name = "流动人口标准地址")
|
||||
private String floatingPopulationStandardAddress;
|
||||
|
||||
/**
|
||||
* 出租房状态
|
||||
*/
|
||||
@ApiModelProperty("出租房状态")
|
||||
@Excel(name = "出租房状态")
|
||||
private Integer rentalHousingStatus;
|
||||
@TableField(exist = false)
|
||||
private Integer rentalHousingStatusCn;
|
||||
|
||||
/**
|
||||
* 是否出租
|
||||
*/
|
||||
@ApiModelProperty("是否出租")
|
||||
@Excel(name = "是否出租")
|
||||
private Integer isRentalHousing;
|
||||
@TableField(exist = false)
|
||||
private String isRentalHousingCn;
|
||||
|
||||
/**
|
||||
* 居住类型
|
||||
*/
|
||||
@ApiModelProperty("居住类型")
|
||||
@Excel(name = "居住类型")
|
||||
private Integer residentialType;
|
||||
@TableField(exist = false)
|
||||
private String residentialTypeCn;
|
||||
|
||||
/**
|
||||
* 房屋等级
|
||||
*/
|
||||
@ApiModelProperty("房屋等级")
|
||||
@Excel(name = "房屋等级")
|
||||
private Integer rentalHousingGrade;
|
||||
@TableField(exist = false)
|
||||
private String rentalHousingGradeCn;
|
||||
|
||||
/**
|
||||
* 重点房屋
|
||||
*/
|
||||
@ApiModelProperty("重点房屋")
|
||||
@Excel(name = "重点房屋")
|
||||
private Integer impRentalHousing;
|
||||
@TableField(exist = false)
|
||||
private String impRentalHousingCn;
|
||||
|
||||
/**
|
||||
* 重点人员
|
||||
*/
|
||||
@ApiModelProperty("重点人员")
|
||||
@Excel(name = "重点人员")
|
||||
private Integer impUserRentalHousing;
|
||||
@TableField(exist = false)
|
||||
private String impUserRentalHousingCn;
|
||||
|
||||
/**
|
||||
* 是否群租房
|
||||
*/
|
||||
@ApiModelProperty("是否群租房")
|
||||
@Excel(name = "是否群租房")
|
||||
private Integer isGroupRentalHousing;
|
||||
@TableField(exist = false)
|
||||
private String isGroupRentalHousingCn;
|
||||
|
||||
/**
|
||||
* 住房类型
|
||||
*/
|
||||
@ApiModelProperty("住房类型")
|
||||
@Excel(name = "住房类型")
|
||||
private Integer rentalHousingType;
|
||||
@TableField(exist = false)
|
||||
private String rentalHousingTypeCn;
|
||||
|
||||
/**
|
||||
* 租房人姓名
|
||||
*/
|
||||
@ApiModelProperty("租房人姓名")
|
||||
@Excel(name = "租房人姓名")
|
||||
private String rentingHouseUserName;
|
||||
|
||||
/**
|
||||
* 租房人联系方式
|
||||
*/
|
||||
@ApiModelProperty("租房人联系方式")
|
||||
@Excel(name = "租房人联系方式")
|
||||
private String rentingHouseUserPhone;
|
||||
|
||||
/**
|
||||
* 租房人证件号码
|
||||
*/
|
||||
@ApiModelProperty("租房人证件号码")
|
||||
@Excel(name = "租房人证件号码")
|
||||
private String rentingHouseUserIdCard;
|
||||
}
|
@ -0,0 +1,76 @@
|
||||
package com.ruoyi.database.domain;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 码头信息表(MetaWharfInfo)Domain
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-12 09:01:15
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName(value = "meta_wharf_info")
|
||||
@ApiModel(value = "MetaWharfInfo", description = "码头信息表")
|
||||
public class MetaWharfInfo extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty("主键")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 码头编码
|
||||
*/
|
||||
@ApiModelProperty("码头编码")
|
||||
@Excel(name = "码头编码")
|
||||
private String wharfCode;
|
||||
|
||||
/**
|
||||
* 码头名称
|
||||
*/
|
||||
@ApiModelProperty("码头名称")
|
||||
@Excel(name = "码头名称")
|
||||
private String wharfName;
|
||||
|
||||
/**
|
||||
* 船舶地段名称
|
||||
*/
|
||||
@ApiModelProperty("船舶地段名称")
|
||||
@Excel(name = "船舶地段名称")
|
||||
private String fishingBoatLocationName;
|
||||
|
||||
/**
|
||||
* 码头负责人
|
||||
*/
|
||||
@ApiModelProperty("码头负责人")
|
||||
@Excel(name = "码头负责人")
|
||||
private String wharfOwner;
|
||||
|
||||
/**
|
||||
* 码头主联系方式
|
||||
*/
|
||||
@ApiModelProperty("码头主联系方式")
|
||||
@Excel(name = "码头主联系方式")
|
||||
private String wharfOwnerPhone;
|
||||
|
||||
/**
|
||||
* 码头主证件号码
|
||||
*/
|
||||
@ApiModelProperty("码头主证件号码")
|
||||
@Excel(name = "码头主证件号码")
|
||||
private String wharfOwnerIdCard;
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.database.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.database.domain.MetaHuntersInfo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 非法狩猎人员信息表(MetaHuntersInfo)Mapper
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-09 17:22:06
|
||||
*/
|
||||
@Mapper
|
||||
public interface MetaHuntersInfoMapper extends BaseMapper<MetaHuntersInfo> {
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.database.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.database.domain.MetaPortInfo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 港口信息表(MetaPortInfo)Mapper
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-12 09:01:16
|
||||
*/
|
||||
@Mapper
|
||||
public interface MetaPortInfoMapper extends BaseMapper<MetaPortInfo> {
|
||||
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
package com.ruoyi.database.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.business.domain.vo.BuildEstateInfoVo;
|
||||
import com.ruoyi.database.domain.MetaRealEstateInfo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 实有房屋信息表(MetaRealEstateInfo)Mapper
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-05 09:24:09
|
||||
*/
|
||||
@Mapper
|
||||
public interface MetaRealEstateInfoMapper extends BaseMapper<MetaRealEstateInfo> {
|
||||
|
||||
@Select("SELECT * FROM meta_real_estate_info WHERE real_estate_address LIKE CONCAT('%',#{bean.realEstateAddress},'%') limit 1")
|
||||
MetaRealEstateInfo listByLimit1(@Param("bean") MetaRealEstateInfo bean);
|
||||
|
||||
@Select("SELECT count(1) FROM meta_real_estate_info WHERE real_estate_address LIKE '%室%'")
|
||||
int countSyfw( MetaRealEstateInfo bean);
|
||||
|
||||
@Select("select count(*) from meta_rental_housing_info " +
|
||||
"where rental_housing_address in ( " +
|
||||
"select real_estate_address from meta_real_estate_info where real_estate_address LIKE CONCAT('%',#{bean.realEstateAddress},'%') " +
|
||||
")")
|
||||
int countRentalHousing(@Param("bean") MetaRealEstateInfo bean);
|
||||
|
||||
@Select("select * from ( " +
|
||||
"SELECT " +
|
||||
" CASE " +
|
||||
" WHEN CONCAT(real_estate_brief_address, building_name) REGEXP '[0-9]$' THEN CONCAT(real_estate_brief_address, building_name, '幢') " +
|
||||
" ELSE CONCAT(real_estate_brief_address, building_name) " +
|
||||
" END AS real_estate_brief_address, " +
|
||||
" longitude, " +
|
||||
" latitude,count(1) count " +
|
||||
"FROM meta_real_estate_info where real_estate_brief_address !='' and longitude!=0 " +
|
||||
") a group by a.real_estate_brief_address")
|
||||
List<BuildEstateInfoVo> buildLocationStatistics();
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.database.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.database.domain.MetaRentalHousingInfo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 出租房信息表(MetaRentalHousingInfo)Mapper
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-04 10:08:15
|
||||
*/
|
||||
@Mapper
|
||||
public interface MetaRentalHousingInfoMapper extends BaseMapper<MetaRentalHousingInfo> {
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.database.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.database.domain.MetaWharfInfo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 码头信息表(MetaWharfInfo)Mapper
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-12 09:01:15
|
||||
*/
|
||||
@Mapper
|
||||
public interface MetaWharfInfoMapper extends BaseMapper<MetaWharfInfo> {
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.database.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.database.domain.TransitHuntersUserRecord;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 非法狩猎人员人脸记录表(TransitHuntersUserRecord)Mapper
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-08 22:40:47
|
||||
*/
|
||||
@Mapper
|
||||
public interface TransitHuntersUserRecordMapper extends BaseMapper<TransitHuntersUserRecord> {
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.database.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.database.domain.TransitHuntersVehicleRecord;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 非法狩猎人员车辆记录表(TransitHuntersVehicleRecord)Mapper
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-08 22:40:47
|
||||
*/
|
||||
@Mapper
|
||||
public interface TransitHuntersVehicleRecordMapper extends BaseMapper<TransitHuntersVehicleRecord> {
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.database.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.database.domain.TransitImpUserRecord;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 涉稳列管人员人脸抓拍记录表(TransitImpUserRecord)Mapper
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-08 22:40:46
|
||||
*/
|
||||
@Mapper
|
||||
public interface TransitImpUserRecordMapper extends BaseMapper<TransitImpUserRecord> {
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.database.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.database.domain.TransitImpVehicleRecord;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 重点人车辆记录表(TransitImpVehicleRecord)Mapper
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-04 14:25:47
|
||||
*/
|
||||
@Mapper
|
||||
public interface TransitImpVehicleRecordMapper extends BaseMapper<TransitImpVehicleRecord> {
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.database.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.database.domain.TransitUserRecord;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 人脸记录表(TransitUserRecord)Mapper
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-04 14:25:45
|
||||
*/
|
||||
@Mapper
|
||||
public interface TransitUserRecordMapper extends BaseMapper<TransitUserRecord> {
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.database.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.database.domain.TransitVehicleRecord;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 车辆记录表(TransitVehicleRecord)Mapper
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-04 14:25:46
|
||||
*/
|
||||
@Mapper
|
||||
public interface TransitVehicleRecordMapper extends BaseMapper<TransitVehicleRecord> {
|
||||
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.ruoyi.database.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.database.domain.MetaHuntersInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 非法狩猎人员信息表(MetaHuntersInfo)Service
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-09 17:22:06
|
||||
*/
|
||||
public interface MetaHuntersInfoService extends IService<MetaHuntersInfo> {
|
||||
|
||||
/**
|
||||
* 新增或者更新非法狩猎人员信息表
|
||||
*
|
||||
* @param metaHuntersInfo 非法狩猎人员信息表对象
|
||||
* @return 结果
|
||||
*/
|
||||
boolean insertOrUpdate(MetaHuntersInfo metaHuntersInfo);
|
||||
|
||||
/**
|
||||
* 导入非法狩猎人员信息表
|
||||
*
|
||||
* @param list 非法狩猎人员信息表列表
|
||||
* @return 结果
|
||||
*/
|
||||
Object importData(List<MetaHuntersInfo> list);
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.ruoyi.database.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.database.domain.MetaPortInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 港口信息表(MetaPortInfo)Service
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-12 09:01:16
|
||||
*/
|
||||
public interface MetaPortInfoService extends IService<MetaPortInfo> {
|
||||
|
||||
/**
|
||||
* 新增或者更新港口信息表
|
||||
*
|
||||
* @param metaPortInfo 港口信息表对象
|
||||
* @return 结果
|
||||
*/
|
||||
boolean insertOrUpdate(MetaPortInfo metaPortInfo);
|
||||
|
||||
/**
|
||||
* 导入港口信息表
|
||||
*
|
||||
* @param list 港口信息表列表
|
||||
* @return 结果
|
||||
*/
|
||||
Object importData(List<MetaPortInfo> list);
|
||||
}
|
@ -0,0 +1,41 @@
|
||||
package com.ruoyi.database.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.business.domain.vo.BuildEstateInfoVo;
|
||||
import com.ruoyi.database.domain.MetaRealEstateInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 实有房屋信息表(MetaRealEstateInfo)Service
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-05 09:24:09
|
||||
*/
|
||||
public interface MetaRealEstateInfoService extends IService<MetaRealEstateInfo> {
|
||||
|
||||
/**
|
||||
* 新增或者更新实有房屋信息表
|
||||
*
|
||||
* @param metaRealEstateInfo 实有房屋信息表对象
|
||||
* @return 结果
|
||||
*/
|
||||
boolean insertOrUpdate(MetaRealEstateInfo metaRealEstateInfo);
|
||||
|
||||
/**
|
||||
* 导入实有房屋信息表
|
||||
*
|
||||
* @param list 实有房屋信息表列表
|
||||
* @return 结果
|
||||
*/
|
||||
Object importData(List<MetaRealEstateInfo> list);
|
||||
|
||||
public MetaRealEstateInfo listByLimit1(MetaRealEstateInfo bean);
|
||||
|
||||
public int countSyfw(MetaRealEstateInfo bean);
|
||||
|
||||
public int countRentalHousing(MetaRealEstateInfo bean);
|
||||
|
||||
public List<BuildEstateInfoVo> buildLocationStatistics();
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.ruoyi.database.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.database.domain.MetaRentalHousingInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 出租房信息表(MetaRentalHousingInfo)Service
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-04 10:08:15
|
||||
*/
|
||||
public interface MetaRentalHousingInfoService extends IService<MetaRentalHousingInfo> {
|
||||
|
||||
/**
|
||||
* 新增或者更新出租房信息表
|
||||
*
|
||||
* @param metaRentalHousingInfo 出租房信息表对象
|
||||
* @return 结果
|
||||
*/
|
||||
boolean insertOrUpdate(MetaRentalHousingInfo metaRentalHousingInfo);
|
||||
|
||||
/**
|
||||
* 导入出租房信息表
|
||||
*
|
||||
* @param list 出租房信息表列表
|
||||
* @return 结果
|
||||
*/
|
||||
Object importData(List<MetaRentalHousingInfo> list);
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.ruoyi.database.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.database.domain.MetaWharfInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 码头信息表(MetaWharfInfo)Service
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-12 09:01:15
|
||||
*/
|
||||
public interface MetaWharfInfoService extends IService<MetaWharfInfo> {
|
||||
|
||||
/**
|
||||
* 新增或者更新码头信息表
|
||||
*
|
||||
* @param metaWharfInfo 码头信息表对象
|
||||
* @return 结果
|
||||
*/
|
||||
boolean insertOrUpdate(MetaWharfInfo metaWharfInfo);
|
||||
|
||||
/**
|
||||
* 导入码头信息表
|
||||
*
|
||||
* @param list 码头信息表列表
|
||||
* @return 结果
|
||||
*/
|
||||
Object importData(List<MetaWharfInfo> list);
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.ruoyi.database.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.database.domain.TransitHuntersUserRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 非法狩猎人员人脸记录表(TransitHuntersUserRecord)Service
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-08 22:40:47
|
||||
*/
|
||||
public interface TransitHuntersUserRecordService extends IService<TransitHuntersUserRecord> {
|
||||
|
||||
/**
|
||||
* 新增或者更新非法狩猎人员人脸记录表
|
||||
*
|
||||
* @param transitHuntersUserRecord 非法狩猎人员人脸记录表对象
|
||||
* @return 结果
|
||||
*/
|
||||
boolean insertOrUpdate(TransitHuntersUserRecord transitHuntersUserRecord);
|
||||
|
||||
/**
|
||||
* 导入非法狩猎人员人脸记录表
|
||||
*
|
||||
* @param list 非法狩猎人员人脸记录表列表
|
||||
* @return 结果
|
||||
*/
|
||||
Object importData(List<TransitHuntersUserRecord> list);
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.ruoyi.database.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.database.domain.TransitHuntersVehicleRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 非法狩猎人员车辆记录表(TransitHuntersVehicleRecord)Service
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-08 22:40:46
|
||||
*/
|
||||
public interface TransitHuntersVehicleRecordService extends IService<TransitHuntersVehicleRecord> {
|
||||
|
||||
/**
|
||||
* 新增或者更新非法狩猎人员车辆记录表
|
||||
*
|
||||
* @param transitHuntersVehicleRecord 非法狩猎人员车辆记录表对象
|
||||
* @return 结果
|
||||
*/
|
||||
boolean insertOrUpdate(TransitHuntersVehicleRecord transitHuntersVehicleRecord);
|
||||
|
||||
/**
|
||||
* 导入非法狩猎人员车辆记录表
|
||||
*
|
||||
* @param list 非法狩猎人员车辆记录表列表
|
||||
* @return 结果
|
||||
*/
|
||||
Object importData(List<TransitHuntersVehicleRecord> list);
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.ruoyi.database.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.database.domain.TransitImpUserRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 涉稳列管人员人脸抓拍记录表(TransitImpUserRecord)Service
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-08 22:40:45
|
||||
*/
|
||||
public interface TransitImpUserRecordService extends IService<TransitImpUserRecord> {
|
||||
|
||||
/**
|
||||
* 新增或者更新涉稳列管人员人脸抓拍记录表
|
||||
*
|
||||
* @param transitImpUserRecord 涉稳列管人员人脸抓拍记录表对象
|
||||
* @return 结果
|
||||
*/
|
||||
boolean insertOrUpdate(TransitImpUserRecord transitImpUserRecord);
|
||||
|
||||
/**
|
||||
* 导入涉稳列管人员人脸抓拍记录表
|
||||
*
|
||||
* @param list 涉稳列管人员人脸抓拍记录表列表
|
||||
* @return 结果
|
||||
*/
|
||||
Object importData(List<TransitImpUserRecord> list);
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.ruoyi.database.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.database.domain.TransitImpVehicleRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 重点人车辆记录表(TransitImpVehicleRecord)Service
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-04 14:25:47
|
||||
*/
|
||||
public interface TransitImpVehicleRecordService extends IService<TransitImpVehicleRecord> {
|
||||
|
||||
/**
|
||||
* 新增或者更新重点人车辆记录表
|
||||
*
|
||||
* @param transitImpVehicleRecord 重点人车辆记录表对象
|
||||
* @return 结果
|
||||
*/
|
||||
boolean insertOrUpdate(TransitImpVehicleRecord transitImpVehicleRecord);
|
||||
|
||||
/**
|
||||
* 导入重点人车辆记录表
|
||||
*
|
||||
* @param list 重点人车辆记录表列表
|
||||
* @return 结果
|
||||
*/
|
||||
Object importData(List<TransitImpVehicleRecord> list);
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.ruoyi.database.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.database.domain.TransitUserRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 人脸记录表(TransitUserRecord)Service
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-04 14:25:44
|
||||
*/
|
||||
public interface TransitUserRecordService extends IService<TransitUserRecord> {
|
||||
|
||||
/**
|
||||
* 新增或者更新人脸记录表
|
||||
*
|
||||
* @param transitUserRecord 人脸记录表对象
|
||||
* @return 结果
|
||||
*/
|
||||
boolean insertOrUpdate(TransitUserRecord transitUserRecord);
|
||||
|
||||
/**
|
||||
* 导入人脸记录表
|
||||
*
|
||||
* @param list 人脸记录表列表
|
||||
* @return 结果
|
||||
*/
|
||||
Object importData(List<TransitUserRecord> list);
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.ruoyi.database.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.database.domain.TransitVehicleRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 车辆记录表(TransitVehicleRecord)Service
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-04 14:25:45
|
||||
*/
|
||||
public interface TransitVehicleRecordService extends IService<TransitVehicleRecord> {
|
||||
|
||||
/**
|
||||
* 新增或者更新车辆记录表
|
||||
*
|
||||
* @param transitVehicleRecord 车辆记录表对象
|
||||
* @return 结果
|
||||
*/
|
||||
boolean insertOrUpdate(TransitVehicleRecord transitVehicleRecord);
|
||||
|
||||
/**
|
||||
* 导入车辆记录表
|
||||
*
|
||||
* @param list 车辆记录表列表
|
||||
* @return 结果
|
||||
*/
|
||||
Object importData(List<TransitVehicleRecord> list);
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
package com.ruoyi.database.service.impl;
|
||||
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.database.domain.MetaHuntersInfo;
|
||||
import com.ruoyi.database.mapper.MetaHuntersInfoMapper;
|
||||
import com.ruoyi.database.service.MetaHuntersInfoService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 非法狩猎人员信息表(MetaHuntersInfo)ServiceImpl
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-09 17:22:06
|
||||
*/
|
||||
@Service
|
||||
public class MetaHuntersInfoServiceImpl extends ServiceImpl<MetaHuntersInfoMapper, MetaHuntersInfo> implements MetaHuntersInfoService {
|
||||
|
||||
@Override
|
||||
public boolean insertOrUpdate(MetaHuntersInfo metaHuntersInfo) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object importData(List<MetaHuntersInfo> list) {
|
||||
int successNum = 0;
|
||||
int failureNum = 0;
|
||||
StringBuilder successMsg = new StringBuilder();
|
||||
StringBuilder failureMsg = new StringBuilder();
|
||||
|
||||
for (MetaHuntersInfo metaHuntersInfo : list) {
|
||||
try {
|
||||
insertOrUpdate(metaHuntersInfo);
|
||||
successNum++;
|
||||
successMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
|
||||
} catch (Exception e) {
|
||||
failureNum++;
|
||||
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
|
||||
}
|
||||
}
|
||||
|
||||
if (failureNum > 0) {
|
||||
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
|
||||
throw new ServiceException(failureMsg.toString());
|
||||
} else {
|
||||
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
|
||||
return successMsg.toString();
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
package com.ruoyi.database.service.impl;
|
||||
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.database.domain.MetaPortInfo;
|
||||
import com.ruoyi.database.mapper.MetaPortInfoMapper;
|
||||
import com.ruoyi.database.service.MetaPortInfoService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 港口信息表(MetaPortInfo)ServiceImpl
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-12 09:01:16
|
||||
*/
|
||||
@Service
|
||||
public class MetaPortInfoServiceImpl extends ServiceImpl<MetaPortInfoMapper, MetaPortInfo> implements MetaPortInfoService {
|
||||
|
||||
@Override
|
||||
public boolean insertOrUpdate(MetaPortInfo metaPortInfo) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object importData(List<MetaPortInfo> list) {
|
||||
int successNum = 0;
|
||||
int failureNum = 0;
|
||||
StringBuilder successMsg = new StringBuilder();
|
||||
StringBuilder failureMsg = new StringBuilder();
|
||||
|
||||
for (MetaPortInfo metaPortInfo : list) {
|
||||
try {
|
||||
insertOrUpdate(metaPortInfo);
|
||||
successNum++;
|
||||
successMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
|
||||
} catch (Exception e) {
|
||||
failureNum++;
|
||||
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
|
||||
}
|
||||
}
|
||||
|
||||
if (failureNum > 0) {
|
||||
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
|
||||
throw new ServiceException(failureMsg.toString());
|
||||
} else {
|
||||
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
|
||||
return successMsg.toString();
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
package com.ruoyi.database.service.impl;
|
||||
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.business.domain.vo.BuildEstateInfoVo;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.database.domain.MetaRealEstateInfo;
|
||||
import com.ruoyi.database.mapper.MetaRealEstateInfoMapper;
|
||||
import com.ruoyi.database.service.MetaRealEstateInfoService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 实有房屋信息表(MetaRealEstateInfo)ServiceImpl
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-05 09:24:09
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
public class MetaRealEstateInfoServiceImpl extends ServiceImpl<MetaRealEstateInfoMapper, MetaRealEstateInfo> implements MetaRealEstateInfoService {
|
||||
|
||||
private final MetaRealEstateInfoMapper metaRealEstateInfoMapper;
|
||||
|
||||
@Override
|
||||
public boolean insertOrUpdate(MetaRealEstateInfo metaRealEstateInfo) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object importData(List<MetaRealEstateInfo> list) {
|
||||
int successNum = 0;
|
||||
int failureNum = 0;
|
||||
StringBuilder successMsg = new StringBuilder();
|
||||
StringBuilder failureMsg = new StringBuilder();
|
||||
|
||||
for (MetaRealEstateInfo metaRealEstateInfo : list) {
|
||||
try {
|
||||
insertOrUpdate(metaRealEstateInfo);
|
||||
successNum++;
|
||||
successMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
|
||||
} catch (Exception e) {
|
||||
failureNum++;
|
||||
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
|
||||
}
|
||||
}
|
||||
|
||||
if (failureNum > 0) {
|
||||
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
|
||||
throw new ServiceException(failureMsg.toString());
|
||||
} else {
|
||||
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
|
||||
return successMsg.toString();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public MetaRealEstateInfo listByLimit1(MetaRealEstateInfo bean) {
|
||||
return metaRealEstateInfoMapper.listByLimit1(bean);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int countSyfw(MetaRealEstateInfo bean){
|
||||
return metaRealEstateInfoMapper.countSyfw(bean);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int countRentalHousing(MetaRealEstateInfo bean){
|
||||
return metaRealEstateInfoMapper.countRentalHousing(bean);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<BuildEstateInfoVo> buildLocationStatistics(){
|
||||
return metaRealEstateInfoMapper.buildLocationStatistics();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
package com.ruoyi.database.service.impl;
|
||||
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.database.domain.MetaRentalHousingInfo;
|
||||
import com.ruoyi.database.mapper.MetaRentalHousingInfoMapper;
|
||||
import com.ruoyi.database.service.MetaRentalHousingInfoService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 出租房信息表(MetaRentalHousingInfo)ServiceImpl
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-04 10:08:15
|
||||
*/
|
||||
@Service
|
||||
public class MetaRentalHousingInfoServiceImpl extends ServiceImpl<MetaRentalHousingInfoMapper, MetaRentalHousingInfo> implements MetaRentalHousingInfoService {
|
||||
|
||||
@Override
|
||||
public boolean insertOrUpdate(MetaRentalHousingInfo metaRentalHousingInfo) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object importData(List<MetaRentalHousingInfo> list) {
|
||||
int successNum = 0;
|
||||
int failureNum = 0;
|
||||
StringBuilder successMsg = new StringBuilder();
|
||||
StringBuilder failureMsg = new StringBuilder();
|
||||
|
||||
for (MetaRentalHousingInfo metaRentalHousingInfo : list) {
|
||||
try {
|
||||
insertOrUpdate(metaRentalHousingInfo);
|
||||
successNum++;
|
||||
successMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
|
||||
} catch (Exception e) {
|
||||
failureNum++;
|
||||
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
|
||||
}
|
||||
}
|
||||
|
||||
if (failureNum > 0) {
|
||||
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
|
||||
throw new ServiceException(failureMsg.toString());
|
||||
} else {
|
||||
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
|
||||
return successMsg.toString();
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
package com.ruoyi.database.service.impl;
|
||||
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.database.domain.MetaWharfInfo;
|
||||
import com.ruoyi.database.mapper.MetaWharfInfoMapper;
|
||||
import com.ruoyi.database.service.MetaWharfInfoService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 码头信息表(MetaWharfInfo)ServiceImpl
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-12 09:01:15
|
||||
*/
|
||||
@Service
|
||||
public class MetaWharfInfoServiceImpl extends ServiceImpl<MetaWharfInfoMapper, MetaWharfInfo> implements MetaWharfInfoService {
|
||||
|
||||
@Override
|
||||
public boolean insertOrUpdate(MetaWharfInfo metaWharfInfo) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object importData(List<MetaWharfInfo> list) {
|
||||
int successNum = 0;
|
||||
int failureNum = 0;
|
||||
StringBuilder successMsg = new StringBuilder();
|
||||
StringBuilder failureMsg = new StringBuilder();
|
||||
|
||||
for (MetaWharfInfo metaWharfInfo : list) {
|
||||
try {
|
||||
insertOrUpdate(metaWharfInfo);
|
||||
successNum++;
|
||||
successMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
|
||||
} catch (Exception e) {
|
||||
failureNum++;
|
||||
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
|
||||
}
|
||||
}
|
||||
|
||||
if (failureNum > 0) {
|
||||
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
|
||||
throw new ServiceException(failureMsg.toString());
|
||||
} else {
|
||||
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
|
||||
return successMsg.toString();
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
package com.ruoyi.database.service.impl;
|
||||
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.database.domain.TransitHuntersUserRecord;
|
||||
import com.ruoyi.database.mapper.TransitHuntersUserRecordMapper;
|
||||
import com.ruoyi.database.service.TransitHuntersUserRecordService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 非法狩猎人员人脸记录表(TransitHuntersUserRecord)ServiceImpl
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-08 22:40:47
|
||||
*/
|
||||
@Service
|
||||
public class TransitHuntersUserRecordServiceImpl extends ServiceImpl<TransitHuntersUserRecordMapper, TransitHuntersUserRecord> implements TransitHuntersUserRecordService {
|
||||
|
||||
@Override
|
||||
public boolean insertOrUpdate(TransitHuntersUserRecord transitHuntersUserRecord) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object importData(List<TransitHuntersUserRecord> list) {
|
||||
int successNum = 0;
|
||||
int failureNum = 0;
|
||||
StringBuilder successMsg = new StringBuilder();
|
||||
StringBuilder failureMsg = new StringBuilder();
|
||||
|
||||
for (TransitHuntersUserRecord transitHuntersUserRecord : list) {
|
||||
try {
|
||||
insertOrUpdate(transitHuntersUserRecord);
|
||||
successNum++;
|
||||
successMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
|
||||
} catch (Exception e) {
|
||||
failureNum++;
|
||||
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
|
||||
}
|
||||
}
|
||||
|
||||
if (failureNum > 0) {
|
||||
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
|
||||
throw new ServiceException(failureMsg.toString());
|
||||
} else {
|
||||
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
|
||||
return successMsg.toString();
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
package com.ruoyi.database.service.impl;
|
||||
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.database.domain.TransitHuntersVehicleRecord;
|
||||
import com.ruoyi.database.mapper.TransitHuntersVehicleRecordMapper;
|
||||
import com.ruoyi.database.service.TransitHuntersVehicleRecordService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 非法狩猎人员车辆记录表(TransitHuntersVehicleRecord)ServiceImpl
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-08 22:40:46
|
||||
*/
|
||||
@Service
|
||||
public class TransitHuntersVehicleRecordServiceImpl extends ServiceImpl<TransitHuntersVehicleRecordMapper, TransitHuntersVehicleRecord> implements TransitHuntersVehicleRecordService {
|
||||
|
||||
@Override
|
||||
public boolean insertOrUpdate(TransitHuntersVehicleRecord transitHuntersVehicleRecord) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object importData(List<TransitHuntersVehicleRecord> list) {
|
||||
int successNum = 0;
|
||||
int failureNum = 0;
|
||||
StringBuilder successMsg = new StringBuilder();
|
||||
StringBuilder failureMsg = new StringBuilder();
|
||||
|
||||
for (TransitHuntersVehicleRecord transitHuntersVehicleRecord : list) {
|
||||
try {
|
||||
insertOrUpdate(transitHuntersVehicleRecord);
|
||||
successNum++;
|
||||
successMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
|
||||
} catch (Exception e) {
|
||||
failureNum++;
|
||||
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
|
||||
}
|
||||
}
|
||||
|
||||
if (failureNum > 0) {
|
||||
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
|
||||
throw new ServiceException(failureMsg.toString());
|
||||
} else {
|
||||
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
|
||||
return successMsg.toString();
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
package com.ruoyi.database.service.impl;
|
||||
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.database.domain.TransitImpUserRecord;
|
||||
import com.ruoyi.database.mapper.TransitImpUserRecordMapper;
|
||||
import com.ruoyi.database.service.TransitImpUserRecordService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 涉稳列管人员人脸抓拍记录表(TransitImpUserRecord)ServiceImpl
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-08 22:40:45
|
||||
*/
|
||||
@Service
|
||||
public class TransitImpUserRecordServiceImpl extends ServiceImpl<TransitImpUserRecordMapper, TransitImpUserRecord> implements TransitImpUserRecordService {
|
||||
|
||||
@Override
|
||||
public boolean insertOrUpdate(TransitImpUserRecord transitImpUserRecord) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object importData(List<TransitImpUserRecord> list) {
|
||||
int successNum = 0;
|
||||
int failureNum = 0;
|
||||
StringBuilder successMsg = new StringBuilder();
|
||||
StringBuilder failureMsg = new StringBuilder();
|
||||
|
||||
for (TransitImpUserRecord transitImpUserRecord : list) {
|
||||
try {
|
||||
insertOrUpdate(transitImpUserRecord);
|
||||
successNum++;
|
||||
successMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
|
||||
} catch (Exception e) {
|
||||
failureNum++;
|
||||
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
|
||||
}
|
||||
}
|
||||
|
||||
if (failureNum > 0) {
|
||||
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
|
||||
throw new ServiceException(failureMsg.toString());
|
||||
} else {
|
||||
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
|
||||
return successMsg.toString();
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
package com.ruoyi.database.service.impl;
|
||||
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.database.domain.TransitImpVehicleRecord;
|
||||
import com.ruoyi.database.mapper.TransitImpVehicleRecordMapper;
|
||||
import com.ruoyi.database.service.TransitImpVehicleRecordService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 重点人车辆记录表(TransitImpVehicleRecord)ServiceImpl
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-04 14:25:47
|
||||
*/
|
||||
@Service
|
||||
public class TransitImpVehicleRecordServiceImpl extends ServiceImpl<TransitImpVehicleRecordMapper, TransitImpVehicleRecord> implements TransitImpVehicleRecordService {
|
||||
|
||||
@Override
|
||||
public boolean insertOrUpdate(TransitImpVehicleRecord transitImpVehicleRecord) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object importData(List<TransitImpVehicleRecord> list) {
|
||||
int successNum = 0;
|
||||
int failureNum = 0;
|
||||
StringBuilder successMsg = new StringBuilder();
|
||||
StringBuilder failureMsg = new StringBuilder();
|
||||
|
||||
for (TransitImpVehicleRecord transitImpVehicleRecord : list) {
|
||||
try {
|
||||
insertOrUpdate(transitImpVehicleRecord);
|
||||
successNum++;
|
||||
successMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
|
||||
} catch (Exception e) {
|
||||
failureNum++;
|
||||
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
|
||||
}
|
||||
}
|
||||
|
||||
if (failureNum > 0) {
|
||||
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
|
||||
throw new ServiceException(failureMsg.toString());
|
||||
} else {
|
||||
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
|
||||
return successMsg.toString();
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
package com.ruoyi.database.service.impl;
|
||||
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.database.domain.TransitUserRecord;
|
||||
import com.ruoyi.database.mapper.TransitUserRecordMapper;
|
||||
import com.ruoyi.database.service.TransitUserRecordService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 人脸记录表(TransitUserRecord)ServiceImpl
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-04 14:25:44
|
||||
*/
|
||||
@Service
|
||||
public class TransitUserRecordServiceImpl extends ServiceImpl<TransitUserRecordMapper, TransitUserRecord> implements TransitUserRecordService {
|
||||
|
||||
@Override
|
||||
public boolean insertOrUpdate(TransitUserRecord transitUserRecord) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object importData(List<TransitUserRecord> list) {
|
||||
int successNum = 0;
|
||||
int failureNum = 0;
|
||||
StringBuilder successMsg = new StringBuilder();
|
||||
StringBuilder failureMsg = new StringBuilder();
|
||||
|
||||
for (TransitUserRecord transitUserRecord : list) {
|
||||
try {
|
||||
insertOrUpdate(transitUserRecord);
|
||||
successNum++;
|
||||
successMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
|
||||
} catch (Exception e) {
|
||||
failureNum++;
|
||||
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
|
||||
}
|
||||
}
|
||||
|
||||
if (failureNum > 0) {
|
||||
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
|
||||
throw new ServiceException(failureMsg.toString());
|
||||
} else {
|
||||
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
|
||||
return successMsg.toString();
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
package com.ruoyi.database.service.impl;
|
||||
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.database.domain.TransitVehicleRecord;
|
||||
import com.ruoyi.database.mapper.TransitVehicleRecordMapper;
|
||||
import com.ruoyi.database.service.TransitVehicleRecordService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 车辆记录表(TransitVehicleRecord)ServiceImpl
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-12-04 14:25:46
|
||||
*/
|
||||
@Service
|
||||
public class TransitVehicleRecordServiceImpl extends ServiceImpl<TransitVehicleRecordMapper, TransitVehicleRecord> implements TransitVehicleRecordService {
|
||||
|
||||
@Override
|
||||
public boolean insertOrUpdate(TransitVehicleRecord transitVehicleRecord) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object importData(List<TransitVehicleRecord> list) {
|
||||
int successNum = 0;
|
||||
int failureNum = 0;
|
||||
StringBuilder successMsg = new StringBuilder();
|
||||
StringBuilder failureMsg = new StringBuilder();
|
||||
|
||||
for (TransitVehicleRecord transitVehicleRecord : list) {
|
||||
try {
|
||||
insertOrUpdate(transitVehicleRecord);
|
||||
successNum++;
|
||||
successMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入成功", successNum, "待替换"));
|
||||
} catch (Exception e) {
|
||||
failureNum++;
|
||||
failureMsg.append(StrUtil.format("<br/>{}、待替换 {} 导入失败:{}", failureNum, "待替换", e.getMessage()));
|
||||
}
|
||||
}
|
||||
|
||||
if (failureNum > 0) {
|
||||
failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
|
||||
throw new ServiceException(failureMsg.toString());
|
||||
} else {
|
||||
successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
|
||||
return successMsg.toString();
|
||||
}
|
||||
}
|
||||
}
|
@ -1,100 +1,100 @@
|
||||
package com.ruoyi.interceptor;
|
||||
|
||||
import cn.hutool.core.util.ReflectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.crypto.SecureUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import org.apache.ibatis.executor.parameter.ParameterHandler;
|
||||
import org.apache.ibatis.plugin.*;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.util.HashMap;
|
||||
import java.util.Properties;
|
||||
|
||||
/**
|
||||
* Mybatis加密拦截器
|
||||
*
|
||||
* @since 2023-09-14 9:34
|
||||
*/
|
||||
|
||||
@Intercepts({@Signature(type = ParameterHandler.class, method = "setParameters", args = {PreparedStatement.class})})
|
||||
public class EncryptInterceptor implements Interceptor {
|
||||
|
||||
private final static String AES_ID_CARD = "idCardG409WaTuNj";
|
||||
private final static String AES_PHONE = "phoneG409WaTuNj1";
|
||||
|
||||
@Override
|
||||
public Object intercept(Invocation invocation) throws Throwable {
|
||||
ParameterHandler parameterHandler = (ParameterHandler) invocation.getTarget();
|
||||
// 获取查询语句的参数值
|
||||
Object parameterObject = parameterHandler.getParameterObject();
|
||||
// 如果参数值为空,则直接返回
|
||||
if (parameterObject == null) {
|
||||
return invocation.proceed();
|
||||
}
|
||||
Object currentObject = parameterObject;
|
||||
// 获取入参类型
|
||||
Class<?> aClass = parameterObject.getClass();
|
||||
|
||||
//若为查询语句,则获取实体类类型
|
||||
if ("org.apache.ibatis.binding.MapperMethod$ParamMap".equals(aClass.getName())) {
|
||||
HashMap<?, ?> map = (HashMap<?, ?>) parameterObject;
|
||||
try {
|
||||
Object param1 = null;
|
||||
try {
|
||||
param1 = map.get("param1");
|
||||
}catch (Exception e){
|
||||
}
|
||||
if (param1 != null && param1 instanceof QueryWrapper) {
|
||||
QueryWrapper<?> queryWrapper = (QueryWrapper<?>) param1;
|
||||
Object entity = queryWrapper.getEntity();
|
||||
if (entity == null) {
|
||||
return invocation.proceed();
|
||||
}
|
||||
aClass = entity.getClass();
|
||||
currentObject = entity;
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return invocation.proceed();
|
||||
}
|
||||
}
|
||||
|
||||
// 遍历实体类的字段
|
||||
for (Field field : aClass.getDeclaredFields()) {
|
||||
String fieldName = field.getName();
|
||||
// 判断字段是否为电话号码或身份证号码,并对其进行加密
|
||||
if (StrUtil.containsIgnoreCase(fieldName, "idcard")) {
|
||||
field.setAccessible(true);
|
||||
String value = String.valueOf(field.get(currentObject));
|
||||
try {
|
||||
ReflectUtil.setFieldValue(currentObject, fieldName, SecureUtil.aes(AES_ID_CARD.getBytes()).encryptBase64(value));
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
}
|
||||
|
||||
if (StrUtil.containsIgnoreCase(fieldName, "phone")) {
|
||||
field.setAccessible(true);
|
||||
String value = String.valueOf(field.get(currentObject));
|
||||
try {
|
||||
ReflectUtil.setFieldValue(currentObject, fieldName, SecureUtil.aes(AES_PHONE.getBytes()).encryptBase64(value));
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 继续执行原来的 setParameters 方法
|
||||
return invocation.proceed();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object plugin(Object target) {
|
||||
return Plugin.wrap(target, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setProperties(Properties properties) {
|
||||
}
|
||||
}
|
||||
//package com.ruoyi.interceptor;
|
||||
//
|
||||
//import cn.hutool.core.util.ReflectUtil;
|
||||
//import cn.hutool.core.util.StrUtil;
|
||||
//import cn.hutool.crypto.SecureUtil;
|
||||
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
//import org.apache.ibatis.executor.parameter.ParameterHandler;
|
||||
//import org.apache.ibatis.plugin.*;
|
||||
//
|
||||
//import java.lang.reflect.Field;
|
||||
//import java.sql.PreparedStatement;
|
||||
//import java.util.HashMap;
|
||||
//import java.util.Properties;
|
||||
//
|
||||
///**
|
||||
// * Mybatis加密拦截器
|
||||
// *
|
||||
// * @since 2023-09-14 9:34
|
||||
// */
|
||||
//
|
||||
//@Intercepts({@Signature(type = ParameterHandler.class, method = "setParameters", args = {PreparedStatement.class})})
|
||||
//public class EncryptInterceptor implements Interceptor {
|
||||
//
|
||||
// private final static String AES_ID_CARD = "idCardG409WaTuNj";
|
||||
// private final static String AES_PHONE = "phoneG409WaTuNj1";
|
||||
//
|
||||
// @Override
|
||||
// public Object intercept(Invocation invocation) throws Throwable {
|
||||
// ParameterHandler parameterHandler = (ParameterHandler) invocation.getTarget();
|
||||
// // 获取查询语句的参数值
|
||||
// Object parameterObject = parameterHandler.getParameterObject();
|
||||
// // 如果参数值为空,则直接返回
|
||||
// if (parameterObject == null) {
|
||||
// return invocation.proceed();
|
||||
// }
|
||||
// Object currentObject = parameterObject;
|
||||
// // 获取入参类型
|
||||
// Class<?> aClass = parameterObject.getClass();
|
||||
//
|
||||
// //若为查询语句,则获取实体类类型
|
||||
// if ("org.apache.ibatis.binding.MapperMethod$ParamMap".equals(aClass.getName())) {
|
||||
// HashMap<?, ?> map = (HashMap<?, ?>) parameterObject;
|
||||
// try {
|
||||
// Object param1 = null;
|
||||
// try {
|
||||
// param1 = map.get("param1");
|
||||
// }catch (Exception e){
|
||||
// }
|
||||
// if (param1 != null && param1 instanceof QueryWrapper) {
|
||||
// QueryWrapper<?> queryWrapper = (QueryWrapper<?>) param1;
|
||||
// Object entity = queryWrapper.getEntity();
|
||||
// if (entity == null) {
|
||||
// return invocation.proceed();
|
||||
// }
|
||||
// aClass = entity.getClass();
|
||||
// currentObject = entity;
|
||||
// }
|
||||
//
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// return invocation.proceed();
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// // 遍历实体类的字段
|
||||
// for (Field field : aClass.getDeclaredFields()) {
|
||||
// String fieldName = field.getName();
|
||||
// // 判断字段是否为电话号码或身份证号码,并对其进行加密
|
||||
// if (StrUtil.containsIgnoreCase(fieldName, "idcard")) {
|
||||
// field.setAccessible(true);
|
||||
// String value = String.valueOf(field.get(currentObject));
|
||||
// try {
|
||||
// ReflectUtil.setFieldValue(currentObject, fieldName, SecureUtil.aes(AES_ID_CARD.getBytes()).encryptBase64(value));
|
||||
// } catch (Exception ignored) {
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// if (StrUtil.containsIgnoreCase(fieldName, "phone")) {
|
||||
// field.setAccessible(true);
|
||||
// String value = String.valueOf(field.get(currentObject));
|
||||
// try {
|
||||
// ReflectUtil.setFieldValue(currentObject, fieldName, SecureUtil.aes(AES_PHONE.getBytes()).encryptBase64(value));
|
||||
// } catch (Exception ignored) {
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// // 继续执行原来的 setParameters 方法
|
||||
// return invocation.proceed();
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public Object plugin(Object target) {
|
||||
// return Plugin.wrap(target, this);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void setProperties(Properties properties) {
|
||||
// }
|
||||
//}
|
||||
|
Loading…
Reference in new issue