parent
3bcf550b83
commit
3f922de2b1
|
@ -6,6 +6,7 @@ import com.hisense.monitormanage.dto.PeopleRecognizeDto;
|
|||
import com.hisense.monitormanage.entity.PeopleRecognize;
|
||||
import com.hisense.monitormanage.entity.Result;
|
||||
import com.hisense.monitormanage.mapper.PeopleRecognizeMapper;
|
||||
import com.hisense.monitormanage.service.MonitorService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -20,6 +21,9 @@ import java.util.List;
|
|||
@Api(tags = "人流识别算法")
|
||||
public class PeopleRecognizeController {
|
||||
|
||||
@Autowired
|
||||
private MonitorService monitorService;
|
||||
|
||||
@Autowired
|
||||
private PeopleRecognizeMapper peopleRecognizeMapper;
|
||||
|
||||
|
@ -41,4 +45,11 @@ public class PeopleRecognizeController {
|
|||
Result success = Result.success(lists);
|
||||
return success;
|
||||
}
|
||||
|
||||
@GetMapping("recover")
|
||||
public Object recover(){
|
||||
monitorService.peopleRecognize();
|
||||
return "finish recover";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -15,4 +15,5 @@ public class BuildingRecordsDto {
|
|||
private double pm10;//扬尘
|
||||
private double noice;//噪声
|
||||
private String yjsg;//夜间施工
|
||||
private String picUrl;//图片路径
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ public class ChannelPictureDto {
|
|||
|
||||
private String PicUrl;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
||||
private Date insertTime;
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package com.hisense.monitormanage.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
@ -18,6 +19,7 @@ public class EventDto {
|
|||
private BigDecimal longitude;
|
||||
private String imageUrl;
|
||||
private String taskId;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
||||
private String captureTime;
|
||||
private String trackEvent;
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ public class ChannelPicture {
|
|||
|
||||
private String PicUrl;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
private Date insertTime;
|
||||
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@ package com.hisense.monitormanage.entity;
|
|||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
@ -22,6 +23,7 @@ public class Event {
|
|||
private BigDecimal longitude;
|
||||
private String imageUrl;
|
||||
private String taskId;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
private String captureTime;
|
||||
private String trackEvent;
|
||||
}
|
||||
|
|
|
@ -21,7 +21,9 @@ public interface BuildingRecordsMapper extends BaseMapper<BuildingRecords> {
|
|||
|
||||
void batchUpdate(@Param("list") List<Map> list);
|
||||
|
||||
@Select("SELECT * FROM t_building_new_site bns JOIN t_building_records br ON bns.gdmc = br.project_name")
|
||||
@Select("SELECT rns.*,cp.pic_url from (SELECT bns.*,br.project_name,br.push_time,br.pm10,br.noice FROM " +
|
||||
"t_building_new_site bns JOIN t_building_records br ON bns.gdmc = br.project_name) rns LEFT JOIN " +
|
||||
"t_channel_picture cp ON rns.channel_code = cp.channel_code")
|
||||
List<BuildingRecordsDto> selectAllBuilding();
|
||||
|
||||
@Select("select * from t_building_records br JOIN t_building_new_site bs on br.project_name = bs.gdmc " +
|
||||
|
|
|
@ -14,7 +14,6 @@ import java.util.Map;
|
|||
* @createTime 2022年05月13日 16:22:00
|
||||
*/
|
||||
public interface CaseCityLawMapper extends BaseMapper<CaseCityLaw> {
|
||||
//public void batchSave(List<Map> list);
|
||||
public void batchSave(List<Map> list);
|
||||
public void singleSave(Map map);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue