Commit fddd467384e19fca8d14cb27ad8423d92aceb7d6

Authored by Liu Haoyu
1 parent 40c853a1

去掉设备相关内容;

Showing 40 changed files with 86 additions and 784 deletions
src/main/java/com/objecteye/controller/HumanVehicleAssociationController.java
... ... @@ -29,9 +29,9 @@ public class HumanVehicleAssociationController {
29 29  
30 30 @ApiOperation("以人搜车")
31 31 @RequestMapping(value = "/hvAssociation/searchVehicleFromHuman", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
32   - public CommonResult searchVehicleFromHuman(@RequestParam Long starttime, @RequestParam Long endtime, @RequestParam Float thresholds, @RequestParam int[] customspass, @RequestParam int currentpage, @RequestParam int pagevolume, MultipartFile picfile) {
  32 + public CommonResult searchVehicleFromHuman(@RequestParam Long starttime, @RequestParam Long endtime, @RequestParam Float thresholds, @RequestParam int currentpage, @RequestParam int pagevolume, MultipartFile picfile) {
33 33 try {
34   - PageResult pageResult = humanVehicleAssociationService.searchVehicleFromHuman(starttime, endtime, thresholds, customspass, currentpage, pagevolume, picfile);
  34 + PageResult pageResult = humanVehicleAssociationService.searchVehicleFromHuman(starttime, endtime, thresholds, currentpage, pagevolume, picfile);
35 35 if (pageResult == null || pageResult.getRow().size() == 0) {
36 36 return CommonResult.success(201, "没有符合要求的数据", null);
37 37 }
... ... @@ -47,7 +47,7 @@ public class HumanVehicleAssociationController {
47 47 @RequestMapping(value = "/hvAssociation/searchPeopleFromHphm", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
48 48 public CommonResult searchPeopleFromHphm(@RequestBody SearchPeopleOfHphmRequest searchPeopleOfHphmRequest) {
49 49 try {
50   - SearchPeopleOfhphmResult searchPeopleOfhphmResult = humanVehicleAssociationService.searchPeopleFromHphm(searchPeopleOfHphmRequest.getStarttime(), searchPeopleOfHphmRequest.getEndtime(), searchPeopleOfHphmRequest.getCustomspass(), searchPeopleOfHphmRequest.getCurrentpage(),
  50 + SearchPeopleOfhphmResult searchPeopleOfhphmResult = humanVehicleAssociationService.searchPeopleFromHphm(searchPeopleOfHphmRequest.getStarttime(), searchPeopleOfHphmRequest.getEndtime(), searchPeopleOfHphmRequest.getCurrentpage(),
51 51 searchPeopleOfHphmRequest.getPagevolume(), searchPeopleOfHphmRequest.getHphm());
52 52 List<SearchPeopleOfHphmInfo> row = searchPeopleOfhphmResult.getRow();
53 53 if (row == null || row.size() == 0) {
... ...
src/main/java/com/objecteye/controller/LocusOrbitController.java
... ... @@ -78,7 +78,6 @@ public class LocusOrbitController {
78 78 * 轨迹分析接口(图片搜索)
79 79 *
80 80 * @param gcxh 车辆序号
81   - * @param customsPass 地区id, 设备id, 自行判断是地区的还是设备的
82 81 * @param startTime 起始时间戳
83 82 * @param endTime 结束时间戳
84 83 * @param multipartFile 文件信息
... ... @@ -87,8 +86,8 @@ public class LocusOrbitController {
87 86 @PostMapping("locusOrbitAnalysisByFile")
88 87 @ResponseBody
89 88 @ApiOperation("轨迹分析接口")
90   - public CommonResult locusOrbitByPlateNumber(int gcxh, Integer customsPass, Long startTime, Long endTime, MultipartFile multipartFile) {
91   - LocusOrbitQueryParams queryParams = new LocusOrbitQueryParams(customsPass, startTime, endTime, null);
  89 + public CommonResult locusOrbitByPlateNumber(int gcxh, Long startTime, Long endTime, MultipartFile multipartFile) {
  90 + LocusOrbitQueryParams queryParams = new LocusOrbitQueryParams(startTime, endTime, null);
92 91 List<LocusOrbitResultParams> resultList = locusOrbitService.locusOrbitByPlateNumber(gcxh, queryParams, multipartFile);
93 92 return resultList.size() > 0 ? CommonResult.success(resultList) : CommonResult.success(201, "没有符合要求的值", new ArrayList<>());
94 93 }
... ...
src/main/java/com/objecteye/controller/SpecialtyVehicleController.java
... ... @@ -61,8 +61,8 @@ public class SpecialtyVehicleController {
61 61 @RequestMapping("/slagCar/findByPic")
62 62 public JSONObject findByPic(@RequestParam int number, @RequestParam double threshold, @RequestParam int currentpage,
63 63 @RequestParam int pagevolume, MultipartFile picfile, @RequestParam Long starttime,
64   - @RequestParam Long endtime, @RequestParam int[] customspass) throws InterruptedException {
65   - return specialtyServices.findByPic(number, threshold, currentpage, pagevolume, picfile, starttime, endtime, customspass, 2);
  64 + @RequestParam Long endtime) throws InterruptedException {
  65 + return specialtyServices.findByPic(number, threshold, currentpage, pagevolume, picfile, starttime, endtime, 2);
66 66 }
67 67  
68 68 /**
... ... @@ -114,8 +114,8 @@ public class SpecialtyVehicleController {
114 114 @RequestMapping("/chemistryCar/findByPic")
115 115 public JSONObject chemistryFindByPic(@RequestParam int number, @RequestParam Double threshold, @RequestParam int currentpage,
116 116 @RequestParam int pagevolume, MultipartFile picfile, @RequestParam Long starttime,
117   - @RequestParam Long endtime, @RequestParam int[] customspass) throws InterruptedException {
118   - return specialtyServices.findByPic(number, threshold, currentpage, pagevolume, picfile, starttime, endtime, customspass, 1);
  117 + @RequestParam Long endtime) throws InterruptedException {
  118 + return specialtyServices.findByPic(number, threshold, currentpage, pagevolume, picfile, starttime, endtime, 1);
119 119  
120 120 }
121 121  
... ...
src/main/java/com/objecteye/controller/VehicleCurrencyController.java
... ... @@ -52,16 +52,15 @@ public class VehicleCurrencyController {
52 52 * @param picfile
53 53 * @param starttime
54 54 * @param endtime
55   - * @param customspass
56 55 * @return
57 56 */
58 57 @RequestMapping("/car/findByPic")
59 58 public CommonResult<PicVehicleDataResult> findByPic(@RequestParam int number, @RequestParam double threshold,
60 59 @RequestParam int currentpage, @RequestParam int pagevolume,
61 60 MultipartFile picfile, @RequestParam Long starttime,
62   - @RequestParam Long endtime, @RequestParam int[] customspass) throws InterruptedException {
  61 + @RequestParam Long endtime) throws InterruptedException {
63 62 return vehicleCurrencyService.findVehicleByPic(number, threshold, currentpage, pagevolume, picfile, starttime,
64   - endtime, customspass);
  63 + endtime);
65 64 }
66 65  
67 66 /**
... ...
src/main/java/com/objecteye/dao/MongoTemplates.java
... ... @@ -61,7 +61,6 @@ public class MongoTemplates {
61 61 Long starttime = vehicleCondition.getStarttime();
62 62 Long endtime = vehicleCondition.getEndtime();
63 63 int[] condition = vehicleCondition.getCondition();
64   - int[] customspass = vehicleCondition.getCustomspass();
65 64 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
66 65  
67 66 //特殊品类检索
... ... @@ -131,17 +130,14 @@ public class MongoTemplates {
131 130  
132 131 //按时间进行排序
133 132 query.with(new Sort(Sort.Direction.DESC, "pictime"));
134   -
135   -// 分页
  133 + // 分页
136 134 query.skip((currentpage - 1) * pagevolume).limit(pagevolume);
137 135  
138 136 vehicleTable = mongoTemplate.find(query, JSONObject.class, "rabbitMQVehicle");
139 137  
140 138 JSONObject data = new JSONObject();
141 139 JSONArray array = new JSONArray();
142   - int size = vehicleTable.size();
143   - for (int i = 0; i < size; i++) {
144   - JSONObject json = vehicleTable.get(i);
  140 + for (JSONObject json : vehicleTable) {
145 141 String id = json.containsKey("_id") ? json.getString("_id") : null;
146 142 String hphm_new = json.containsKey("vehicle_plate_hphm") ? json.getString("vehicle_plate_hphm") : null;
147 143 String equipmentName = json.containsKey("equipmentName") ? json.getString("equipmentName") : null;
... ... @@ -154,16 +150,8 @@ public class MongoTemplates {
154 150 json.put("phototime", pictime);
155 151 json.put("recordid", recordid);
156 152  
157   - //修改原有的picurl的值
158   - String picurl = json.getString("picurl");
159   -// JSONArray vehicle_detect_syRectParam = json.getJSONArray("vehicle_detect_syRectParam");
160   -// String base64 =vehicleDetailsUtils.picToSnapshot(picurl, vehicle_detect_syRectParam.getInteger(1), vehicle_detect_syRectParam.getInteger(2), vehicle_detect_syRectParam.getInteger(3), vehicle_detect_syRectParam.getInteger(0));
161   -// json.put("picurl",base64); //此处添加的是全景图的base64
162   -// json.put("picurl",picurl); //此处添加的是全景图的url
163   -
164 153 //添加snapshoturl的值
165 154 String snapshoturl = json.getString("snapshoturl");
166   -// json.put("snapshoturl",snapshoturl);
167 155 json.put("picurl", snapshoturl); //此处将原来的全景图url换成了快照图绝对路径
168 156  
169 157 array.add(json);
... ... @@ -216,7 +204,6 @@ public class MongoTemplates {
216 204 Long starttime = vehicleCondition.getStarttime();
217 205 Long endtime = vehicleCondition.getEndtime();
218 206 int[] condition = vehicleCondition.getCondition();
219   - int[] customspass = vehicleCondition.getCustomspass();
220 207  
221 208 //模糊号牌检索
222 209 if (hphm != null && hphm.length() > 0) {
... ...
src/main/java/com/objecteye/entity/LocusOrbitQueryParams.java
... ... @@ -19,11 +19,6 @@ public class LocusOrbitQueryParams implements Serializable {
19 19 private static final long serialVersionUID = -8007831938659574791L;
20 20  
21 21 /**
22   - * 地区id, 设备id, 自行判断是地区的还是设备的
23   - */
24   - private Integer customsPass;
25   -
26   - /**
27 22 * 时间区间- 起始时间戳
28 23 */
29 24 private Long startTime;
... ...
src/main/java/com/objecteye/entity/MonitorMainTableQueryInfo.java
... ... @@ -38,10 +38,6 @@ public class MonitorMainTableQueryInfo implements Serializable {
38 38 */
39 39 private Integer pagevolume;
40 40 /**
41   - * 设备id
42   - */
43   - private Integer customsPass;
44   - /**
45 41 * 车牌号
46 42 */
47 43 private String plateNumber;
... ...
src/main/java/com/objecteye/entity/PersonMsg.java
... ... @@ -16,8 +16,6 @@ public class PersonMsg implements Serializable {
16 16  
17 17 private String id;
18 18  
19   - private Integer deviceId;
20   -
21 19 private String imageUrl;
22 20  
23 21 private long captureTime;
... ...
src/main/java/com/objecteye/entity/PlateAlarmMsg.java
... ... @@ -21,15 +21,7 @@ public class PlateAlarmMsg implements Serializable {
21 21 /**
22 22 * 布控任务id
23 23 */
24   - private Integer deployId;
25   - /**
26   - * 设备id
27   - */
28   - private int deviceId;
29   - /**
30   - * 设备名称
31   - */
32   - private String equipmentName;
  24 + private String deployId;
33 25 /**
34 26 * 经度
35 27 */
... ... @@ -75,8 +67,6 @@ public class PlateAlarmMsg implements Serializable {
75 67 this.id = builder.id;
76 68 this.baseId = builder.baseId;
77 69 this.deployId = builder.deployId;
78   - this.deviceId = builder.deviceId;
79   - this.equipmentName = builder.equipmentName;
80 70 this.longitude = builder.longitude;
81 71 this.latitude = builder.latitude;
82 72 this.libUrl = builder.libUrl;
... ... @@ -100,15 +90,7 @@ public class PlateAlarmMsg implements Serializable {
100 90 /**
101 91 * 布控任务id
102 92 */
103   - private Integer deployId;
104   - /**
105   - * 设备id
106   - */
107   - private int deviceId;
108   - /**
109   - * 设备名称
110   - */
111   - private String equipmentName;
  93 + private String deployId;
112 94 /**
113 95 * 经度
114 96 */
... ... @@ -160,21 +142,11 @@ public class PlateAlarmMsg implements Serializable {
160 142 return this;
161 143 }
162 144  
163   - public Builder deployId(Integer deployId) {
  145 + public Builder deployId(String deployId) {
164 146 this.deployId = deployId;
165 147 return this;
166 148 }
167 149  
168   - public Builder deviceId(int deviceId) {
169   - this.deviceId = deviceId;
170   - return this;
171   - }
172   -
173   - public Builder equipmentName(String equipmentName) {
174   - this.equipmentName = equipmentName;
175   - return this;
176   - }
177   -
178 150 public Builder longitude(String longitude) {
179 151 this.longitude = longitude;
180 152 return this;
... ...
src/main/java/com/objecteye/entity/SyVehicleForbidenTask.java
... ... @@ -30,9 +30,6 @@ public class SyVehicleForbidenTask implements Serializable {
30 30 @ApiModelProperty(value = "生效区域id")
31 31 private String areaId;
32 32  
33   - @ApiModelProperty(value = "区域id对应的设备id")
34   - private String deviceId;
35   -
36 33 @ApiModelProperty(value = "禁行车辆种类")
37 34 private String vehicleType;
38 35  
... ...
src/main/java/com/objecteye/entity/UploadVehicleResult.java
... ... @@ -17,6 +17,8 @@ import java.io.Serializable;
17 17 @Data
18 18 public class UploadVehicleResult implements Serializable {
19 19  
  20 + private static final long serialVersionUID = 2874367705571176380L;
  21 +
20 22 private String id;
21 23 //单车辆全部分析结果
22 24 private VpInfoParam[] info;
... ... @@ -25,8 +27,6 @@ public class UploadVehicleResult implements Serializable {
25 27 //数量
26 28 private int count;
27 29  
28   - private int deviceId;
29   -
30 30 private String imageUrl;
31 31  
32 32 private long captureTime;
... ... @@ -37,11 +37,10 @@ public class UploadVehicleResult implements Serializable {
37 37  
38 38 private String latitude;
39 39  
40   - public void set(VpInfoParam[] info, String picName, int count, int deviceId, String imageUrl, long captureTime, String equipmentName, String longitude, String latitude) {
  40 + public void set(VpInfoParam[] info, String picName, int count, String imageUrl, long captureTime, String equipmentName, String longitude, String latitude) {
41 41 this.info = info;
42 42 this.picName = picName;
43 43 this.count = count;
44   - this.deviceId = deviceId;
45 44 this.imageUrl = imageUrl;
46 45 this.captureTime = captureTime;
47 46 this.equipmentName = equipmentName;
... ...
src/main/java/com/objecteye/entity/VehicleDetailMsg.java
... ... @@ -11,10 +11,6 @@ public class VehicleDetailMsg {
11 11  
12 12 private String id;
13 13 /**
14   - * 设备号码
15   - */
16   - private int deviceId;
17   - /**
18 14 * 抓拍时间
19 15 */
20 16 private long captureTime;
... ...
src/main/java/com/objecteye/entity/VehicleSimpleResult.java
... ... @@ -40,8 +40,4 @@ public class VehicleSimpleResult implements Serializable {
40 40 * 人像地址
41 41 */
42 42 private String personUrl;
43   - /**
44   - * 设备名称
45   - */
46   - private String equipmentName;
47 43 }
... ...
src/main/java/com/objecteye/entity/VehicleViolationsForbidenTaskQueryParams.java
... ... @@ -27,9 +27,6 @@ public class VehicleViolationsForbidenTaskQueryParams implements Serializable {
27 27 @ApiModelProperty("过滤任务结束时间")
28 28 private Long endTime;
29 29  
30   - @ApiModelProperty("区域id")
31   - private String customsPass;
32   -
33 30 @ApiModelProperty("车类")
34 31 private String type;
35 32  
... ...
src/main/java/com/objecteye/entity/VvehicleFilePlateNumberQueryResult.java
... ... @@ -44,9 +44,6 @@ public class VvehicleFilePlateNumberQueryResult implements Serializable {
44 44 @ApiModelProperty("纬度")
45 45 private String latitude;
46 46  
47   - @ApiModelProperty("设备名称")
48   - private String equipmentName;
49   -
50 47 @ApiModelProperty("抓拍时间")
51 48 private String pictime;
52 49 }
53 50 \ No newline at end of file
... ...
src/main/java/com/objecteye/pojo/PicVehicleRow.java
... ... @@ -27,7 +27,5 @@ public class PicVehicleRow implements Serializable {
27 27  
28 28 private String similar;
29 29  
30   - private String site;
31   -
32 30 private String phototime;
33 31 }
... ...
src/main/java/com/objecteye/pojo/RabbitMQVehicle.java
... ... @@ -21,12 +21,9 @@ public class RabbitMQVehicle {
21 21 * 在档案中的位置
22 22 */
23 23 private int count;
24   - /**
25   - * 设备id
26   - */
27   - private int deviceid;
28   - private String equipmentName;
  24 +
29 25 private String longitude;
  26 +
30 27 private String latitude;
31 28 /**
32 29 * 图片的路径
... ... @@ -121,7 +118,7 @@ public class RabbitMQVehicle {
121 118 */
122 119 private String snapshoturl;
123 120  
124   - public RabbitMQVehicle(int count, int deviceid, String equipmentName, String longitude, String latitude, String picurl, int recordid,
  121 + public RabbitMQVehicle(int count, String longitude, String latitude, String picurl, int recordid,
125 122 Long pictime, int flag, int tag, String personid, int[] vehicleplaterect, double vehicleplatedetectscore, int vehicleplatetype,
126 123 double vehicle_plate_numScore, double vehicle_color_score, int vehicle_color_index, double vehicle_detect_score,
127 124 int[] vehicle_detect_syRectParam, double vehicle_win_score, int[] vehicle_win_syRectParam, int vehicle_special_type,
... ... @@ -138,8 +135,6 @@ public class RabbitMQVehicle {
138 135 PendantParams[] vehicle_pendant_Params, PlatePlateNumParams[] vehicle_plate_plateNumParams, String vehicle_plate_hphm,
139 136 Integer vehicle_pendant_detect_njbnumber, Integer vehicle_pendant_detect_gjexis, Integer vehicle_pendant_detect_zybexis, String personUrl, String snapshoturl) {
140 137 this.count = count;
141   - this.deviceid = deviceid;
142   - this.equipmentName = equipmentName;
143 138 this.longitude = longitude;
144 139 this.latitude = latitude;
145 140 this.picurl = picurl;
... ...
src/main/java/com/objecteye/pojo/RabbitMQVehicle.java.bak deleted
1   -package com.objecteye.pojo;
2   -
3   -import org.springframework.stereotype.Component;
4   -
5   -@Component
6   -public class RabbitMQVehicle1 {
7   - private String id; //车辆id
8   - private int count;//在档案中的位置
9   - private int deviceid; //设备id
10   - private String equipmentName;
11   - private String longitude;
12   - private String latitude;
13   - private String picurl; //图片的路径
14   - private int recordid; //车辆档案id
15   - private Long pictime; //抓拍时间
16   - private int flag; //是否报警
17   - private int tag; //是否确认
18   - private String personid; //人像id
19   - private int[] vehicleplaterect; //车牌位置
20   - private double vehicleplatedetectscore; //车牌检测分数
21   - private int vehicleplatetype; //车牌类型
22   - private double vehicle_plate_numScore;
23   - private double vehicle_color_score;
24   - private int vehicle_color_index;
25   - private double vehicle_detect_score;
26   - private int[] vehicle_detect_syRectParam;
27   - private double vehicle_win_score;
28   - private int[] vehicle_win_syRectParam;
29   - private int vehicle_special_type;
30   - private double vehicle_special_score;
31   - private double vehicle_illegal_driver_smoke_confidence;
32   - private int vehicle_illegal_driver_smoke_status;
33   - private double vehicle_illegal_driver_belt_confidence;
34   - private int vehicle_illegal_driver_belt_status;
35   - private double vehicle_illegal_driver_phone_confidence;
36   - private int vehicle_illegal_driver_phone_status;
37   - private double vehicle_illegal_driver_person_confidence;
38   - private int vehicle_illegal_driver_person_status;
39   - private double vehicle_illegal_copilot_smoke_confidence;
40   - private int vehicle_illegal_copilot_smoke_status;
41   - private double vehicle_illegal_copilot_belt_confidence;
42   - private int vehicle_illegal_copilot_belt_status;
43   - private double vehicle_illegal_copilot_phone_confidence;
44   - private int vehicle_illegal_copilot_phone_status;
45   - private double vehicle_illegal_copilot_person_confidence;
46   - private int vehicle_illegal_copilot_person_status;
47   - private String vehicle_recg_issue_year;
48   - private String vehicle_recg_brand;
49   - private String vehicle_recg_type;
50   - private String vehicle_recg_subbrand;
51   - private String vehicle_recg_freight_ton; //吨数
52   - private double vehicle_recg_name_score;
53   - private int vehicle_pendant_count;
54   - private double[] vehicle_fea_feature;
55   - private PendantParams[] vehicle_pendant_Params;
56   - private PlatePlateNumParams[] vehicle_plate_plateNumParams;
57   - private String vehicle_plate_hphm;
58   -
59   - public RabbitMQVehicle1() {}
60   -
61   - public RabbitMQVehicle1(String id, int count, int deviceid, String equipmentName, String longitude, String latitude, String picurl, int recordid, Long pictime, int flag, int tag, String personid, int[] vehicleplaterect, double vehicleplatedetectscore, int vehicleplatetype, double vehicle_plate_numScore, double vehicle_color_score, int vehicle_color_index, double vehicle_detect_score, int[] vehicle_detect_syRectParam, double vehicle_win_score, int[] vehicle_win_syRectParam, int vehicle_special_type, double vehicle_special_score, double vehicle_illegal_driver_smoke_confidence, int vehicle_illegal_driver_smoke_status, double vehicle_illegal_driver_belt_confidence, int vehicle_illegal_driver_belt_status, double vehicle_illegal_driver_phone_confidence, int vehicle_illegal_driver_phone_status, double vehicle_illegal_driver_person_confidence, int vehicle_illegal_driver_person_status, double vehicle_illegal_copilot_smoke_confidence, int vehicle_illegal_copilot_smoke_status, double vehicle_illegal_copilot_belt_confidence, int vehicle_illegal_copilot_belt_status, double vehicle_illegal_copilot_phone_confidence, int vehicle_illegal_copilot_phone_status, double vehicle_illegal_copilot_person_confidence, int vehicle_illegal_copilot_person_status, String vehicle_recg_issue_year, String vehicle_recg_brand, String vehicle_recg_type, String vehicle_recg_subbrand, String vehicle_recg_freight_ton, double vehicle_recg_name_score, int vehicle_pendant_count, double[] vehicle_fea_feature, PendantParams[] vehicle_pendant_Params, PlatePlateNumParams[] vehicle_plate_plateNumParams, String vehicle_plate_hphm) {
62   - this.id = id;
63   - this.count = count;
64   - this.deviceid = deviceid;
65   - this.equipmentName = equipmentName;
66   - this.longitude = longitude;
67   - this.latitude = latitude;
68   - this.picurl = picurl;
69   - this.recordid = recordid;
70   - this.pictime = pictime;
71   - this.flag = flag;
72   - this.tag = tag;
73   - this.personid = personid;
74   - this.vehicleplaterect = vehicleplaterect;
75   - this.vehicleplatedetectscore = vehicleplatedetectscore;
76   - this.vehicleplatetype = vehicleplatetype;
77   - this.vehicle_plate_numScore = vehicle_plate_numScore;
78   - this.vehicle_color_score = vehicle_color_score;
79   - this.vehicle_color_index = vehicle_color_index;
80   - this.vehicle_detect_score = vehicle_detect_score;
81   - this.vehicle_detect_syRectParam = vehicle_detect_syRectParam;
82   - this.vehicle_win_score = vehicle_win_score;
83   - this.vehicle_win_syRectParam = vehicle_win_syRectParam;
84   - this.vehicle_special_type = vehicle_special_type;
85   - this.vehicle_special_score = vehicle_special_score;
86   - this.vehicle_illegal_driver_smoke_confidence = vehicle_illegal_driver_smoke_confidence;
87   - this.vehicle_illegal_driver_smoke_status = vehicle_illegal_driver_smoke_status;
88   - this.vehicle_illegal_driver_belt_confidence = vehicle_illegal_driver_belt_confidence;
89   - this.vehicle_illegal_driver_belt_status = vehicle_illegal_driver_belt_status;
90   - this.vehicle_illegal_driver_phone_confidence = vehicle_illegal_driver_phone_confidence;
91   - this.vehicle_illegal_driver_phone_status = vehicle_illegal_driver_phone_status;
92   - this.vehicle_illegal_driver_person_confidence = vehicle_illegal_driver_person_confidence;
93   - this.vehicle_illegal_driver_person_status = vehicle_illegal_driver_person_status;
94   - this.vehicle_illegal_copilot_smoke_confidence = vehicle_illegal_copilot_smoke_confidence;
95   - this.vehicle_illegal_copilot_smoke_status = vehicle_illegal_copilot_smoke_status;
96   - this.vehicle_illegal_copilot_belt_confidence = vehicle_illegal_copilot_belt_confidence;
97   - this.vehicle_illegal_copilot_belt_status = vehicle_illegal_copilot_belt_status;
98   - this.vehicle_illegal_copilot_phone_confidence = vehicle_illegal_copilot_phone_confidence;
99   - this.vehicle_illegal_copilot_phone_status = vehicle_illegal_copilot_phone_status;
100   - this.vehicle_illegal_copilot_person_confidence = vehicle_illegal_copilot_person_confidence;
101   - this.vehicle_illegal_copilot_person_status = vehicle_illegal_copilot_person_status;
102   - this.vehicle_recg_issue_year = vehicle_recg_issue_year;
103   - this.vehicle_recg_brand = vehicle_recg_brand;
104   - this.vehicle_recg_type = vehicle_recg_type;
105   - this.vehicle_recg_subbrand = vehicle_recg_subbrand;
106   - this.vehicle_recg_freight_ton = vehicle_recg_freight_ton;
107   - this.vehicle_recg_name_score = vehicle_recg_name_score;
108   - this.vehicle_pendant_count = vehicle_pendant_count;
109   - this.vehicle_fea_feature = vehicle_fea_feature;
110   - this.vehicle_pendant_Params = vehicle_pendant_Params;
111   - this.vehicle_plate_plateNumParams = vehicle_plate_plateNumParams;
112   - this.vehicle_plate_hphm = vehicle_plate_hphm;
113   - }
114   -
115   - public String getId() {
116   - return id;
117   - }
118   -
119   - public void setId(String id) {
120   - this.id = id;
121   - }
122   -
123   - public int getCount() {
124   - return count;
125   - }
126   -
127   - public void setCount(int count) {
128   - this.count = count;
129   - }
130   -
131   - public int getDeviceid() {
132   - return deviceid;
133   - }
134   -
135   - public void setDeviceid(int deviceid) {
136   - this.deviceid = deviceid;
137   - }
138   -
139   - public String getEquipmentName() {
140   - return equipmentName;
141   - }
142   -
143   - public void setEquipmentName(String equipmentName) {
144   - this.equipmentName = equipmentName;
145   - }
146   -
147   - public String getLongitude() {
148   - return longitude;
149   - }
150   -
151   - public void setLongitude(String longitude) {
152   - this.longitude = longitude;
153   - }
154   -
155   - public String getLatitude() {
156   - return latitude;
157   - }
158   -
159   - public void setLatitude(String latitude) {
160   - this.latitude = latitude;
161   - }
162   -
163   - public String getPicurl() {
164   - return picurl;
165   - }
166   -
167   - public void setPicurl(String picurl) {
168   - this.picurl = picurl;
169   - }
170   -
171   - public int getRecordid() {
172   - return recordid;
173   - }
174   -
175   - public void setRecordid(int recordid) {
176   - this.recordid = recordid;
177   - }
178   -
179   - public Long getPictime() {
180   - return pictime;
181   - }
182   -
183   - public void setPictime(Long pictime) {
184   - this.pictime = pictime;
185   - }
186   -
187   - public int getFlag() {
188   - return flag;
189   - }
190   -
191   - public void setFlag(int flag) {
192   - this.flag = flag;
193   - }
194   -
195   - public int getTag() {
196   - return tag;
197   - }
198   -
199   - public void setTag(int tag) {
200   - this.tag = tag;
201   - }
202   -
203   - public String getPersonid() {
204   - return personid;
205   - }
206   -
207   - public void setPersonid(String personid) {
208   - this.personid = personid;
209   - }
210   -
211   - public int[] getVehicleplaterect() {
212   - return vehicleplaterect;
213   - }
214   -
215   - public void setVehicleplaterect(int[] vehicleplaterect) {
216   - this.vehicleplaterect = vehicleplaterect;
217   - }
218   -
219   - public double getVehicleplatedetectscore() {
220   - return vehicleplatedetectscore;
221   - }
222   -
223   - public void setVehicleplatedetectscore(double vehicleplatedetectscore) {
224   - this.vehicleplatedetectscore = vehicleplatedetectscore;
225   - }
226   -
227   - public int getVehicleplatetype() {
228   - return vehicleplatetype;
229   - }
230   -
231   - public void setVehicleplatetype(int vehicleplatetype) {
232   - this.vehicleplatetype = vehicleplatetype;
233   - }
234   -
235   - public double getVehicle_plate_numScore() {
236   - return vehicle_plate_numScore;
237   - }
238   -
239   - public void setVehicle_plate_numScore(double vehicle_plate_numScore) {
240   - this.vehicle_plate_numScore = vehicle_plate_numScore;
241   - }
242   -
243   - public double getVehicle_color_score() {
244   - return vehicle_color_score;
245   - }
246   -
247   - public void setVehicle_color_score(double vehicle_color_score) {
248   - this.vehicle_color_score = vehicle_color_score;
249   - }
250   -
251   - public int getVehicle_color_index() {
252   - return vehicle_color_index;
253   - }
254   -
255   - public void setVehicle_color_index(int vehicle_color_index) {
256   - this.vehicle_color_index = vehicle_color_index;
257   - }
258   -
259   - public double getVehicle_detect_score() {
260   - return vehicle_detect_score;
261   - }
262   -
263   - public void setVehicle_detect_score(double vehicle_detect_score) {
264   - this.vehicle_detect_score = vehicle_detect_score;
265   - }
266   -
267   - public int[] getVehicle_detect_syRectParam() {
268   - return vehicle_detect_syRectParam;
269   - }
270   -
271   - public void setVehicle_detect_syRectParam(int[] vehicle_detect_syRectParam) {
272   - this.vehicle_detect_syRectParam = vehicle_detect_syRectParam;
273   - }
274   -
275   - public double getVehicle_win_score() {
276   - return vehicle_win_score;
277   - }
278   -
279   - public void setVehicle_win_score(double vehicle_win_score) {
280   - this.vehicle_win_score = vehicle_win_score;
281   - }
282   -
283   - public int[] getVehicle_win_syRectParam() {
284   - return vehicle_win_syRectParam;
285   - }
286   -
287   - public void setVehicle_win_syRectParam(int[] vehicle_win_syRectParam) {
288   - this.vehicle_win_syRectParam = vehicle_win_syRectParam;
289   - }
290   -
291   - public int getVehicle_special_type() {
292   - return vehicle_special_type;
293   - }
294   -
295   - public void setVehicle_special_type(int vehicle_special_type) {
296   - this.vehicle_special_type = vehicle_special_type;
297   - }
298   -
299   - public double getVehicle_special_score() {
300   - return vehicle_special_score;
301   - }
302   -
303   - public void setVehicle_special_score(double vehicle_special_score) {
304   - this.vehicle_special_score = vehicle_special_score;
305   - }
306   -
307   - public double getVehicle_illegal_driver_smoke_confidence() {
308   - return vehicle_illegal_driver_smoke_confidence;
309   - }
310   -
311   - public void setVehicle_illegal_driver_smoke_confidence(double vehicle_illegal_driver_smoke_confidence) {
312   - this.vehicle_illegal_driver_smoke_confidence = vehicle_illegal_driver_smoke_confidence;
313   - }
314   -
315   - public int getVehicle_illegal_driver_smoke_status() {
316   - return vehicle_illegal_driver_smoke_status;
317   - }
318   -
319   - public void setVehicle_illegal_driver_smoke_status(int vehicle_illegal_driver_smoke_status) {
320   - this.vehicle_illegal_driver_smoke_status = vehicle_illegal_driver_smoke_status;
321   - }
322   -
323   - public double getVehicle_illegal_driver_belt_confidence() {
324   - return vehicle_illegal_driver_belt_confidence;
325   - }
326   -
327   - public void setVehicle_illegal_driver_belt_confidence(double vehicle_illegal_driver_belt_confidence) {
328   - this.vehicle_illegal_driver_belt_confidence = vehicle_illegal_driver_belt_confidence;
329   - }
330   -
331   - public int getVehicle_illegal_driver_belt_status() {
332   - return vehicle_illegal_driver_belt_status;
333   - }
334   -
335   - public void setVehicle_illegal_driver_belt_status(int vehicle_illegal_driver_belt_status) {
336   - this.vehicle_illegal_driver_belt_status = vehicle_illegal_driver_belt_status;
337   - }
338   -
339   - public double getVehicle_illegal_driver_phone_confidence() {
340   - return vehicle_illegal_driver_phone_confidence;
341   - }
342   -
343   - public void setVehicle_illegal_driver_phone_confidence(double vehicle_illegal_driver_phone_confidence) {
344   - this.vehicle_illegal_driver_phone_confidence = vehicle_illegal_driver_phone_confidence;
345   - }
346   -
347   - public int getVehicle_illegal_driver_phone_status() {
348   - return vehicle_illegal_driver_phone_status;
349   - }
350   -
351   - public void setVehicle_illegal_driver_phone_status(int vehicle_illegal_driver_phone_status) {
352   - this.vehicle_illegal_driver_phone_status = vehicle_illegal_driver_phone_status;
353   - }
354   -
355   - public double getVehicle_illegal_driver_person_confidence() {
356   - return vehicle_illegal_driver_person_confidence;
357   - }
358   -
359   - public void setVehicle_illegal_driver_person_confidence(double vehicle_illegal_driver_person_confidence) {
360   - this.vehicle_illegal_driver_person_confidence = vehicle_illegal_driver_person_confidence;
361   - }
362   -
363   - public int getVehicle_illegal_driver_person_status() {
364   - return vehicle_illegal_driver_person_status;
365   - }
366   -
367   - public void setVehicle_illegal_driver_person_status(int vehicle_illegal_driver_person_status) {
368   - this.vehicle_illegal_driver_person_status = vehicle_illegal_driver_person_status;
369   - }
370   -
371   - public double getVehicle_illegal_copilot_smoke_confidence() {
372   - return vehicle_illegal_copilot_smoke_confidence;
373   - }
374   -
375   - public void setVehicle_illegal_copilot_smoke_confidence(double vehicle_illegal_copilot_smoke_confidence) {
376   - this.vehicle_illegal_copilot_smoke_confidence = vehicle_illegal_copilot_smoke_confidence;
377   - }
378   -
379   - public int getVehicle_illegal_copilot_smoke_status() {
380   - return vehicle_illegal_copilot_smoke_status;
381   - }
382   -
383   - public void setVehicle_illegal_copilot_smoke_status(int vehicle_illegal_copilot_smoke_status) {
384   - this.vehicle_illegal_copilot_smoke_status = vehicle_illegal_copilot_smoke_status;
385   - }
386   -
387   - public double getVehicle_illegal_copilot_belt_confidence() {
388   - return vehicle_illegal_copilot_belt_confidence;
389   - }
390   -
391   - public void setVehicle_illegal_copilot_belt_confidence(double vehicle_illegal_copilot_belt_confidence) {
392   - this.vehicle_illegal_copilot_belt_confidence = vehicle_illegal_copilot_belt_confidence;
393   - }
394   -
395   - public int getVehicle_illegal_copilot_belt_status() {
396   - return vehicle_illegal_copilot_belt_status;
397   - }
398   -
399   - public void setVehicle_illegal_copilot_belt_status(int vehicle_illegal_copilot_belt_status) {
400   - this.vehicle_illegal_copilot_belt_status = vehicle_illegal_copilot_belt_status;
401   - }
402   -
403   - public double getVehicle_illegal_copilot_phone_confidence() {
404   - return vehicle_illegal_copilot_phone_confidence;
405   - }
406   -
407   - public void setVehicle_illegal_copilot_phone_confidence(double vehicle_illegal_copilot_phone_confidence) {
408   - this.vehicle_illegal_copilot_phone_confidence = vehicle_illegal_copilot_phone_confidence;
409   - }
410   -
411   - public int getVehicle_illegal_copilot_phone_status() {
412   - return vehicle_illegal_copilot_phone_status;
413   - }
414   -
415   - public void setVehicle_illegal_copilot_phone_status(int vehicle_illegal_copilot_phone_status) {
416   - this.vehicle_illegal_copilot_phone_status = vehicle_illegal_copilot_phone_status;
417   - }
418   -
419   - public double getVehicle_illegal_copilot_person_confidence() {
420   - return vehicle_illegal_copilot_person_confidence;
421   - }
422   -
423   - public void setVehicle_illegal_copilot_person_confidence(double vehicle_illegal_copilot_person_confidence) {
424   - this.vehicle_illegal_copilot_person_confidence = vehicle_illegal_copilot_person_confidence;
425   - }
426   -
427   - public int getVehicle_illegal_copilot_person_status() {
428   - return vehicle_illegal_copilot_person_status;
429   - }
430   -
431   - public void setVehicle_illegal_copilot_person_status(int vehicle_illegal_copilot_person_status) {
432   - this.vehicle_illegal_copilot_person_status = vehicle_illegal_copilot_person_status;
433   - }
434   -
435   - public String getVehicle_recg_issue_year() {
436   - return vehicle_recg_issue_year;
437   - }
438   -
439   - public void setVehicle_recg_issue_year(String vehicle_recg_issue_year) {
440   - this.vehicle_recg_issue_year = vehicle_recg_issue_year;
441   - }
442   -
443   - public String getVehicle_recg_brand() {
444   - return vehicle_recg_brand;
445   - }
446   -
447   - public void setVehicle_recg_brand(String vehicle_recg_brand) {
448   - this.vehicle_recg_brand = vehicle_recg_brand;
449   - }
450   -
451   - public String getVehicle_recg_type() {
452   - return vehicle_recg_type;
453   - }
454   -
455   - public void setVehicle_recg_type(String vehicle_recg_type) {
456   - this.vehicle_recg_type = vehicle_recg_type;
457   - }
458   -
459   - public String getVehicle_recg_subbrand() {
460   - return vehicle_recg_subbrand;
461   - }
462   -
463   - public void setVehicle_recg_subbrand(String vehicle_recg_subbrand) {
464   - this.vehicle_recg_subbrand = vehicle_recg_subbrand;
465   - }
466   -
467   - public String getVehicle_recg_freight_ton() {
468   - return vehicle_recg_freight_ton;
469   - }
470   -
471   - public void setVehicle_recg_freight_ton(String vehicle_recg_freight_ton) {
472   - this.vehicle_recg_freight_ton = vehicle_recg_freight_ton;
473   - }
474   -
475   - public double getVehicle_recg_name_score() {
476   - return vehicle_recg_name_score;
477   - }
478   -
479   - public void setVehicle_recg_name_score(double vehicle_recg_name_score) {
480   - this.vehicle_recg_name_score = vehicle_recg_name_score;
481   - }
482   -
483   - public int getVehicle_pendant_count() {
484   - return vehicle_pendant_count;
485   - }
486   -
487   - public void setVehicle_pendant_count(int vehicle_pendant_count) {
488   - this.vehicle_pendant_count = vehicle_pendant_count;
489   - }
490   -
491   - public double[] getVehicle_fea_feature() {
492   - return vehicle_fea_feature;
493   - }
494   -
495   - public void setVehicle_fea_feature(double[] vehicle_fea_feature) {
496   - this.vehicle_fea_feature = vehicle_fea_feature;
497   - }
498   -
499   - public PendantParams[] getVehicle_pendant_Params() {
500   - return vehicle_pendant_Params;
501   - }
502   -
503   - public void setVehicle_pendant_Params(PendantParams[] vehicle_pendant_Params) {
504   - this.vehicle_pendant_Params = vehicle_pendant_Params;
505   - }
506   -
507   - public PlatePlateNumParams[] getVehicle_plate_plateNumParams() {
508   - return vehicle_plate_plateNumParams;
509   - }
510   -
511   - public void setVehicle_plate_plateNumParams(PlatePlateNumParams[] vehicle_plate_plateNumParams) {
512   - this.vehicle_plate_plateNumParams = vehicle_plate_plateNumParams;
513   - }
514   -
515   - public String getVehicle_plate_hphm() {
516   - return vehicle_plate_hphm;
517   - }
518   -
519   - public void setVehicle_plate_hphm(String vehicle_plate_hphm) {
520   - this.vehicle_plate_hphm = vehicle_plate_hphm;
521   - }
522   -}
src/main/java/com/objecteye/pojo/RabbitMqVehicleViolation.java
... ... @@ -30,16 +30,16 @@ public class RabbitMqVehicleViolation implements Serializable {
30 30 */
31 31 private String baseId;
32 32 /**
33   - * 设备id
34   - */
35   - private int deviceid;
36   - /**
37 33 * 抓拍时间
38 34 */
39 35 private Long pictime;
  36 +
40 37 private int vehicle_special_type;
  38 +
41 39 private double vehicle_special_score;
  40 +
42 41 private String vehicle_plate_hphm;
  42 +
43 43 private String personUrl;
44 44 /**
45 45 * 额外添加的snapshotUrl
... ...
src/main/java/com/objecteye/pojo/SearchPeopleOfHphmInfo.java
... ... @@ -15,8 +15,6 @@ public class SearchPeopleOfHphmInfo {
15 15  
16 16 private String picTime;
17 17  
18   - private String equipmentName;
19   -
20 18 private String hphm;
21 19  
22 20 private String personUrl;
... ...
src/main/java/com/objecteye/pojo/SearchPeopleOfHphmRequest.java
... ... @@ -23,8 +23,6 @@ public class SearchPeopleOfHphmRequest implements Serializable {
23 23  
24 24 private Long endtime;
25 25  
26   - private int[] customspass;
27   -
28 26 private String hphm;
29 27  
30 28 }
... ...
src/main/java/com/objecteye/pojo/SearchVehicleFromPeopleInfo.java
... ... @@ -15,8 +15,6 @@ public class SearchVehicleFromPeopleInfo {
15 15  
16 16 private String picTime;
17 17  
18   - private String equipmentName;
19   -
20 18 private String hphm;
21 19  
22 20 private double driverSimilar;
... ...
src/main/java/com/objecteye/pojo/VehicleCondition.java
... ... @@ -35,8 +35,6 @@ public class VehicleCondition implements Serializable {
35 35  
36 36 private Long endtime;
37 37  
38   - private int[] customspass;
39   -
40 38 private Integer vehicleSpecialType;
41 39 /**
42 40 * 车颜色
... ...
src/main/java/com/objecteye/pojo/VehicleCurrencyReques.java
... ... @@ -53,7 +53,5 @@ public class VehicleCurrencyReques implements Serializable {
53 53  
54 54 private Long endTime;
55 55  
56   - private int[] customspass;
57   -
58 56  
59 57 }
... ...
src/main/java/com/objecteye/pojo/VehicleMongo.java
... ... @@ -9,8 +9,6 @@ public class VehicleMongo {
9 9  
10 10 private String vehicleid;
11 11  
12   - private Integer deviceid;
13   -
14 12 private String picurl;
15 13  
16 14 private Integer vehiclerecordfieid;
... ...
src/main/java/com/objecteye/service/HumanVehicleAssociationService.java
... ... @@ -16,7 +16,7 @@ public interface HumanVehicleAssociationService {
16 16 *
17 17 * @return
18 18 */
19   - PageResult searchVehicleFromHuman(Long starttime, Long endtime, Float thresholds, int[] customspass, int currentpage, int pagevolume, MultipartFile picfile);
  19 + PageResult searchVehicleFromHuman(Long starttime, Long endtime, Float thresholds, int currentpage, int pagevolume, MultipartFile picfile);
20 20  
21 21 /**
22 22 * 在mongodb中通过retrieveKey获取车辆信息
... ... @@ -33,14 +33,14 @@ public interface HumanVehicleAssociationService {
33 33 * @param hphm
34 34 * @return
35 35 */
36   - SearchPeopleOfhphmResult searchPeopleFromHphm(Long starttime, Long endtime, int[] customspass, Integer currentpage, Integer pagevolume, String hphm);
  36 + SearchPeopleOfhphmResult searchPeopleFromHphm(Long starttime, Long endtime, Integer currentpage, Integer pagevolume, String hphm);
37 37  
38 38 /**
39 39 * 通过车辆号牌获取到车辆信息
40 40 *
41 41 * @return
42 42 */
43   - List<RabbitMQVehicle> findByHphm(Long starttime, Long endtime, int[] customspass, String hphm, int currentPage, int pageSize);
  43 + List<RabbitMQVehicle> findByHphm(Long starttime, Long endtime, String hphm, int currentPage, int pageSize);
44 44  
45 45 /**
46 46 * 通过retrieveKey获取到人信息
... ...
src/main/java/com/objecteye/service/SpecialtyServices.java
... ... @@ -26,7 +26,7 @@ public interface SpecialtyServices {
26 26 *
27 27 * @return
28 28 */
29   - JSONObject findByPic(int number, double threshold, int currentpage, int pagevolume, MultipartFile picfile, Long starttime, Long endtime, int[] customspass, Integer vehicle_special_type_number) throws InterruptedException;
  29 + JSONObject findByPic(int number, double threshold, int currentpage, int pagevolume, MultipartFile picfile, Long starttime, Long endtime, Integer vehicle_special_type_number) throws InterruptedException;
30 30  
31 31  
32 32 /**
... ... @@ -44,7 +44,7 @@ public interface SpecialtyServices {
44 44 * @return
45 45 */
46 46 @RequestMapping("/chemistryCar/findByPic")
47   - VehicleInfoRes chemistryFindByPic(int number, double threshold, int currentpage, int pagevolume, MultipartFile picfile, String starttime, String endtime, int[] customspass);
  47 + VehicleInfoRes chemistryFindByPic(int number, double threshold, int currentpage, int pagevolume, MultipartFile picfile, String starttime, String endtime);
48 48  
49 49 /**
50 50 * 通过图片返回每辆车的坐标
... ...
src/main/java/com/objecteye/service/VehicleCurrencyService.java
... ... @@ -25,7 +25,7 @@ public interface VehicleCurrencyService {
25 25 *
26 26 * @return
27 27 */
28   - CommonResult<PicVehicleDataResult> findVehicleByPic(int number, double threshold, int currentpage, int pagevolume, MultipartFile picfile, Long starttime, Long endtime, int[] customspass) throws InterruptedException;
  28 + CommonResult<PicVehicleDataResult> findVehicleByPic(int number, double threshold, int currentpage, int pagevolume, MultipartFile picfile, Long starttime, Long endtime) throws InterruptedException;
29 29  
30 30  
31 31 /**
... ...
src/main/java/com/objecteye/service/impl/DeployServiceImpl.java
... ... @@ -412,9 +412,9 @@ public class DeployServiceImpl implements DeployService {
412 412 Aggregation.project("deployId", "count")
413 413 );
414 414 AggregationResults<JSONObject> aggregationResults = mongoTemplate.aggregate(aggregation, "plateAlarmMsg", JSONObject.class);
415   - List<JSONObject> deviceIdsWarningNumberList = aggregationResults.getMappedResults();
  415 + List<JSONObject> deployIdsWarningNumberList = aggregationResults.getMappedResults();
416 416 Map<String, Long> resultMap = new HashMap<>(16);
417   - for (JSONObject jsonObject : deviceIdsWarningNumberList) {
  417 + for (JSONObject jsonObject : deployIdsWarningNumberList) {
418 418 if (jsonObject == null) {
419 419 continue;
420 420 }
... ... @@ -603,7 +603,6 @@ public class DeployServiceImpl implements DeployService {
603 603 for (PlateAlarmMsg plateAlarmMsg : plateAlarmMsgs) {
604 604 MonitorMainTableResultInfo monitorMainTableResultInfo = new MonitorMainTableResultInfo();
605 605 if (null != plateAlarmMsg) {
606   - monitorMainTableResultInfo.setAddress(plateAlarmMsg.getEquipmentName());
607 606 monitorMainTableResultInfo.setPlateNumber(plateAlarmMsg.getPlateNum());
608 607 monitorMainTableResultInfo.setSnapshotUrl(plateAlarmMsg.getSnapshotUrl());
609 608 monitorMainTableResultInfo.setPicTime(plateAlarmMsg.getAlarmTime());
... ... @@ -636,11 +635,10 @@ public class DeployServiceImpl implements DeployService {
636 635 */
637 636 @Override
638 637 public void rabbitMqMsgListener(RabbitMQVehicle rabbitMqVehicle) {
639   - int deviceId = rabbitMqVehicle.getDeviceid();
640 638 // 设备id - 布控任务
641   - List<Integer> integers = (List<Integer>) redisTemplate.opsForHash().get(GlobalUtil.IPWITHDEPLOYLIST, deviceId);
642   - if (null != integers) {
643   - for (Integer deployId : integers) {
  639 + List<String> deployIds = getAllDeployTaskStatusEqualsTo0();
  640 + if (null != deployIds) {
  641 + for (String deployId : deployIds) {
644 642 // 获取布控类型
645 643 Integer deployType = (Integer) redisTemplate.opsForHash().get(GlobalUtil.DEPLOY_TYPE, deployId);
646 644 if (null != deployType) {
... ... @@ -656,14 +654,22 @@ public class DeployServiceImpl implements DeployService {
656 654 }
657 655 }
658 656  
  657 + /**
  658 + * 获取所有未删除并且处于激活状态的任务主键
  659 + *
  660 + * @return 结果集
  661 + */
  662 + List<String> getAllDeployTaskStatusEqualsTo0() {
  663 + return mongoTemplate.find(Query.query(Criteria.where("status").is(0).and("isDelete").is(0)), SyDeploy.class)
  664 + .stream().map(SyDeploy::getId).collect(Collectors.toList());
  665 + }
  666 +
659 667 @Override
660 668 public void rabbitMqMsgListener(PersonMsg personMsg) {
661   - int deviceId = personMsg.getDeviceId();
662   -
663 669 // 设备id - 布控任务
664   - List<Integer> integers = (List<Integer>) redisTemplate.opsForHash().get(GlobalUtil.IPWITHDEPLOYLIST, deviceId);
  670 + List<String> integers = getAllDeployTaskStatusEqualsTo0();
665 671 if (null != integers) {
666   - for (Integer deployId : integers) {
  672 + for (String deployId : integers) {
667 673 // 获取布控类型
668 674 Integer deployType = (Integer) redisTemplate.opsForHash().get(GlobalUtil.DEPLOY_TYPE, deployId);
669 675 if (null != deployType) {
... ... @@ -700,9 +706,7 @@ public class DeployServiceImpl implements DeployService {
700 706 * @param rabbitMqVehicle 消息体
701 707 * @param deployId 布控任务id
702 708 */
703   - private void rabbitMqMsgPlateNumberHandler(RabbitMQVehicle rabbitMqVehicle, Integer deployId) {
704   - int deviceId = rabbitMqVehicle.getDeviceid();
705   - String equipmentName = rabbitMqVehicle.getEquipmentName();
  709 + private void rabbitMqMsgPlateNumberHandler(RabbitMQVehicle rabbitMqVehicle, String deployId) {
706 710 String latitude = rabbitMqVehicle.getLatitude();
707 711 String longitude = rabbitMqVehicle.getLongitude();
708 712 String snapshotUrl = rabbitMqVehicle.getSnapshoturl();
... ... @@ -717,7 +721,7 @@ public class DeployServiceImpl implements DeployService {
717 721 Integer status = (Integer) redisTemplate.opsForHash().get(deployId + "|" + GlobalUtil.DEPLOY_PLATE_NUM, vehiclePlateHphm);
718 722 if (status != null && 0 == status) {
719 723 plateAlarmMsg = PlateAlarmMsg.builder().id(null).baseId(rabbitMqVehicle.getId()).deployId(deployId)
720   - .deviceId(deviceId).equipmentName(equipmentName).longitude(longitude).latitude(latitude)
  724 + .longitude(longitude).latitude(latitude)
721 725 .picTime(pictime).alarmTime(DateUtil.now()).snapshotUrl(snapshotUrl)
722 726 .plateNum(vehiclePlateHphm).alarmType(0).build();
723 727 }
... ... @@ -746,9 +750,7 @@ public class DeployServiceImpl implements DeployService {
746 750 * @param rabbitMqVehicle 消息体
747 751 * @param deployId 布控任务id
748 752 */
749   - private void rabbitMqMsgVehicleHandler(RabbitMQVehicle rabbitMqVehicle, Integer deployId) {
750   - int deviceId = rabbitMqVehicle.getDeviceid();
751   - String equipmentName = rabbitMqVehicle.getEquipmentName();
  753 + private void rabbitMqMsgVehicleHandler(RabbitMQVehicle rabbitMqVehicle, String deployId) {
752 754 String latitude = rabbitMqVehicle.getLatitude();
753 755 String longitude = rabbitMqVehicle.getLongitude();
754 756 String snapshotUrl = rabbitMqVehicle.getSnapshoturl();
... ... @@ -773,7 +775,7 @@ public class DeployServiceImpl implements DeployService {
773 775 String vehicleUrl = (String) redisTemplate.opsForHash().get("vehicleUrl", vehicleIdStr);
774 776 //将数据储存到mongo中
775 777 plateAlarmMsg = PlateAlarmMsg.builder().id(null).baseId(rabbitMqVehicle.getId()).deployId(deployId)
776   - .deviceId(deviceId).equipmentName(equipmentName).longitude(longitude).latitude(latitude)
  778 + .longitude(longitude).latitude(latitude)
777 779 .libUrl(vehicleUrl).picTime(pictime).alarmTime(DateUtil.now()).snapshotUrl(snapshotUrl)
778 780 .plateNum(vehiclePlateHphm).alarmType(1).similarity(v).libId(vehicleIdStr).build();
779 781 }
... ... @@ -814,7 +816,7 @@ public class DeployServiceImpl implements DeployService {
814 816 if (max >= (float) redisTemplate.opsForHash().get(GlobalUtil.DEPLOYTHRESLD, deployId)) {
815 817 String vehicleUrl = (String) redisTemplate.opsForHash().get("vehicleUrl", key);
816 818 plateAlarmMsg = PlateAlarmMsg.builder().id(null).baseId(rabbitMqVehicle.getId()).deployId(deployId)
817   - .deviceId(deviceId).equipmentName(equipmentName).longitude(longitude).latitude(latitude)
  819 + .longitude(longitude).latitude(latitude)
818 820 .libUrl(vehicleUrl).picTime(pictime).alarmTime(DateUtil.now()).snapshotUrl(snapshotUrl)
819 821 .alarmType(1).similarity(max).build();
820 822 }
... ... @@ -842,10 +844,8 @@ public class DeployServiceImpl implements DeployService {
842 844 * @param personMsg 消息体
843 845 * @param deployId 任务id
844 846 */
845   - public void rabbitMqPersonHandler(PersonMsg personMsg, Integer deployId) {
  847 + public void rabbitMqPersonHandler(PersonMsg personMsg, String deployId) {
846 848 float[] fea = personMsg.getFea();
847   - int deviceId = personMsg.getDeviceId();
848   - String equipmentName = personMsg.getEquipmentName();
849 849 String longitude = personMsg.getLongitude();
850 850 String latitude = personMsg.getLatitude();
851 851 String url = personMsg.getUrl();
... ... @@ -863,11 +863,9 @@ public class DeployServiceImpl implements DeployService {
863 863 String code = responseParamPerson.getCode();
864 864 if ("0".equals(code)) {
865 865 List<PersonIdAndScore> result = responseParamPerson.getResult();
866   -
867 866 if (result != null && result.size() > 0) {
868   - int size = result.size();
869   - for (int i = 0; i < size; i++) {
870   - String retrieveKey = result.get(i).getRetrieveKey();
  867 + for (PersonIdAndScore personIdAndScore : result) {
  868 + String retrieveKey = personIdAndScore.getRetrieveKey();
871 869 log.debug("retrieveKey: " + retrieveKey);
872 870 String[] split = retrieveKey.split("&");
873 871 String key = deployId + "|" + split[1];
... ... @@ -875,17 +873,14 @@ public class DeployServiceImpl implements DeployService {
875 873 if (deployLib.contains(split[1])) {
876 874 Object staus = redisTemplate.opsForHash().get(key, Integer.parseInt(split[0]));
877 875 if (staus != null && Integer.parseInt(staus.toString()) == 0) {
878   - float score = Float.parseFloat(result.get(i).getScore());
  876 + float score = Float.parseFloat(personIdAndScore.getScore());
879 877 PlateAlarmMsg plateAlarmMsg = PlateAlarmMsg.builder().id(null).baseId(personMsg.getPersonId())
880   - .deployId(deployId)
881   - .deviceId(deviceId).equipmentName(equipmentName).longitude(longitude).latitude(latitude).libId(split[0])
  878 + .deployId(deployId).longitude(longitude).latitude(latitude).libId(split[0])
882 879 .libUrl(split[2]).picTime(captureTime).alarmTime(DateUtil.now()).snapshotUrl(url)
883 880 .plateNum(null).alarmType(2).similarity(score).build();
884 881 log.debug("plateAlarmMsg: " + plateAlarmMsg.toString());
885 882 plateAlarmMsgProducer(plateAlarmMsg);
886 883 break;
887   - } else if (staus != null && Integer.parseInt(staus.toString()) == 1) {
888   - continue;
889 884 }
890 885 }
891 886 }
... ...
src/main/java/com/objecteye/service/impl/HumanVehicleAssociationServiceImpl.java
... ... @@ -55,7 +55,7 @@ public class HumanVehicleAssociationServiceImpl implements HumanVehicleAssociati
55 55 * @return
56 56 */
57 57 @Override
58   - public PageResult searchVehicleFromHuman(Long starttime, Long endtime, Float thresholds, int[] customspass, int currentpage, int pagevolume, MultipartFile picfile) {
  58 + public PageResult searchVehicleFromHuman(Long starttime, Long endtime, Float thresholds, int currentpage, int pagevolume, MultipartFile picfile) {
59 59 if (null == picfile || picfile.equals("undefined")) {
60 60 return null;
61 61 }
... ... @@ -136,7 +136,7 @@ public class HumanVehicleAssociationServiceImpl implements HumanVehicleAssociati
136 136 if (retrieveKeyDbResultMap.containsKey(rabbitMqVehicle.getPersonid())) {
137 137 SearchDataFromRetrieveDbResult searchDataFromRetrieveDbResult = retrieveKeyDbResultMap.get(rabbitMqVehicle.getPersonid());
138 138 SearchVehicleFromPeopleInfo searchVehicleFromPeopleSingle = new SearchVehicleFromPeopleInfo(rabbitMqVehicle.getId(),
139   - simpleDateFormat.format(new Date(rabbitMqVehicle.getPictime())), rabbitMqVehicle.getEquipmentName(),
  139 + simpleDateFormat.format(new Date(rabbitMqVehicle.getPictime())),
140 140 rabbitMqVehicle.getVehicle_plate_hphm(), searchDataFromRetrieveDbResult.getScore(), rabbitMqVehicle.getPicurl(), rabbitMqVehicle.getPersonUrl());
141 141 searchVehicleFromPeopleInfos.add(searchVehicleFromPeopleSingle);
142 142 }
... ... @@ -156,13 +156,13 @@ public class HumanVehicleAssociationServiceImpl implements HumanVehicleAssociati
156 156 * @return
157 157 */
158 158 @Override
159   - public SearchPeopleOfhphmResult searchPeopleFromHphm(Long starttime, Long endtime, int[] customspass, Integer currentpage, Integer pagevolume, String hphm) {
  159 + public SearchPeopleOfhphmResult searchPeopleFromHphm(Long starttime, Long endtime, Integer currentpage, Integer pagevolume, String hphm) {
160 160 SearchPeopleOfhphmResult searchPeopleOfhphmResult = new SearchPeopleOfhphmResult();
161 161 List<SearchPeopleOfHphmInfo> list = null;
162 162 if (!"".equals(hphm)) {
163 163 list = new ArrayList<SearchPeopleOfHphmInfo>();
164 164 //首先根据车辆号牌查询到相关的车辆
165   - List<RabbitMQVehicle> byHphm = findByHphm(starttime, endtime, customspass, hphm, currentpage, pagevolume);
  165 + List<RabbitMQVehicle> byHphm = findByHphm(starttime, endtime, hphm, currentpage, pagevolume);
166 166 for (RabbitMQVehicle rmqv : byHphm) {
167 167 Long pictime = rmqv.getPictime();
168 168  
... ... @@ -172,7 +172,7 @@ public class HumanVehicleAssociationServiceImpl implements HumanVehicleAssociati
172 172  
173 173 if (pictime <= endtime && pictime >= starttime) {
174 174 SearchPeopleOfHphmInfo searchPeopleOfHphmInfo = new SearchPeopleOfHphmInfo(rmqv.getId(),
175   - simpleDateFormat.format(new Date(rmqv.getPictime())), rmqv.getEquipmentName(),
  175 + simpleDateFormat.format(new Date(rmqv.getPictime())),
176 176 rmqv.getVehicle_plate_hphm(), rmqv.getPersonUrl());
177 177 list.add(searchPeopleOfHphmInfo);
178 178 }
... ... @@ -205,13 +205,11 @@ public class HumanVehicleAssociationServiceImpl implements HumanVehicleAssociati
205 205 * @return
206 206 */
207 207 @Override
208   - public List<RabbitMQVehicle> findByHphm(Long starttime, Long endtime, int[] customspass, String hphm, int currentPage, int pageSize) {
  208 + public List<RabbitMQVehicle> findByHphm(Long starttime, Long endtime, String hphm, int currentPage, int pageSize) {
209 209 Query query = new Query();
210   - query.with(new Sort(new Sort.Order(Sort.Direction.DESC, "pictime")));
  210 + query.with(Sort.by(Sort.Order.desc("pictime")));
211 211 int skip = (currentPage - 1) * pageSize;
212   -
213 212 query.addCriteria(new Criteria().andOperator(Criteria.where("vehicle_plate_hphm").is(hphm), Criteria.where("personUrl").ne(null)));
214   -
215 213 query.skip(skip);
216 214 query.limit(pageSize);
217 215 return mongoTemplate.find(query, RabbitMQVehicle.class);
... ...
src/main/java/com/objecteye/service/impl/LocusOrbitServiceImpl.java
... ... @@ -177,7 +177,6 @@ public class LocusOrbitServiceImpl implements ILocusOrbitService {
177 177 locusOrbitResultParams.setPictime(DateUtil.format(new Date(currentPictime), "yyyy-MM-dd HH:mm:ss"));
178 178 locusOrbitResultParams.setLongitude(rabbitMqVehicle.getLongitude());
179 179 locusOrbitResultParams.setLatitude(rabbitMqVehicle.getLatitude());
180   - locusOrbitResultParams.setEquipmentName(rabbitMqVehicle.getEquipmentName());
181 180 locusOrbitResultParams.setSnapshotUrl(rabbitMqVehicle.getSnapshoturl());
182 181 resultList.add(locusOrbitResultParams);
183 182 }
... ... @@ -233,7 +232,6 @@ public class LocusOrbitServiceImpl implements ILocusOrbitService {
233 232 if (null != rabbitMqVehicle) {
234 233 locusOrbitResultParams.setId(rabbitMqVehicle.getId());
235 234 locusOrbitResultParams.setSnapshotUrl(rabbitMqVehicle.getSnapshoturl());
236   - locusOrbitResultParams.setEquipmentName(rabbitMqVehicle.getEquipmentName());
237 235 locusOrbitResultParams.setPlateNumber(rabbitMqVehicle.getVehicle_plate_hphm());
238 236 locusOrbitResultParams.setPictime(DateUtil.format(new Date(rabbitMqVehicle.getPictime()), "yyyy-MM-dd HH:mm:ss"));
239 237 }
... ...
src/main/java/com/objecteye/service/impl/SpecialtyServicesImpl.java
... ... @@ -47,8 +47,6 @@ public class SpecialtyServicesImpl implements SpecialtyServices {
47 47 private VehicleDetailsUtils vehicleDetailsUtils;
48 48 @Autowired
49 49 private RedisTemplate redisTemplate;
50   - @Autowired
51   - private RelationMappingUtil relationMappingUtil;
52 50  
53 51 private SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
54 52  
... ... @@ -59,7 +57,7 @@ public class SpecialtyServicesImpl implements SpecialtyServices {
59 57 }
60 58  
61 59 @Override
62   - public JSONObject findByPic(int number, double threshold, int currentpage, int pagevolume, MultipartFile picfile, Long starttime, Long endtime, int[] customspass, Integer vehicle_special_type_number) throws InterruptedException {
  60 + public JSONObject findByPic(int number, double threshold, int currentpage, int pagevolume, MultipartFile picfile, Long starttime, Long endtime, Integer vehicle_special_type_number) throws InterruptedException {
63 61 //封装结果的对象
64 62 JSONObject result = new JSONObject();
65 63 if (picfile == null) {
... ... @@ -79,7 +77,7 @@ public class SpecialtyServicesImpl implements SpecialtyServices {
79 77 RabbitMQVehicle rabbitMqVehicle = rabbitMqVehicles.get(number);
80 78 //先过滤条件
81 79 List<RabbitMQVehicle> vehcieListBy = mongoTemplates.getVehcieListBy(new VehicleCondition(0, 0, rabbitMqVehicle.getVehicle_plate_hphm(),
82   - null, starttime, endtime, customspass, vehicle_special_type_number, rabbitMqVehicle.getVehicle_color_index(),
  80 + null, starttime, endtime, vehicle_special_type_number, rabbitMqVehicle.getVehicle_color_index(),
83 81 rabbitMqVehicle.getVehicle_recg_issue_year(), rabbitMqVehicle.getVehicle_recg_brand(), rabbitMqVehicle.getVehicle_recg_type(),
84 82 rabbitMqVehicle.getVehicle_recg_subbrand()));
85 83 //获取该车辆的特征信息
... ... @@ -151,8 +149,6 @@ public class SpecialtyServicesImpl implements SpecialtyServices {
151 149 RabbitMQVehicle rabbitMqVehicle1 = next.getRabbitMQVehicle();
152 150 rowData.put("id", rabbitMqVehicle1.getId());
153 151 rowData.put("hphm", rabbitMqVehicle1.getVehicle_plate_hphm());
154   - //获取设备id,然后通过设备id查询到设备的名称
155   - rowData.put("site", rabbitMqVehicle1.getEquipmentName());
156 152 rowData.put("phototime", simpleDateFormat.format(new Date(rabbitMqVehicle1.getPictime())));
157 153 rowData.put("recordid", rabbitMqVehicle1.getRecordid());
158 154 // 新方法,如果不需要四舍五入,可以使用RoundingMode.DOWN
... ... @@ -195,7 +191,7 @@ public class SpecialtyServicesImpl implements SpecialtyServices {
195 191 }
196 192  
197 193 @Override
198   - public VehicleInfoRes chemistryFindByPic(int number, double threshold, int currentpage, int pagevolume, MultipartFile picfile, String starttime, String endtime, int[] customspass) {
  194 + public VehicleInfoRes chemistryFindByPic(int number, double threshold, int currentpage, int pagevolume, MultipartFile picfile, String starttime, String endtime) {
199 195  
200 196 return null;
201 197 }
... ... @@ -406,12 +402,12 @@ public class SpecialtyServicesImpl implements SpecialtyServices {
406 402 int index = vehicle_color_res.getIndex();
407 403 float score = vehicle_color_res.getScore();
408 404 if (score >= 0.7) {
409   - String vehicleColor = relationMappingUtil.getVehicleColor(index);
  405 + String vehicleColor = RelationMappingUtil.getVehicleColor(index);
410 406 resultMsg.setVehicle_color(vehicleColor);
411 407 } else {
412 408 resultMsg.setVehicle_color("检测失败");
413 409 }
414   - StringBuffer sb = new StringBuffer();
  410 + StringBuilder sb = new StringBuilder();
415 411 VehicleRecognizeResultParam vehicle_recg_res = vehicleInfoParam.getVehicle_recg_res();
416 412 float name_score = vehicle_recg_res.getName_score();
417 413 if (name_score < 0.7) {
... ...
src/main/java/com/objecteye/service/impl/VehicleCurrencyServiceImpl.java
... ... @@ -206,7 +206,7 @@ public class VehicleCurrencyServiceImpl implements VehicleCurrencyService {
206 206 }
207 207  
208 208 @Override
209   - public CommonResult<PicVehicleDataResult> findVehicleByPic(int number, double threshold, int currentpage, int pagevolume, MultipartFile picfile, Long starttime, Long endtime, int[] customspass) throws InterruptedException {
  209 + public CommonResult<PicVehicleDataResult> findVehicleByPic(int number, double threshold, int currentpage, int pagevolume, MultipartFile picfile, Long starttime, Long endtime) throws InterruptedException {
210 210 //封装结果的对象
211 211 if (picfile == null) {
212 212 return CommonResult.success(201, "图片为空", null);
... ... @@ -223,7 +223,7 @@ public class VehicleCurrencyServiceImpl implements VehicleCurrencyService {
223 223 RabbitMQVehicle rabbitMqVehicle = rabbitMQVehicles.get(number);
224 224  
225 225 List<RabbitMQVehicle> vehcieListBy = mongoTemplates.getVehcieListBy(new VehicleCondition(0, 0, rabbitMqVehicle.getVehicle_plate_hphm(),
226   - null, starttime, endtime, customspass, null, rabbitMqVehicle.getVehicle_color_index(), rabbitMqVehicle.getVehicle_recg_issue_year(),
  226 + null, starttime, endtime, null, rabbitMqVehicle.getVehicle_color_index(), rabbitMqVehicle.getVehicle_recg_issue_year(),
227 227 rabbitMqVehicle.getVehicle_recg_brand(), rabbitMqVehicle.getVehicle_recg_type(), rabbitMqVehicle.getVehicle_recg_subbrand()));
228 228  
229 229 //获取该车辆的特征信息
... ... @@ -303,7 +303,7 @@ public class VehicleCurrencyServiceImpl implements VehicleCurrencyService {
303 303  
304 304 //因为需要将快照图的值给picurl所以需要下面的返回方式
305 305 PicVehicleRow picVehicleRow = new PicVehicleRow(rabbitMqVehicle1.getId(), rabbitMqVehicle1.getRecordid(), rabbitMqVehicle1.getVehicle_plate_hphm(),
306   - snapshoturl, picurl, bg, rabbitMqVehicle1.getEquipmentName(),
  306 + snapshoturl, picurl, bg,
307 307 simpleDateFormat.format(new Date(rabbitMqVehicle1.getPictime())));
308 308  
309 309 picVehicleRows.add(picVehicleRow);
... ...
src/main/java/com/objecteye/service/impl/VehicleFileServiceImpl.java
... ... @@ -307,7 +307,6 @@ public class VehicleFileServiceImpl implements IVehicleFileService {
307 307 }
308 308 String style = String.join("-", styleList);
309 309 tempResult.setStyle(style);
310   - tempResult.setEquipmentName(rabbitMqVehicle.getEquipmentName());
311 310 tempResult.setPictime(DateUtil.format(new Date(rabbitMqVehicle.getPictime()), dateFormat));
312 311 tempResult.setId(rabbitMqVehicle.getId());
313 312 resultList.add(tempResult);
... ...
src/main/java/com/objecteye/service/impl/VehicleViolationsServiceImpl.java
... ... @@ -8,7 +8,6 @@ import com.objecteye.entity.*;
8 8 import com.objecteye.pojo.RabbitMQVehicle;
9 9 import com.objecteye.pojo.RabbitMqVehicleViolation;
10 10 import com.objecteye.service.IVehicleViolationsService;
11   -import com.objecteye.utils.GlobalUtil;
12 11 import org.springframework.beans.factory.annotation.Autowired;
13 12 import org.springframework.data.mongodb.core.MongoTemplate;
14 13 import org.springframework.data.mongodb.core.aggregation.Aggregation;
... ... @@ -57,31 +56,6 @@ public class VehicleViolationsServiceImpl implements IVehicleViolationsService {
57 56 private final double ILLEGAL_CONFIRM_LIMMIT = 0.9;
58 57  
59 58 /**
60   - * 同步还在激活状态的任务到redis
61   - */
62   - private void syncForbiddenTask() {
63   - List<SyVehicleForbidenTask> forbiddenTasks = mongoTemplate.find(Query.query(Criteria.where("status").ne(0)), SyVehicleForbidenTask.class);
64   - Map<String, List<SyVehicleForbidenTask>> deviceIdTaskMap = new HashMap<>();
65   - for (SyVehicleForbidenTask forbiddenTask : forbiddenTasks) {
66   - if (null == forbiddenTask || null == forbiddenTask.getDeviceId() || "".equals(forbiddenTask.getDeviceId())) {
67   - continue;
68   - }
69   - String[] deviceIdArr = forbiddenTask.getDeviceId().split(",");
70   - for (String deviceId : deviceIdArr) {
71   - List<SyVehicleForbidenTask> tempTasks = new ArrayList<>();
72   - if (deviceIdTaskMap.containsKey(deviceId)) {
73   - tempTasks = deviceIdTaskMap.get(deviceId);
74   - }
75   - tempTasks.add(forbiddenTask);
76   - deviceIdTaskMap.put(deviceId, tempTasks);
77   - }
78   -
79   - }
80   - redisTemplate.delete(GlobalUtil.FORBIDDEN_TASK);
81   - redisTemplate.opsForHash().putAll(GlobalUtil.FORBIDDEN_TASK, deviceIdTaskMap);
82   - }
83   -
84   - /**
85 59 * 禁行任务查询接口
86 60 *
87 61 * @param currentpage 页码
... ... @@ -168,7 +142,6 @@ public class VehicleViolationsServiceImpl implements IVehicleViolationsService {
168 142 syVehicleForbidenTask.setStatus(1);
169 143 }
170 144 mongoTemplate.insert(syVehicleForbidenTask);
171   - syncForbiddenTask();
172 145 return 1;
173 146 }
174 147  
... ... @@ -181,7 +154,6 @@ public class VehicleViolationsServiceImpl implements IVehicleViolationsService {
181 154 @Override
182 155 public int forbiddenTaskUpdate(SyVehicleForbidenTask syVehicleForbidenTask) {
183 156 mongoTemplate.save(syVehicleForbidenTask);
184   - syncForbiddenTask();
185 157 return 1;
186 158 }
187 159  
... ... @@ -204,7 +176,6 @@ public class VehicleViolationsServiceImpl implements IVehicleViolationsService {
204 176 mongoTemplate.remove(Query.query(Criteria.where("id").is(id)), SyVehicleForbidenTask.class);
205 177 effectNum++;
206 178 }
207   - syncForbiddenTask();
208 179 return effectNum;
209 180 }
210 181  
... ... @@ -221,11 +192,10 @@ public class VehicleViolationsServiceImpl implements IVehicleViolationsService {
221 192 // 非特殊车辆
222 193 if (specialScore >= SPECIAL_VEHICLE_TYPE_LOWER_SCORS) {
223 194 // 特殊车辆处理
224   - int deviceId = rabbitMqVehicleViolation.getDeviceid();
225 195 int specialType = rabbitMqVehicleViolation.getVehicle_special_type();
226 196 // 对激活的任务做判断
227   - List<SyVehicleForbidenTask> availableForbiddenTasks = (List<SyVehicleForbidenTask>) redisTemplate.opsForHash().get(GlobalUtil.FORBIDDEN_TASK, String.valueOf(deviceId));
228   - if (null != availableForbiddenTasks && availableForbiddenTasks.size() != 0) {
  197 + List<SyVehicleForbidenTask> availableForbiddenTasks = mongoTemplate.find(Query.query(Criteria.where("status").ne(0)), SyVehicleForbidenTask.class);
  198 + if (availableForbiddenTasks.size() != 0) {
229 199 // 检测是否违规, 违规一次即跳出循环
230 200 for (SyVehicleForbidenTask forbiddenTask : availableForbiddenTasks) {
231 201 List<String> vehicleType = Arrays.stream(forbiddenTask.getVehicleType().split(",")).collect(Collectors.toList());
... ... @@ -376,7 +346,6 @@ public class VehicleViolationsServiceImpl implements IVehicleViolationsService {
376 346 vehicleSimpleResult.setPersonUrl(rabbitMqVehicleViolation.getPersonUrl());
377 347 vehicleSimpleResult.setPictime(DateUtil.format(new Date(rabbitMqVehicleViolation.getPictime()), "yyyy-MM-dd HH:mm:ss"));
378 348 vehicleSimpleResult.setPlateNumber(rabbitMqVehicleViolation.getVehicle_plate_hphm());
379   - vehicleSimpleResult.setEquipmentName(rabbitMqVehicleViolation.getEquipmentName() == null ? "" : rabbitMqVehicleViolation.getEquipmentName());
380 349 resultList.add(vehicleSimpleResult);
381 350 }
382 351 long total = mongoTemplate.count(query, RabbitMqVehicleViolation.class);
... ... @@ -397,7 +366,6 @@ public class VehicleViolationsServiceImpl implements IVehicleViolationsService {
397 366 vehicleSimpleResult.setPersonUrl(rabbitMqVehicle.getPersonUrl());
398 367 vehicleSimpleResult.setPictime(DateUtil.format(new Date(rabbitMqVehicle.getPictime()), "yyyy-MM-dd HH:mm:ss"));
399 368 vehicleSimpleResult.setPlateNumber(rabbitMqVehicle.getVehicle_plate_hphm());
400   - vehicleSimpleResult.setEquipmentName(rabbitMqVehicle.getEquipmentName());
401 369 resultList.add(vehicleSimpleResult);
402 370 }
403 371 long total = mongoTemplate.count(query, RabbitMQVehicle.class);
... ...
src/main/java/com/objecteye/utils/GlobalUtil.java
... ... @@ -48,11 +48,6 @@ public class GlobalUtil {
48 48 public final static String VEHICLE_FEATURE = "vehicleFeature";
49 49  
50 50 /**
51   - * redis中保存违规信息的主键
52   - */
53   - public final static String FORBIDDEN_TASK = "forbidden_task";
54   -
55   - /**
56 51 * 布控报警模块 -redis key值-任务开始时间
57 52 */
58 53 public final static String DEPLOYID_STATRTIME = "deployIdAndStartTime";
... ...
src/main/java/com/objecteye/utils/RabbbitmqConsumer.java
... ... @@ -40,13 +40,8 @@ public class RabbbitmqConsumer {
40 40 public void receive_store(String msg, Message message, Channel channel) {
41 41 try {
42 42 List<RabbitMQVehicle> rabbitMQVehicles = rabbitMQVehicleTools.encapsulationRabbitVehicle(msg);
43   -
44 43 if (rabbitMQVehicles != null && rabbitMQVehicles.size() > 0) {
45   -
46   - int size = rabbitMQVehicles.size();
47   -
48   - for (int i = 0; i < size; i++) {
49   - RabbitMQVehicle rabbitMQVehicle = rabbitMQVehicles.get(i);
  44 + for (RabbitMQVehicle rabbitMQVehicle : rabbitMQVehicles) {
50 45 if (rabbitMQVehicle == null) {
51 46 continue;
52 47 }
... ... @@ -67,8 +62,8 @@ public class RabbbitmqConsumer {
67 62 if (vehicle_plate_numScore > 0.9) {
68 63 redisTemplate.opsForHash().put("vehicleFilePlateNumber", vehicle_plate_hphm, s);
69 64 }
70   -// rabbitTemplate.convertAndSend(RabbitmqConfig.EXCHANGE_TOPICS_INFORM, "inform.alarm", s);
71   -// rabbitTemplate.convertAndSend(RabbitmqConfig.EXCHANGE_TOPICS_INFORM, "inform.forbidden", s);
  65 + rabbitTemplate.convertAndSend(RabbitmqConfig.EXCHANGE_TOPICS_INFORM, "inform.alarm", s);
  66 + rabbitTemplate.convertAndSend(RabbitmqConfig.EXCHANGE_TOPICS_INFORM, "inform.forbidden", s);
72 67 }
73 68 }
74 69 } catch (Exception e) {
... ...
src/main/java/com/objecteye/utils/RabbitMQVehicleTools.java
... ... @@ -34,8 +34,6 @@ public class RabbitMQVehicleTools {
34 34 @Autowired
35 35 private RedisTemplate redisTemplate;
36 36 @Autowired
37   - private RelationMappingUtil relationMappingUtil;
38   - @Autowired
39 37 private VehicleDetailsUtils vehicleDetailsUtils;
40 38 @Autowired
41 39 private MongoTemplate mongoTemplate;
... ... @@ -113,7 +111,7 @@ public class RabbitMQVehicleTools {
113 111  
114 112 GlobalUtil.generateImage(mattingData, path);
115 113  
116   - PersonMsg personMsg = new PersonMsg(null, null, snapshoturl, captureTime, null, null, null, url, retrieveKey, fea);
  114 + PersonMsg personMsg = new PersonMsg(null, snapshoturl, captureTime, null, null, null, url, retrieveKey, fea);
117 115 PersonMsg save = mongoTemplate.save(personMsg);
118 116 String s = JSON.toJSONString(save);
119 117 rabbitTemplate.convertAndSend(RabbitmqConfig.EXCHANGE_TOPICS_INFORM, "inform.person", s);
... ... @@ -135,8 +133,6 @@ public class RabbitMQVehicleTools {
135 133 boolean infoIsExit = jsonObject.containsKey("info");
136 134 if (infoIsExit) {
137 135 long captureTime = jsonObject.containsKey("captureTime") ? jsonObject.getLong("captureTime") : System.currentTimeMillis();
138   - Integer devicedid = jsonObject.containsKey("deviceId") ? jsonObject.getInteger("deviceId") : null;
139   - String equipName = jsonObject.containsKey("equipmentName") ? jsonObject.getString("equipmentName") : null;
140 136 String longitude = jsonObject.containsKey("longitude") ? jsonObject.getString("longitude") : null;
141 137 String latitude = jsonObject.containsKey("latitude") ? jsonObject.getString("latitude") : null;
142 138 String picurl = jsonObject.containsKey("imageUrl") ? jsonObject.getString("imageUrl") : null;
... ... @@ -144,16 +140,6 @@ public class RabbitMQVehicleTools {
144 140 for (int i = 0; i < infoArr.size(); i++) {
145 141 //获取到单辆车的信息
146 142 JSONObject infoObj = infoArr.getJSONObject(i);
147   - if (devicedid != null) {
148   - Object totalCar = redisTemplate.opsForHash().get("totalVehicles", devicedid);
149   - if (totalCar != null) {
150   - Integer count1 = Integer.valueOf(totalCar.toString());
151   - count++;
152   - redisTemplate.opsForHash().put("totalCar", devicedid, count1);
153   - } else {
154   - redisTemplate.opsForHash().put("totalCar", devicedid, 1);
155   - }
156   - }
157 143  
158 144 //封装建模
159 145 RabbitMQVehicle rabbitMQVehicle = sdkToOnlyVehicle(infoObj);
... ... @@ -171,14 +157,8 @@ public class RabbitMQVehicleTools {
171 157 }
172 158 }
173 159  
174   - if (devicedid != null) {
175   - rabbitMQVehicle.setDeviceid(devicedid);
176   - rabbitMQVehicle.setEquipmentName(equipName);
177   - rabbitMQVehicle.setLongitude(longitude);
178   - rabbitMQVehicle.setLatitude(latitude);
179   - } else {
180   - rabbitMQVehicle.setDeviceid(0);
181   - }
  160 + rabbitMQVehicle.setLongitude(longitude);
  161 + rabbitMQVehicle.setLatitude(latitude);
182 162 rabbitMQVehicle.setPictime(captureTime);
183 163  
184 164 rabbitMQVehicles.add(rabbitMQVehicle);
... ... @@ -208,8 +188,6 @@ public class RabbitMQVehicleTools {
208 188  
209 189 // id; //车辆id
210 190 rabbitMQInfo.setId(rabbitMQVehicle.getId());
211   - // equipmentName; //设备名称
212   - rabbitMQInfo.setEquipmentName(rabbitMQVehicle.getEquipmentName());
213 191 // longitude; //经度
214 192 rabbitMQInfo.setLongitude(rabbitMQVehicle.getLongitude());
215 193 // latitude; //纬度
... ... @@ -239,7 +217,7 @@ public class RabbitMQVehicleTools {
239 217 rabbitMQInfo.setPersonid(rabbitMQVehicle.getPersonid());
240 218 // vehicleplatetype; //车牌类型
241 219 int vehicleplatetype = rabbitMQVehicle.getVehicleplatetype();
242   - String vehiclePlateTypeName = relationMappingUtil.getVehiclePlateType(vehicleplatetype);
  220 + String vehiclePlateTypeName = RelationMappingUtil.getVehiclePlateType(vehicleplatetype);
243 221 rabbitMQInfo.setVehicleplatetype(vehiclePlateTypeName);
244 222  
245 223 // vehicle_plate_numScore; //号牌可信度
... ... @@ -250,11 +228,11 @@ public class RabbitMQVehicleTools {
250 228  
251 229 // vehicle_color_index; //车辆颜色;
252 230 int vehicle_color_index = rabbitMQVehicle.getVehicle_color_index();
253   - String vehicleColor = relationMappingUtil.getVehicleColor(vehicle_color_index);
  231 + String vehicleColor = RelationMappingUtil.getVehicleColor(vehicle_color_index);
254 232 rabbitMQInfo.setVehicle_color_index(vehicleColor);
255 233 // vehicle_special_type; //特殊品类车类型
256 234 int vehicle_special_type = rabbitMQVehicle.getVehicle_special_type();
257   - String vehicleSpecialType = relationMappingUtil.getVehicleSpecialType(vehicle_special_type);
  235 + String vehicleSpecialType = RelationMappingUtil.getVehicleSpecialType(vehicle_special_type);
258 236 rabbitMQInfo.setVehicle_special_type(vehicleSpecialType);
259 237  
260 238  
... ... @@ -511,8 +489,6 @@ public class RabbitMQVehicleTools {
511 489  
512 490 public RabbitMQVehicle sdkToOnlyVehicle(JSONObject vehicleSingleInfo) {
513 491 int count = 0;//在档案中的位置
514   - int deviceid = 0; //设备id
515   - String equipName = nullStatus;
516 492 String longitude = nullStatus;
517 493 String latitude = nullStatus;
518 494 String picurl = nullStatus; //图片的路径
... ... @@ -792,7 +768,7 @@ public class RabbitMQVehicleTools {
792 768 //vehicle_pendant_detect_zybexis; //是否存在遮阳板 0表示不存在 1表示存在
793 769  
794 770  
795   - rabbitMQVehicle = new RabbitMQVehicle(count, deviceid, equipName, longitude, latitude, picurl, recordid, pictime, flag, tag, personid, vehicle_plate_rect, vehicle_plate_detectScore, vehicle_plate_type, vehicle_plate_numScore, vehicle_color_score, vehicle_color_index, vehicle_detect_score, vehicle_detect_syrectparam, vehicle_win_score, vehicle_win_syrectparam, vehicle_special_type, vehicle_special_score, vehicle_illegal_driver_smoke_confidence, vehicle_illegal_driver_smoke_status, vehicle_illegal_driver_belt_confidence, vehicle_illegal_driver_belt_status, vehicle_illegal_driver_phone_confidence, vehicle_illegal_driver_phone_status, vehicle_illegal_driver_person_confidence, vehicle_illegal_driver_person_status, vehicle_illegal_copilot_smoke_confidence, vehicle_illegal_copilot_smoke_status, vehicle_illegal_copilot_belt_confidence, vehicle_illegal_copilot_belt_status, vehicle_illegal_copilot_phone_confidence, vehicle_illegal_copilot_phone_status, vehicle_illegal_copilot_person_confidence, vehicle_illegal_copilot_person_status, vehicle_recg_issue_year, vehicle_recg_brand, vehicle_recg_type, vehicle_recg_subbrand, vehicle_recg_freight_ton, vehicle_recg_name_score, vehicle_pendant_count, vehicle_fea_feature, vehicle_pendant_Params, vehicle_plate_plateNumParams, vehicle_plate_hphm, vehicle_pendant_detect_njbnumber, vehicle_pendant_detect_gjexis, vehicle_pendant_detect_zybexis, null, snapshoturl);
  771 + rabbitMQVehicle = new RabbitMQVehicle(count, longitude, latitude, picurl, recordid, pictime, flag, tag, personid, vehicle_plate_rect, vehicle_plate_detectScore, vehicle_plate_type, vehicle_plate_numScore, vehicle_color_score, vehicle_color_index, vehicle_detect_score, vehicle_detect_syrectparam, vehicle_win_score, vehicle_win_syrectparam, vehicle_special_type, vehicle_special_score, vehicle_illegal_driver_smoke_confidence, vehicle_illegal_driver_smoke_status, vehicle_illegal_driver_belt_confidence, vehicle_illegal_driver_belt_status, vehicle_illegal_driver_phone_confidence, vehicle_illegal_driver_phone_status, vehicle_illegal_driver_person_confidence, vehicle_illegal_driver_person_status, vehicle_illegal_copilot_smoke_confidence, vehicle_illegal_copilot_smoke_status, vehicle_illegal_copilot_belt_confidence, vehicle_illegal_copilot_belt_status, vehicle_illegal_copilot_phone_confidence, vehicle_illegal_copilot_phone_status, vehicle_illegal_copilot_person_confidence, vehicle_illegal_copilot_person_status, vehicle_recg_issue_year, vehicle_recg_brand, vehicle_recg_type, vehicle_recg_subbrand, vehicle_recg_freight_ton, vehicle_recg_name_score, vehicle_pendant_count, vehicle_fea_feature, vehicle_pendant_Params, vehicle_plate_plateNumParams, vehicle_plate_hphm, vehicle_pendant_detect_njbnumber, vehicle_pendant_detect_gjexis, vehicle_pendant_detect_zybexis, null, snapshoturl);
796 772  
797 773 }
798 774 return rabbitMQVehicle;
... ...
src/main/java/com/objecteye/websocket/MyWebSocketHandler.java
... ... @@ -148,8 +148,6 @@ public class MyWebSocketHandler extends TextWebSocketHandler {
148 148 PlateAlarmMsg plateAlarmMsg = JSON.parseObject(deployAlarmMsg.toString(), PlateAlarmMsg.class);
149 149 String alarmTime = plateAlarmMsg.getAlarmTime();
150 150 deployMsg.setAlarmTime(alarmTime);
151   - String equipmentName = plateAlarmMsg.getEquipmentName();
152   - deployMsg.setAlarmPlace(equipmentName);
153 151 Integer alarmType = plateAlarmMsg.getAlarmType();
154 152 deployMsg.setDeployType(alarmType);
155 153 String snapshotUrl = plateAlarmMsg.getSnapshotUrl();
... ...
src/main/java/com/objecteye/websocket/SdkToVehicleDetail.java
... ... @@ -112,9 +112,6 @@ public class SdkToVehicleDetail {
112 112 String dateString = dateFormat.format(date);
113 113 vehicleDetails.setPictime(dateString);
114 114  
115   - //设备相关信息
116   - String equipmentName = captureRedis.getEquipmentName();
117   - vehicleDetails.setEquipmentName(equipmentName);
118 115 String longitude = captureRedis.getLongitude();
119 116 vehicleDetails.setLongitude(longitude);
120 117 String latitude = captureRedis.getLatitude();
... ...