添加查询积水点信息

添加查询积水点摄像头对应信息
This commit is contained in:
wuweida 2022-07-06 13:42:17 +08:00
parent ed468c85c0
commit 6c7e9af962
7 changed files with 131 additions and 0 deletions

View File

@ -0,0 +1,38 @@
package com.hisense.monitormanage.controller;
import com.hisense.monitormanage.entity.Result;
import com.hisense.monitormanage.entity.WaterCamera;
import com.hisense.monitormanage.entity.WaterPoint;
import com.hisense.monitormanage.mapper.WaterCameraMapper;
import com.hisense.monitormanage.mapper.WaterPointMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
@RequestMapping("api/project/water")
public class WaterPointController {
@Autowired
private WaterPointMapper waterPointMapper;
@Autowired
private WaterCameraMapper waterCameraMapper;
@GetMapping("selectWaterPoint")
public Result selectWaterPoint(){
List<WaterPoint> waterPoints = waterPointMapper.selectWaterPoint();
Result success = Result.success(waterPoints);
return success;
}
@GetMapping("selectWaterCamera")
public Result selectWaterCamera(){
List<WaterCamera> waterCameras = waterCameraMapper.selectWaterCamera();
Result success = Result.success(waterCameras);
return success;
}
}

View File

@ -0,0 +1,21 @@
package com.hisense.monitormanage.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@TableName("water_camera")
public class WaterCamera {
private String waterPointName;
private String ssqy;
private String longitude;
private String latitude;
private String channelName;
private String channelCode;
private String gpsX;
private String gpsy;
private String illustrate;
private String videoSurveillance;
private String videoCapture;
}

View File

@ -0,0 +1,33 @@
package com.hisense.monitormanage.entity;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import java.math.BigDecimal;
@Data
@TableName("water_point")
public class WaterPoint {
private Integer waterPointId;
private String waterPointName;//积水点名称
private String districtId;//所属区域ID
private String address;//地址
private String pointType;//积水点类型1路段2桥下3洞内4小区
private String uuid;//地址坐标ID
private BigDecimal longitude;//经度
private BigDecimal latitude;//纬度
private String charge;//负责人
private String chargeTel;//负责人电话
private String remark;//备注
private String delFlag;//删除状态
private String createdDate;//创建时间
private String createdBy;//创建人ID
private String updatedDate;//更新时间
private String updatedBy;//更新人ID
private String reportOrigin;//上报来源auditorReport--水务集团上报commonReport--群众上报case--城管案例video--视频感知
private String isEasyPoint;//是否易积水点0是 1否
private String dispFlag;//0未处置 1处置中 2处置完成
private String auditFlag;//审核状态0未审核; 1审核不通过;2审核通过
private String upNum;//点赞数量
private String underNum;//点踩数量
}

View File

@ -0,0 +1,15 @@
package com.hisense.monitormanage.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hisense.monitormanage.entity.WaterCamera;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface WaterCameraMapper extends BaseMapper<WaterCamera> {
@Select("select * from water_camera")
List<WaterCamera> selectWaterCamera();
}

View File

@ -0,0 +1,14 @@
package com.hisense.monitormanage.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hisense.monitormanage.entity.WaterPoint;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface WaterPointMapper extends BaseMapper<WaterPoint> {
@Select("select * from water_point where audit_flag = '2' and disp_flag in (0,1)")
List<WaterPoint> selectWaterPoint();
}

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hisense.monitormanage.mapper.WaterCameraMapper">
</mapper>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hisense.monitormanage.mapper.WaterPointMapper">
</mapper>