This commit is contained in:
wuweida 2022-07-20 13:36:55 +08:00
parent 068ab2d5ed
commit 720a57d40d
66 changed files with 465 additions and 75 deletions

View File

@ -26,8 +26,11 @@ public class CachingConfig {
@Bean @Bean
public EhCacheManagerFactoryBean ehcache() { public EhCacheManagerFactoryBean ehcache() {
EhCacheManagerFactoryBean cacheManagerFactoryBean = new EhCacheManagerFactoryBean(); EhCacheManagerFactoryBean cacheManagerFactoryBean = new EhCacheManagerFactoryBean();
cacheManagerFactoryBean.setConfigLocation(new ClassPathResource("ehcache.xml")); cacheManagerFactoryBean.setConfigLocation(new ClassPathResource("ehcache.xml"));
return cacheManagerFactoryBean; return cacheManagerFactoryBean;
} }
} }

View File

@ -25,6 +25,7 @@ public class GlobalCorsConfig {
config.addExposedHeader("*"); config.addExposedHeader("*");
//2. 添加映射路径 //2. 添加映射路径
UrlBasedCorsConfigurationSource corsConfigurationSource = new UrlBasedCorsConfigurationSource(); UrlBasedCorsConfigurationSource corsConfigurationSource = new UrlBasedCorsConfigurationSource();
corsConfigurationSource.registerCorsConfiguration("/**",config); corsConfigurationSource.registerCorsConfiguration("/**",config);
//3. 返回新的CorsFilter //3. 返回新的CorsFilter
return new CorsFilter(corsConfigurationSource); return new CorsFilter(corsConfigurationSource);

View File

@ -12,12 +12,15 @@ import java.net.SocketAddress;
@Configuration @Configuration
public class RestClient { public class RestClient {
@Bean @Bean
public static RestTemplate restTemplate() { public static RestTemplate restTemplate() {
SimpleClientHttpRequestFactory requestFactory = new SimpleClientHttpRequestFactory(); SimpleClientHttpRequestFactory requestFactory = new SimpleClientHttpRequestFactory();
requestFactory.setConnectTimeout(30000); requestFactory.setConnectTimeout(30000);
requestFactory.setReadTimeout(30000); requestFactory.setReadTimeout(30000);
requestFactory.setOutputStreaming(false); requestFactory.setOutputStreaming(false);
/*SocketAddress address = new InetSocketAddress("15.2.23.141", 8888); /*SocketAddress address = new InetSocketAddress("15.2.23.141", 8888);
@ -25,7 +28,9 @@ public class RestClient {
requestFactory.setProxy(proxy);*/ requestFactory.setProxy(proxy);*/
RestTemplate restTemplate = new RestTemplate(); RestTemplate restTemplate = new RestTemplate();
restTemplate.setRequestFactory(requestFactory); restTemplate.setRequestFactory(requestFactory);
return restTemplate; return restTemplate;
} }

View File

@ -9,6 +9,7 @@ import java.util.concurrent.Executors;
@Configuration @Configuration
//所有的定时任务都放在一个线程池中定时任务启动时使用不同的线程 //所有的定时任务都放在一个线程池中定时任务启动时使用不同的线程
public class ScheduleConfig implements SchedulingConfigurer { public class ScheduleConfig implements SchedulingConfigurer {
@Override @Override
public void configureTasks(ScheduledTaskRegistrar scheduledTaskRegistrar) { public void configureTasks(ScheduledTaskRegistrar scheduledTaskRegistrar) {
//设定一个长度10的定时任务线程池 //设定一个长度10的定时任务线程池

View File

@ -26,6 +26,7 @@ public class SwaggerConfig {
@Value("${swagger.enable:false}") @Value("${swagger.enable:false}")
private boolean enable; private boolean enable;
@Bean @Bean
public Docket createRestApi(){ public Docket createRestApi(){
return new Docket(DocumentationType.SWAGGER_2) return new Docket(DocumentationType.SWAGGER_2)
@ -50,5 +51,4 @@ public class SwaggerConfig {
.description("API 描述") .description("API 描述")
.build(); .build();
} }
} }

View File

@ -17,7 +17,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -33,6 +32,7 @@ import java.util.Map;
@RequestMapping("api/project/building") @RequestMapping("api/project/building")
@RestController @RestController
public class BuildingController { public class BuildingController {
@Autowired @Autowired
private BuildingRecordsService buildingRecordsService; private BuildingRecordsService buildingRecordsService;
@ -85,14 +85,14 @@ public class BuildingController {
@GetMapping("selectWeekPmAndNoice") @GetMapping("selectWeekPmAndNoice")
@ApiOperation("查询近7天工地噪声和扬尘的信息") @ApiOperation("查询近7天工地噪声和扬尘的信息")
public Result selectWeekPmAndNoice(String buildLicense){ public Result selectWeekPmAndNoice(String buildLicense){
List<BuildingRecordsDtos> recordsDtos = buildingRecordsMapper.selectWeekPmAndNoice(buildLicense); List<BuildingRecordsDtos> records = buildingRecordsMapper.selectWeekPmAndNoice(buildLicense);
recordsDtos.forEach(record ->{ records.forEach(record ->{
if (record.getPm10() == null && record.getNoice() == null){ if (record.getPm10() == null && record.getNoice() == null){
record.setPm10(0); record.setPm10(0);
record.setNoice(0); record.setNoice(0);
} }
}); });
Result success = Result.success(recordsDtos); Result success = Result.success(records);
return success; return success;
} }

View File

@ -4,18 +4,33 @@ import lombok.Data;
@Data @Data
public class BuildingRecordsDto { public class BuildingRecordsDto {
private String projectName;//工地名称 private String projectName;//工地名称
private String buildLicense;//建筑编号 private String buildLicense;//建筑编号
private String pushTime;//推送时间 private String pushTime;//推送时间
private String appid; private String appid;
private String sgwz;//施工位置 private String sgwz;//施工位置
private double jd;//经度 private double jd;//经度
private double wd;//纬度 private double wd;//纬度
private String ssdq;//所属区域 private String ssdq;//所属区域
private double pm10;//扬尘 private double pm10;//扬尘
private double noice;//噪声 private double noice;//噪声
private String yjsg;//夜间施工 private String yjsg;//夜间施工
private String picUrl;//图片路径 private String picUrl;//图片路径
private String channelCode;//摄像头编号 private String channelCode;//摄像头编号
private String channelName;//摄像头名称 private String channelName;//摄像头名称
} }

View File

@ -4,7 +4,11 @@ import lombok.Data;
@Data @Data
public class BuildingRecordsDtos { public class BuildingRecordsDtos {
private String pushTime; private String pushTime;
private Integer pm10; private Integer pm10;
private Integer noice; private Integer noice;
} }

View File

@ -4,6 +4,7 @@ import lombok.Data;
@Data @Data
public class CameraChannelDto1 { public class CameraChannelDto1 {
private Long idtCameraChannel; private Long idtCameraChannel;
private String channelCode; private String channelCode;

View File

@ -17,7 +17,4 @@ public class ChannelLabelDto {
private String nodeName; private String nodeName;
} }

View File

@ -9,8 +9,11 @@ import java.util.Date;
public class ChannelPictureDto { public class ChannelPictureDto {
private String ssqh; private String ssqh;
private String xmmc; private String xmmc;
private String xmdz; private String xmdz;
private String channelCode; private String channelCode;
private String PicUrl; private String PicUrl;
@ -18,7 +21,4 @@ public class ChannelPictureDto {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
private Date insertTime; private Date insertTime;
} }

View File

@ -7,8 +7,10 @@ import lombok.Data;
@Data @Data
public class ChengguanDto extends Camera { public class ChengguanDto extends Camera {
private String id; private String id;
private String xmdz; private String xmdz;
private String xmmc; private String xmmc;
} }

View File

@ -7,19 +7,34 @@ import java.math.BigDecimal;
@Data @Data
public class EventDto { public class EventDto {
private String eventCnName; private String eventCnName;
private String eventNewName; private String eventNewName;
private String eventSerial; private String eventSerial;
private String color; private String color;
private String vehicle; private String vehicle;
private String classes; private String classes;
private String cameraName; private String cameraName;
private String district; private String district;
private BigDecimal latitude; private BigDecimal latitude;
private BigDecimal longitude; private BigDecimal longitude;
private String imageUrl; private String imageUrl;
private String taskId; private String taskId;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
private String captureTime; private String captureTime;
private String trackEvent; private String trackEvent;
} }

View File

@ -4,9 +4,15 @@ import lombok.Data;
@Data @Data
public class KeyAreaDto { public class KeyAreaDto {
private String type; private String type;
private String areaName; private String areaName;
private String location; private String location;
private String allNums; private String allNums;
private String timeId; private String timeId;
} }

View File

@ -4,11 +4,19 @@ import lombok.Data;
@Data @Data
public class PassengerFlowDto { public class PassengerFlowDto {
private String hourId; private String hourId;
private String timeId; private String timeId;
private String longitude; private String longitude;
private String latitude; private String latitude;
private String allNums; private String allNums;
private String localNums; private String localNums;
private String nonlocalNums; private String nonlocalNums;
} }

View File

@ -7,16 +7,28 @@ import java.util.Date;
@Data @Data
public class PeopleRecognizeDto { public class PeopleRecognizeDto {
private String channelCode; private String channelCode;
private String channelName; private String channelName;
private String picUrl; private String picUrl;
private Integer personNum; private Integer personNum;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
private Date insertTime; private Date insertTime;
private String gpsX; private String gpsX;
private String gpsY; private String gpsY;
private Integer status;//1在线0离线 private Integer status;//1在线0离线
private String nodeName; private String nodeName;
private String newNodeName; private String newNodeName;
private Integer checkStatus;//1正常0异常 private Integer checkStatus;//1正常0异常
} }

View File

@ -9,18 +9,22 @@ import java.util.Date;
public class PictureDto { public class PictureDto {
private String ssqh; private String ssqh;
private String xmmc; private String xmmc;
private String xmdz; private String xmdz;
private String channelCode; private String channelCode;
private String name; private String name;
private String longitude; private String longitude;
private String latitude; private String latitude;
private String pic; private String pic;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
private Date captureTime; private Date captureTime;
} }

View File

@ -7,7 +7,6 @@ import lombok.Data;
@Data @Data
public class ScenicCameraDto extends Camera { public class ScenicCameraDto extends Camera {
/** /**
* 景区编码 * 景区编码
*/ */
@ -16,7 +15,6 @@ public class ScenicCameraDto extends Camera {
* 摄像头名称 * 摄像头名称
*/ */
private String name; private String name;
/** /**
* 景区名 * 景区名
*/ */
@ -25,9 +23,9 @@ public class ScenicCameraDto extends Camera {
* 管理单位 * 管理单位
*/ */
private String gldw; private String gldw;
/** /**
* 识别出来的人数 * 识别出来的人数
*/ */
private Integer personNum; private Integer personNum;
} }

View File

@ -4,6 +4,9 @@ import lombok.Data;
@Data @Data
public class UserLoginDto { public class UserLoginDto {
private String username; private String username;
private String status; private String status;
} }

View File

@ -4,12 +4,21 @@ import lombok.Data;
@Data @Data
public class WaterCameraDto { public class WaterCameraDto {
private String waterPointName; private String waterPointName;
private String ssqy; private String ssqy;
private String illustrate; private String illustrate;
private String videoSurveillance; private String videoSurveillance;
private String videoCapture; private String videoCapture;
private String channelName; private String channelName;
private String channelCode; private String channelCode;
private Integer count; private Integer count;
} }

View File

@ -6,29 +6,55 @@ import java.math.BigDecimal;
@Data @Data
public class WaterPointDto { public class WaterPointDto {
private String waterPointId; private String waterPointId;
private String waterPointName;//积水点名称 private String waterPointName;//积水点名称
private String districtId;//所属区域ID private String districtId;//所属区域ID
private String address;//地址 private String address;//地址
private String pointType;//积水点类型1路段2桥下3洞内4小区 private String pointType;//积水点类型1路段2桥下3洞内4小区
private String uuid;//地址坐标ID private String uuid;//地址坐标ID
private BigDecimal longitude;//经度 private BigDecimal longitude;//经度
private BigDecimal latitude;//纬度 private BigDecimal latitude;//纬度
private String charge;//负责人 private String charge;//负责人
private String chargeTel;//负责人电话 private String chargeTel;//负责人电话
private String remark;//备注 private String remark;//备注
private String delFlag;//删除状态 private String delFlag;//删除状态
private String createdDate;//创建时间 private String createdDate;//创建时间
private String createdBy;//创建人ID private String createdBy;//创建人ID
private String updatedDate;//更新时间 private String updatedDate;//更新时间
private String updatedBy;//更新人ID private String updatedBy;//更新人ID
private String reportOrigin;//上报来源auditorReport--水务集团上报commonReport--群众上报case--城管案例video--视频感知 private String reportOrigin;//上报来源auditorReport--水务集团上报commonReport--群众上报case--城管案例video--视频感知
private String isEasyPoint;//是否易积水点0是 1否 private String isEasyPoint;//是否易积水点0是 1否
private String dispFlag;//0未处置 1处置中 2处置完成 private String dispFlag;//0未处置 1处置中 2处置完成
private String auditFlag;//审核状态0未审核; 1审核不通过;2审核通过 private String auditFlag;//审核状态0未审核; 1审核不通过;2审核通过
private String upNum;//点赞数量 private String upNum;//点赞数量
private String underNum;//点踩数量 private String underNum;//点踩数量
private String addressDesc;//详细地址描述 private String addressDesc;//详细地址描述
private String waterPointDesc;//现场情况说明 private String waterPointDesc;//现场情况说明
private String pointLevel;//积水点等级1重度2中度3轻度4无积水 private String pointLevel;//积水点等级1重度2中度3轻度4无积水
} }

View File

@ -4,8 +4,13 @@ import lombok.Data;
@Data @Data
public class WaterPointDtos { public class WaterPointDtos {
private String reportOrigin; private String reportOrigin;
private String ssqy; private String ssqy;
private Integer count; private Integer count;
private String pointLevel; private String pointLevel;
} }

View File

@ -6,14 +6,25 @@ import lombok.Data;
@Data @Data
@TableName("t_booth") @TableName("t_booth")
public class Booth { public class Booth {
private String serial; private String serial;
private String area; private String area;
private String boothName; private String boothName;
private String location; private String location;
private String manageTime; private String manageTime;
private String captureTime; private String captureTime;
private String channelCode; private String channelCode;
private String gpsX; private String gpsX;
private String gpsY; private String gpsY;
private String channelName; private String channelName;
} }

View File

@ -24,20 +24,28 @@ import java.time.LocalDateTime;
@TableName("t_building_records") @TableName("t_building_records")
@ApiModel("工地实时数据") @ApiModel("工地实时数据")
public class BuildingRecords { public class BuildingRecords {
@TableId @TableId
@ApiModelProperty("id") @ApiModelProperty("id")
private Integer id; private Integer id;
@ApiModelProperty("项目名称") @ApiModelProperty("项目名称")
private String projectName; private String projectName;
@ApiModelProperty("项目建筑批准编号") @ApiModelProperty("项目建筑批准编号")
private String buildLicense; private String buildLicense;
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
@ApiModelProperty("数据上传时间") @ApiModelProperty("数据上传时间")
private LocalDateTime pushTime; private LocalDateTime pushTime;
@ApiModelProperty("appid") @ApiModelProperty("appid")
private String appid; private String appid;
@ApiModelProperty("pm10值") @ApiModelProperty("pm10值")
private double pm10; private double pm10;
@ApiModelProperty("噪音值") @ApiModelProperty("噪音值")
private double noice; private double noice;
} }

View File

@ -18,12 +18,20 @@ import lombok.NoArgsConstructor;
@NoArgsConstructor @NoArgsConstructor
@TableName("t_building_new_site") @TableName("t_building_new_site")
public class BuildingSite { public class BuildingSite {
@TableId @TableId
private Integer id; private Integer id;
private String gdmc; private String gdmc;
private String sgwz; private String sgwz;
private double jd; private double jd;
private double wd; private double wd;
private String ssdq; private String ssdq;
private String yjsg; private String yjsg;
} }

View File

@ -14,13 +14,18 @@ public class Camera {
@TableId @TableId
private String code; private String code;
private String name; private String name;
private String description; private String description;
private String longitude; private String longitude;
private String latitude; private String latitude;
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date captureTime; private Date captureTime;
private String pic; private String pic;
} }

View File

@ -14,16 +14,9 @@ import lombok.Setter;
@Getter @Getter
@Setter @Setter
public class CameraCheck { public class CameraCheck {
private String cameraType;
private String channelCode;
// private String channelName;
// private String channelSn;
// private String channelType;
// private String deviceCode;
// private String deviceIp;
// private String deviceName;
// @JsonFormat(pattern="yyyyMMdd'T'HHmmss'Z'")
// private ZonedDateTime checkTime;
private String cameraType;
private String channelCode;
} }

View File

@ -7,6 +7,7 @@ import lombok.Data;
@Data @Data
@TableName("t_camera_organization") @TableName("t_camera_organization")
public class CameraOrganization { public class CameraOrganization {
@TableId @TableId
private String id; private String id;
@ -18,5 +19,4 @@ public class CameraOrganization {
private Integer subCount; private Integer subCount;
} }

View File

@ -11,6 +11,7 @@ public class CameraScenic {
@TableId @TableId
private String cameraId; private String cameraId;
private Integer personNum; private Integer personNum;
} }

View File

@ -22,39 +22,62 @@ import java.time.LocalDateTime;
@NoArgsConstructor @NoArgsConstructor
@TableName("t_case_cityLaw") @TableName("t_case_cityLaw")
public class CaseCityLaw { public class CaseCityLaw {
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
private Long id; private Long id;
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private LocalDateTime ajjlsj; private LocalDateTime ajjlsj;
private String dzms; private String dzms;
private String wtms; private String wtms;
private String wtlybs; private String wtlybs;
private String wtlymc; private String wtlymc;
private String ajlxbs; private String ajlxbs;
private String ajlxmc; private String ajlxmc;
private String dlbs; private String dlbs;
private String dlmc; private String dlmc;
private String xlbs; private String xlbs;
private String xlmc; private String xlmc;
private String qbs; private String qbs;
private String qmc; private String qmc;
private String jdbs; private String jdbs;
private String jdmc; private String jdmc;
private String sqbs; private String sqbs;
private String sqmc; private String sqmc;
private String xzb; private String xzb;
private String yzb; private String yzb;
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private LocalDateTime pqsj; private LocalDateTime pqsj;
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private LocalDateTime ajjssj; private LocalDateTime ajjssj;
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private LocalDateTime ajzfsj; private LocalDateTime ajzfsj;
private String czsxcqjaaqjacqwjayqja; private String czsxcqjaaqjacqwjayqja;
private String sbtpsl; private String sbtpsl;
private String cztpsl; private String cztpsl;
} }

View File

@ -10,6 +10,7 @@ import java.util.Date;
@Data @Data
@TableName("t_channel_picture") @TableName("t_channel_picture")
public class ChannelPicture { public class ChannelPicture {
@TableId @TableId
private String id; private String id;

View File

@ -10,20 +10,35 @@ import java.math.BigDecimal;
@Data @Data
@TableName("t_event") @TableName("t_event")
public class Event { public class Event {
@TableId @TableId
private String id; private String id;
private String eventCnName; private String eventCnName;
private String eventSerial; private String eventSerial;
private String color; private String color;
private String vehicle; private String vehicle;
private String classes; private String classes;
private String cameraName; private String cameraName;
private String district; private String district;
private BigDecimal latitude; private BigDecimal latitude;
private BigDecimal longitude; private BigDecimal longitude;
private String imageUrl; private String imageUrl;
private String taskId; private String taskId;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private String captureTime; private String captureTime;
private String trackEvent; private String trackEvent;
} }

View File

@ -7,13 +7,22 @@ import lombok.Data;
@Data @Data
@TableName("t_key_area") @TableName("t_key_area")
public class KeyArea { public class KeyArea {
@TableId @TableId
private Integer id; private Integer id;
private String type;//类型 private String type;//类型
private String name;//名称 private String name;//名称
private String location;//位置 private String location;//位置
private String serviceTime;//投用时间 private String serviceTime;//投用时间
private String management;//管理单位 private String management;//管理单位
private String scenicLevel;//景区级别 private String scenicLevel;//景区级别
private String about;//简介 private String about;//简介
} }

View File

@ -6,7 +6,11 @@ import lombok.Data;
@Data @Data
@TableName("t_key_area_location") @TableName("t_key_area_location")
public class KeyAreaLocation { public class KeyAreaLocation {
private Integer areaId; private Integer areaId;
private Double longitude; private Double longitude;
private Double latitude; private Double latitude;
} }

View File

@ -7,11 +7,16 @@ import lombok.Data;
@Data @Data
@TableName("t_label") @TableName("t_label")
public class Label { public class Label {
@TableId @TableId
private Long id; private Long id;
private String labelCode; private String labelCode;
private String labelName; private String labelName;
private String capturePatternn; private String capturePatternn;
private String city; private String city;
} }

View File

@ -18,13 +18,22 @@ import lombok.NoArgsConstructor;
@NoArgsConstructor @NoArgsConstructor
@TableName("t_passenger_flow") @TableName("t_passenger_flow")
public class PassengerFlow { public class PassengerFlow {
@TableId @TableId
private Integer id; private Integer id;
private String hourId; private String hourId;
private String timeId; private String timeId;
private String longitude; private String longitude;
private String latitude; private String latitude;
private String allNums; private String allNums;
private String localNums; private String localNums;
private String nonlocalNums; private String nonlocalNums;
} }

View File

@ -7,10 +7,16 @@ import lombok.Data;
@Data @Data
@TableName("t_passenger_test") @TableName("t_passenger_test")
public class PassengerTest { public class PassengerTest {
@TableId @TableId
private Integer id; private Integer id;
private double longitude; private double longitude;
private double latitude; private double latitude;
private String type; private String type;
private String areaName; private String areaName;
} }

View File

@ -10,12 +10,19 @@ import java.util.Date;
@Data @Data
@TableName("t_people_recognize") @TableName("t_people_recognize")
public class PeopleRecognize { public class PeopleRecognize {
@TableId @TableId
private String id; private String id;
private String channelCode; private String channelCode;
private String channelName; private String channelName;
private String picUrl; private String picUrl;
private Integer personNum; private Integer personNum;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
private Date insertTime; private Date insertTime;
} }

View File

@ -10,5 +10,7 @@ public class Picture {
@JsonFormat(pattern="yyyy-MM-dd mm:HH:ss",timezone = "GMT+8") @JsonFormat(pattern="yyyy-MM-dd mm:HH:ss",timezone = "GMT+8")
private Date captureTime; private Date captureTime;
private String pic; private String pic;
} }

View File

@ -14,17 +14,28 @@ public class Project {
@TableId @TableId
private String id; private String id;
private String ssqh; private String ssqh;
private String xmmc; private String xmmc;
private String xmdz; private String xmdz;
private String ghxkzbh; private String ghxkzbh;
private String fzsj; private String fzsj;
private String xkmj; private String xkmj;
private String lzs; private String lzs;
private String xmxz; private String xmxz;
private String jsdw; private String jsdw;
private String dwdz; private String dwdz;
@TableField(exist = false) @TableField(exist = false)
private List<Picture> pics; private List<Picture> pics;
} }

View File

@ -9,8 +9,11 @@ import lombok.Data;
public class Result<T> { public class Result<T> {
private int code; private int code;
private String message; private String message;
private T data; private T data;
private int count; private int count;
static public Result success(){ static public Result success(){
@ -19,6 +22,7 @@ public class Result<T> {
.message("success") .message("success")
.build(); .build();
} }
static public Result success(Object obj){ static public Result success(Object obj){
return Result.builder() return Result.builder()
.code(1) .code(1)
@ -26,10 +30,12 @@ public class Result<T> {
.data(obj) .data(obj)
.build(); .build();
} }
static public Result error(String errMsg){ static public Result error(String errMsg){
return Result.builder() return Result.builder()
.code(0) .code(0)
.message(errMsg) .message(errMsg)
.build(); .build();
} }
} }

View File

@ -21,22 +21,39 @@ import java.time.LocalDateTime;
@NoArgsConstructor @NoArgsConstructor
@TableName("t_road_data") @TableName("t_road_data")
public class RoadData { public class RoadData {
@TableId @TableId
private Integer id; private Integer id;
private String regionName; private String regionName;
private String streetName; private String streetName;
private String roadName; private String roadName;
private String start; private String start;
private String end; private String end;
private double lng; private double lng;
private double lat; private double lat;
private double pm10; private double pm10;
private double pm25; private double pm25;
private Integer descPm10Rank; private Integer descPm10Rank;
private Integer ascPm10Rank; private Integer ascPm10Rank;
private Integer descPm25Rank; private Integer descPm25Rank;
private Integer ascPm25Rank; private Integer ascPm25Rank;
private String points; private String points;
@JsonFormat(pattern="yyyy-MM-dd mm:HH:ss",timezone = "GMT+8") @JsonFormat(pattern="yyyy-MM-dd mm:HH:ss",timezone = "GMT+8")
private LocalDateTime dt; private LocalDateTime dt;
} }

View File

@ -24,42 +24,60 @@ import java.time.LocalDateTime;
@TableName("t_sanitation_info") @TableName("t_sanitation_info")
@ApiModel("环卫车辆基础数据") @ApiModel("环卫车辆基础数据")
public class Sanitation { public class Sanitation {
@TableId @TableId
@ApiModelProperty("id") @ApiModelProperty("id")
private Integer id; private Integer id;
@ApiModelProperty("车牌号") @ApiModelProperty("车牌号")
private String cph; private String cph;
@ApiModelProperty("驾驶员") @ApiModelProperty("驾驶员")
private String jsy; private String jsy;
@JsonFormat(pattern="yyyy-MM-dd mm:HH:ss",timezone = "GMT+8") @JsonFormat(pattern="yyyy-MM-dd mm:HH:ss",timezone = "GMT+8")
@ApiModelProperty("购买日期") @ApiModelProperty("购买日期")
private LocalDateTime gmri; private LocalDateTime gmri;
@ApiModelProperty("车辆类型") @ApiModelProperty("车辆类型")
private String cllx; private String cllx;
@ApiModelProperty("所属区域编号") @ApiModelProperty("所属区域编号")
private String ssqybh; private String ssqybh;
@ApiModelProperty("所属环卫公司编号") @ApiModelProperty("所属环卫公司编号")
private String sshwgsbh; private String sshwgsbh;
@ApiModelProperty("备注") @ApiModelProperty("备注")
private String bz; private String bz;
@ApiModelProperty("是否考核") @ApiModelProperty("是否考核")
private Integer sfkh; private Integer sfkh;
@ApiModelProperty("车辆编号") @ApiModelProperty("车辆编号")
private String clbh; private String clbh;
@ApiModelProperty("吨数") @ApiModelProperty("吨数")
private String ds; private String ds;
@ApiModelProperty("是否加装GPS并连入市监管平台") @ApiModelProperty("是否加装GPS并连入市监管平台")
private String sfjzgpsblrsjgpt; private String sfjzgpsblrsjgpt;
@ApiModelProperty("简介") @ApiModelProperty("简介")
private String jj; private String jj;
@ApiModelProperty("车辆型号") @ApiModelProperty("车辆型号")
private String clxh; private String clxh;
@ApiModelProperty("车辆大类") @ApiModelProperty("车辆大类")
private String cldl; private String cldl;
@ApiModelProperty("是否机扫") @ApiModelProperty("是否机扫")
private Integer sfjs; private Integer sfjs;
@ApiModelProperty("是否洒水") @ApiModelProperty("是否洒水")
private Integer sfss; private Integer sfss;
@ApiModelProperty("是否冲洗") @ApiModelProperty("是否冲洗")
private Integer sfcx; private Integer sfcx;

View File

@ -20,51 +20,96 @@ import lombok.NoArgsConstructor;
@TableName("t_sanitation_road") @TableName("t_sanitation_road")
@ApiModel("环卫道路数据") @ApiModel("环卫道路数据")
public class SanitationRoad { public class SanitationRoad {
@TableField @TableField
private Integer id; private Integer id;
private String bh; private String bh;
private String dlmc; private String dlmc;
private String qdlkdlmc; private String qdlkdlmc;
private String zdlkdlmc; private String zdlkdlmc;
private String zcgdlxzc; private String zcgdlxzc;
private String bjdj; private String bjdj;
private double dlzd; private double dlzd;
private double dlkd; private double dlkd;
private double dlzmj; private double dlzmj;
private double cxdmj; private double cxdmj;
private double rxdmj; private double rxdmj;
private double jsmj; private double jsmj;
private double ssmj; private double ssmj;
private double gycxmj; private double gycxmj;
private Integer bjysl; private Integer bjysl;
private Integer gpxsl; private Integer gpxsl;
private String ssqybh; private String ssqybh;
private String ssjdbsc; private String ssjdbsc;
private String sshwgsbh; private String sshwgsbh;
private String zbjh; private String zbjh;
private String sfqy; private String sfqy;
private String bz; private String bz;
private String bh1; private String bh1;
private Integer dtdlhzkd; private Integer dtdlhzkd;
private String zcgd; private String zcgd;
private String jsqz; private String jsqz;
private String cxqz; private String cxqz;
private String jj; private String jj;
private String tplj; private String tplj;
private String zbdfxbz0zx1fx; private String zbdfxbz0zx1fx;
private String fxzbxxid; private String fxzbxxid;
private String ys; private String ys;
private double btmx; private double btmx;
private Integer jsts; private Integer jsts;
private String jspc; private String jspc;
private Integer sfjs0bjs1js; private Integer sfjs0bjs1js;
private Integer sfss0bss1ss; private Integer sfss0bss1ss;
private Integer sfcx0bcx1cx; private Integer sfcx0bcx1cx;
private String sspc; private String sspc;
private String cxpc; private String cxpc;
private Integer ssts; private Integer ssts;
private Integer cxts; private Integer cxts;
private String sfkh; private String sfkh;
private String updatetime;
} }

View File

@ -24,44 +24,63 @@ import java.time.LocalDateTime;
@TableName("t_sanitation_task") @TableName("t_sanitation_task")
@ApiModel("环卫车辆作业数据") @ApiModel("环卫车辆作业数据")
public class SanitationTask { public class SanitationTask {
@TableId @TableId
@ApiModelProperty("id") @ApiModelProperty("id")
private Integer id; private Integer id;
@ApiModelProperty("道路名称") @ApiModelProperty("道路名称")
private String dlmc; private String dlmc;
@ApiModelProperty("开始道路") @ApiModelProperty("开始道路")
private String ksdl; private String ksdl;
@ApiModelProperty("终止道路") @ApiModelProperty("终止道路")
private String zzdl; private String zzdl;
@ApiModelProperty("所属区市") @ApiModelProperty("所属区市")
private String ssqs; private String ssqs;
@ApiModelProperty("车牌号") @ApiModelProperty("车牌号")
private String cph; private String cph;
@ApiModelProperty("作业完成率") @ApiModelProperty("作业完成率")
private double zywcl; private double zywcl;
@JsonFormat(pattern="yyyy-MM-dd mm:HH:ss",timezone = "GMT+8") @JsonFormat(pattern="yyyy-MM-dd mm:HH:ss",timezone = "GMT+8")
@ApiModelProperty("作业日期") @ApiModelProperty("作业日期")
private LocalDateTime zyrq; private LocalDateTime zyrq;
@ApiModelProperty("作业类型") @ApiModelProperty("作业类型")
private String zylx; private String zylx;
@ApiModelProperty("作业时间") @ApiModelProperty("作业时间")
private String zysj; private String zysj;
@ApiModelProperty("作业趟数") @ApiModelProperty("作业趟数")
private double zyts; private double zyts;
@ApiModelProperty("作业频次") @ApiModelProperty("作业频次")
private double zypc; private double zypc;
@ApiModelProperty("作业长度") @ApiModelProperty("作业长度")
private double zyzd; private double zyzd;
@ApiModelProperty("作业宽度") @ApiModelProperty("作业宽度")
private double zykd; private double zykd;
@ApiModelProperty("作业面积") @ApiModelProperty("作业面积")
private double zymj; private double zymj;
@ApiModelProperty("未作业点数") @ApiModelProperty("未作业点数")
private double wzyds; private double wzyds;
@ApiModelProperty("作业超速点数") @ApiModelProperty("作业超速点数")
private double zycsds; private double zycsds;
@ApiModelProperty("作业GPS点数") @ApiModelProperty("作业GPS点数")
private double zygpsds; private double zygpsds;
@JsonFormat(pattern="yyyy-MM-dd mm:HH:ss",timezone = "GMT+8") @JsonFormat(pattern="yyyy-MM-dd mm:HH:ss",timezone = "GMT+8")
@ApiModelProperty("上传时间") @ApiModelProperty("上传时间")
private LocalDateTime updatetime; private LocalDateTime updatetime;

View File

@ -21,21 +21,35 @@ import java.time.LocalDateTime;
@NoArgsConstructor @NoArgsConstructor
@TableName("t_trail_sediment") @TableName("t_trail_sediment")
public class SedimentTrail{ public class SedimentTrail{
@TableId @TableId
private Integer id; private Integer id;
private double speed; private double speed;
private String simCardNum; private String simCardNum;
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private LocalDateTime uploadtime; private LocalDateTime uploadtime;
private double coordinateX; private double coordinateX;
private double coordinateY; private double coordinateY;
private double longitude; private double longitude;
private double latitude; private double latitude;
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private LocalDateTime recordTime; private LocalDateTime recordTime;
private double angle; private double angle;
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private LocalDateTime updateTime; private LocalDateTime updateTime;
private String status; private String status;
private double fuel; private double fuel;
} }

View File

@ -1,11 +1,12 @@
package com.hisense.monitormanage.entity; package com.hisense.monitormanage.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
@Data @Data
@TableName("t_test_code") @TableName("t_test_code")
public class TestCode { public class TestCode {
private String channelCode; private String channelCode;
} }

View File

@ -21,25 +21,44 @@ import java.time.LocalDateTime;
@NoArgsConstructor @NoArgsConstructor
@TableName("t_trail_sanitation") @TableName("t_trail_sanitation")
public class TrailSanitation { public class TrailSanitation {
@TableId @TableId
private Integer id; private Integer id;
private String simkh; private String simkh;
private String cph; private String cph;
private String wz; private String wz;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private LocalDateTime fssj; private LocalDateTime fssj;
private double jd; private double jd;
private double wd; private double wd;
private double sd; private double sd;
private Integer fx; private Integer fx;
private String zt; private String zt;
private double yl; private double yl;
private double lc; private double lc;
private double yl2; private double yl2;
private Integer sfzx; private Integer sfzx;
private Integer xh; private Integer xh;
private String bjzt; private String bjzt;
private double gd; private double gd;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private LocalDateTime updatetime; private LocalDateTime updatetime;
} }

View File

@ -7,10 +7,12 @@ import lombok.Data;
@Data @Data
@TableName("t_user_login") @TableName("t_user_login")
public class UserLogin { public class UserLogin {
@TableId @TableId
private Integer id; private Integer id;
private String username; private String username;
private String password; private String password;
} }

View File

@ -1,18 +1,24 @@
package com.hisense.monitormanage.entity; package com.hisense.monitormanage.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
@Data @Data
@TableName("w_camera") @TableName("w_camera")
public class WCamera { public class WCamera {
private Integer waterId; private Integer waterId;
private String ChannelCode; private String ChannelCode;
private String channelName; private String channelName;
private String gpsX; private String gpsX;
private String gpsY; private String gpsY;
private String illustrate; private String illustrate;
private String videoCapture; private String videoCapture;
} }

View File

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

View File

@ -12,4 +12,5 @@ public interface BoothMapper extends BaseMapper<Booth> {
@Select("select * from t_booth where capture_time = #{captureTime}") @Select("select * from t_booth where capture_time = #{captureTime}")
List<Booth> selectBooth(String captureTime); List<Booth> selectBooth(String captureTime);
} }

View File

@ -20,6 +20,7 @@ import java.util.Map;
*/ */
@Repository @Repository
public interface BuildingRecordsMapper extends BaseMapper<BuildingRecords> { public interface BuildingRecordsMapper extends BaseMapper<BuildingRecords> {
public void batchSave(@Param("list") List<Map> list); public void batchSave(@Param("list") List<Map> list);
void batchUpdate(@Param("list") List<Map> list); void batchUpdate(@Param("list") List<Map> list);

View File

@ -58,6 +58,6 @@ public interface CameraChannelMapper extends BaseMapper<CameraChannel> {
List<CameraChannelNLDto> selectNLAll(@Param("page") Integer page,@Param("pageSize") Integer pageSize); List<CameraChannelNLDto> selectNLAll(@Param("page") Integer page,@Param("pageSize") Integer pageSize);
@Select("SELECT * FROM t_camera_channel WHERE channel_code < '183_37028301831321234380' AND channel_code > '183_37028301831321232834' ORDER BY channel_code DESC\n" ) @Select("SELECT * FROM t_camera_channel WHERE channel_code < '183_37028301831321232723' AND channel_code > '183_37028301831321231067' ORDER BY channel_code DESC" )
List<CameraChannel> selectCameraChannel(); List<CameraChannel> selectCameraChannel();
} }

View File

@ -16,6 +16,7 @@ import java.util.Map;
*/ */
@Repository @Repository
public interface CaseCityLawMapper extends BaseMapper<CaseCityLaw> { public interface CaseCityLawMapper extends BaseMapper<CaseCityLaw> {
public void batchSave(List<Map> list);
public void singleSave(Map map); void batchSave(List<Map> list);
} }

View File

@ -13,7 +13,9 @@ import java.util.Map;
@Repository @Repository
public interface PassengerFlowMapper extends BaseMapper<PassengerFlow> { public interface PassengerFlowMapper extends BaseMapper<PassengerFlow> {
void batchSave(List<Map> list); void batchSave(List<Map> list);
PassengerFlow getByMaxId(); PassengerFlow getByMaxId();
List<PassengerFlow> selectByTime(String timeId); List<PassengerFlow> selectByTime(String timeId);

View File

@ -10,6 +10,7 @@ import java.util.List;
@Repository @Repository
public interface PeopleRecognizeMapper extends BaseMapper<PeopleRecognize> { public interface PeopleRecognizeMapper extends BaseMapper<PeopleRecognize> {
@Select("select pr.*,cc.* from t_camera_channel cc JOIN t_people_recognize pr ON cc.channel_code = pr.channel_code") @Select("select pr.*,cc.* from t_camera_channel cc JOIN t_people_recognize pr ON cc.channel_code = pr.channel_code")
List<PeopleRecognizeDto> selectPeopleRecognize(); List<PeopleRecognizeDto> selectPeopleRecognize();

View File

@ -18,7 +18,8 @@ import java.util.Map;
*/ */
@Repository @Repository
public interface RoadDataMapper extends BaseMapper<RoadData> { public interface RoadDataMapper extends BaseMapper<RoadData> {
public void batchSave(List<Map> list);
void batchSave(List<Map> list);
List<RoadData> selectRoadData(@Param("page") Integer page,@Param("pageSize") Integer pageSize); List<RoadData> selectRoadData(@Param("page") Integer page,@Param("pageSize") Integer pageSize);

View File

@ -17,7 +17,9 @@ import java.util.Map;
*/ */
@Repository @Repository
public interface SanitationMapper extends BaseMapper<Sanitation> { public interface SanitationMapper extends BaseMapper<Sanitation> {
void batchSave(@Param("list") List<Map> list);
void batchSaveSanitationRoad(@Param("list") List<Map> list); void batchSaveSanitationRoad(@Param("list") List<Map> list);
void batchSaveSanitationTask(@Param("list") List<Map> list); void batchSaveSanitationTask(@Param("list") List<Map> list);
} }

View File

@ -16,5 +16,7 @@ import java.util.Map;
*/ */
@Repository @Repository
public interface SedimentTrailMapper extends BaseMapper<SedimentTrail> { public interface SedimentTrailMapper extends BaseMapper<SedimentTrail> {
public void batchaSave(List<Map> list);
void batchaSave(List<Map> list);
} }

View File

@ -11,7 +11,8 @@ import java.util.Map;
@Repository @Repository
public interface TrailSanitationMapper extends BaseMapper<TrailSanitation> { public interface TrailSanitationMapper extends BaseMapper<TrailSanitation> {
public void batchaSave(List<Map> list);
void batchaSave(List<Map> list);
@Select("select * from t_trail_sanitation") @Select("select * from t_trail_sanitation")
List<TrailSanitation> selectAllTrailSanitation(); List<TrailSanitation> selectAllTrailSanitation();

View File

@ -12,6 +12,7 @@ import java.util.List;
@Repository @Repository
public interface WaterPointMapper extends BaseMapper<WaterPoint> { public interface WaterPointMapper extends BaseMapper<WaterPoint> {
@Select("select * from water_point wp LEFT JOIN water_point_report wpr ON wp.water_point_id = wpr.water_point_id WHERE wp.audit_flag = '2' and wp.disp_flag in (0,1)") @Select("select * from water_point wp LEFT JOIN water_point_report wpr ON wp.water_point_id = wpr.water_point_id WHERE wp.audit_flag = '2' and wp.disp_flag in (0,1)")
List<WaterPointDto> selectWaterPoint(); List<WaterPointDto> selectWaterPoint();

View File

@ -28,8 +28,10 @@ import java.util.Map;
@Service @Service
@Slf4j @Slf4j
public class BuildingRecordsService { public class BuildingRecordsService {
@Autowired @Autowired
private BuildingRecordsMapper buildingRecordsMapper; private BuildingRecordsMapper buildingRecordsMapper;
@Autowired @Autowired
private RestTemplate restTemplate; private RestTemplate restTemplate;
@ -40,7 +42,6 @@ public class BuildingRecordsService {
map.put("timestamp",""); map.put("timestamp","");
map.put("sign",""); map.put("sign","");
map.put("data",""); map.put("data","");
ResponseEntity<JSONObject> responseEntity; ResponseEntity<JSONObject> responseEntity;
List<Map> maps = new ArrayList<>(); List<Map> maps = new ArrayList<>();
try{ try{
@ -65,7 +66,6 @@ public class BuildingRecordsService {
public boolean getAndSaveRecords(){ public boolean getAndSaveRecords(){
List<Map> maps = this.getRecords(); List<Map> maps = this.getRecords();
boolean result = false; boolean result = false;
if(maps.size() > 0){ if(maps.size() > 0){
List<List<Map>> lists = Lists.partition(maps,200); List<List<Map>> lists = Lists.partition(maps,200);
try{ try{
@ -83,7 +83,6 @@ public class BuildingRecordsService {
public boolean getUpdateRecords(){ public boolean getUpdateRecords(){
List<Map> maps = this.getRecords(); List<Map> maps = this.getRecords();
boolean result = false; boolean result = false;
if(maps.size() > 0){ if(maps.size() > 0){
List<List<Map>> lists = Lists.partition(maps,200); List<List<Map>> lists = Lists.partition(maps,200);
try{ try{
@ -104,6 +103,4 @@ public class BuildingRecordsService {
list = buildingRecordsMapper.selectList(wrapper); list = buildingRecordsMapper.selectList(wrapper);
return list; return list;
} }
} }

View File

@ -307,7 +307,7 @@ public class MonitorService {
/** /**
* 所有摄像头抓图 sql持续更新 * 所有摄像头抓图 sql持续更新
*/ */
@Scheduled(cron = "0 0 6 * * ?") //@Scheduled(cron = "0 0 6 * * ?")
public void CameraScreenshot () { public void CameraScreenshot () {
try { try {
log.info("[monitor-capture]: start capture"); log.info("[monitor-capture]: start capture");

View File

@ -35,17 +35,6 @@ public class SanitationService {
@Autowired @Autowired
private SanitationTaskMapper sanitationTaskMapper; private SanitationTaskMapper sanitationTaskMapper;
public Result saveSantation(){
List<Map> list = qidiService.resCatalogApplyHJWSBase();
if(list.size() > 0){
List<List<Map>> maps = Lists.partition(list,100);
}
return null;
}
public Result saveSanitationRoad(){ public Result saveSanitationRoad(){
List<Map> list = qidiService.resCatalogApplyHJWSRoad(); List<Map> list = qidiService.resCatalogApplyHJWSRoad();
try{ try{

View File

@ -1,26 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hisense.monitormanage.mapper.SanitationMapper"> <mapper namespace="com.hisense.monitormanage.mapper.SanitationMapper">
<insert id="batchSave" parameterType="java.util.List">
insert into t_sanitation_info
(cph,jsy,gmri,cllx,ssqybh,sshwgsbh,bz,sfkh,clbh,ds,sfjzgpsblrsjgpt,jj,
clxh,cldl,sfjs,sfss,sfcx
)
values
<foreach collection="list" item="item" separator=",">
(
#{item.cph},#{item.cph},#{item.cph},#{item.cph},#{item.cph},#{item.cph},
#{item.cph},#{item.cph},#{item.cph},#{item.cph},#{item.cph},#{item.cph}
)
</foreach>
</insert>
<insert id="batchSaveSanitationRoad" parameterType="java.util.List"> <insert id="batchSaveSanitationRoad" parameterType="java.util.List">
insert into t_sanitation_road insert into t_sanitation_road
(bh,dlmc,qdlkdlmc,zdlkdlmc,zcgdlxzc,bjdj,dlzd,dlkd,dlzmj,cxdmj,rxdmj,jsmj,ssmj, (bh,dlmc,qdlkdlmc,zdlkdlmc,zcgdlxzc,bjdj,dlzd,dlkd,dlzmj,cxdmj,rxdmj,jsmj,ssmj,
gycxmj,bjysl,gpxsl,ssqybh,ssjdbsc,sshwgsbh,zbjh,sfqy,bh1,dtdlhzkd, gycxmj,bjysl,gpxsl,ssqybh,ssjdbsc,sshwgsbh,zbjh,sfqy,bh1,dtdlhzkd,
zcgd,jsqz,cxqz,jj,tplj,zbdfxbz0zx1fx,fxzbxxid,ys,btmx,jsts,jspc, zcgd,jsqz,cxqz,jj,tplj,zbdfxbz0zx1fx,fxzbxxid,ys,btmx,jsts,jspc,
sfjs0bjs1js,sfss0bss1ss,sfcx0bcx1cx,sspc,cxpc,ssts,cxts,sfkh sfjs0bjs1js,sfss0bss1ss,sfcx0bcx1cx,sspc,cxpc,ssts,cxts,sfkh,updatetime
) )
values values
<foreach collection="list" item="item" separator=","> <foreach collection="list" item="item" separator=",">
@ -31,7 +17,7 @@
#{item.ZBJH},#{item.SFQY},#{item.BH1},#{item.DTDLHZKD},#{item.ZCGD},#{item.JSQZ}, #{item.ZBJH},#{item.SFQY},#{item.BH1},#{item.DTDLHZKD},#{item.ZCGD},#{item.JSQZ},
#{item.CXQZ},#{item.JJ},#{item.TPLJ},#{item.ZBDFXBZ0ZX1FX},#{item.FXZBXXID},#{item.YS}, #{item.CXQZ},#{item.JJ},#{item.TPLJ},#{item.ZBDFXBZ0ZX1FX},#{item.FXZBXXID},#{item.YS},
#{item.BTMX},#{item.JSTS},#{item.JSPC},#{item.SFJS0BJS1JS},#{item.SFSS0BSS1SS},#{item.SFCX0BCX1CX}, #{item.BTMX},#{item.JSTS},#{item.JSPC},#{item.SFJS0BJS1JS},#{item.SFSS0BSS1SS},#{item.SFCX0BCX1CX},
#{item.SSPC},#{item.CXPC},#{item.SSTS},#{item.CXTS},#{item.SFKH} #{item.SSPC},#{item.CXPC},#{item.SSTS},#{item.CXTS},#{item.SFKH},#{item.updatetime}
) )
</foreach> </foreach>
</insert> </insert>