Commit 477063c5 by 毛树良

[chg]:百货:过滤掉无效抓拍

1 parent 176e8e0c
......@@ -47,7 +47,7 @@ public class FaceRecognitionDao {
DateTimeParam dateTimeParam = dateTimeParamService.getDateTimeParam(mallId, countDate);
String sql = "select account_id,mall_id,gate_id,person_unid,direction,countdate as countDate," +
"counttime as countTime from d_face_recognition " +
"where mall_id = :mallId and countdate between :startDate and :endDate and counttime >= :startTime and counttime < :endTime and gate_id in(:gateIds) " +
"where mall_id = :mallId and countdate between :startDate and :endDate and counttime >= :startTime and counttime < :endTime and invalid=0 and gate_id in(:gateIds) " +
"and person_type = 0 and direction in(-1,1,6) order by person_unid asc,counttime asc;";
Map<String, Object> queryMap = new HashMap<>();
queryMap.put("mallId", mallId);
......@@ -62,7 +62,7 @@ public class FaceRecognitionDao {
/**
* 查询门店数据
* select * from d_face_recognition
* where countdate between :startDate and :endDate and counttime >= :startTime and counttime < :endTime and person_type = 0
* where countdate between :startDate and :endDate and counttime >= :startTime and counttime < :endTime and invalid=0 and person_type = 0
*
* and ((mall_id = :mallId and direction in(-1,1) and channel_id IN ( SELECT channel_id FROM r_mall_gate WHERE mall_id = :storeId and is_mall_gate = 1 and in_out = 1))
* or (mall_id = :storeId and direction=6))
......@@ -76,13 +76,13 @@ public class FaceRecognitionDao {
public List<Person> queryFaceRecognitionList(Long mallId, Long storeId, Date countDate) {
DateTimeParam dateTimeParam = dateTimeParamService.getDateTimeParam(mallId, countDate);
String sql = "select account_id,mall_id,gate_id,person_unid,direction,track_time,countdate as countDate,person_type,age,gender,channel_id," +
"counttime as countTime from d_face_recognition where mall_id = :mallId and countdate between :startDate and :endDate and counttime >= :startTime and counttime < :endTime and person_type = 0 " +
"counttime as countTime from d_face_recognition where mall_id = :mallId and countdate between :startDate and :endDate and counttime >= :startTime and counttime < :endTime and invalid=0 and person_type = 0 " +
"and ((mall_id = :mallId and direction in(-1,1) and channel_id IN ( SELECT channel_id FROM r_mall_gate WHERE mall_id = :storeId and is_mall_gate = 1 and in_out = 1)) " +
"or (mall_id = :storeId and direction=6)) " +
"order by person_unid asc, counttime asc;";
String sqlNoMultipleDay = "select account_id,mall_id,gate_id,person_unid,direction,track_time,countdate as countDate,person_type,age,gender,channel_id," +
"counttime as countTime from d_face_recognition where mall_id = :mallId and countdate = :startDate and counttime >= :startTime and counttime < :endTime and person_type = 0 " +
"counttime as countTime from d_face_recognition where mall_id = :mallId and countdate = :startDate and counttime >= :startTime and counttime < :endTime and invalid=0 and person_type = 0 " +
"and ((mall_id = :mallId and direction in(-1,1) and channel_id IN ( SELECT channel_id FROM r_mall_gate WHERE mall_id = :storeId and is_mall_gate = 1 and in_out = 1)) " +
"or (mall_id = :storeId and direction=6)) " +
"order by person_unid asc, counttime asc;";
......@@ -103,11 +103,11 @@ public class FaceRecognitionDao {
DateTimeParam dateTimeParam = dateTimeParamService.getDateTimeParam(mallId, countDate);
String sql = "select account_id,mall_id,gate_id,person_unid,direction,track_time,countdate as countDate,person_type,age,gender," +
"counttime as countTime from d_face_recognition where mall_id = :mallId and countdate between :startDate and :endDate and counttime >= :startTime and counttime < :endTime " +
"and direction in(-1,1,6) and person_type = 0 order by person_unid asc, counttime asc;";
"and direction in(-1,1,6) and invalid=0 and person_type = 0 order by person_unid asc, counttime asc;";
String sqlNoMultipleDay = "select account_id,mall_id,gate_id,person_unid,direction,track_time,countdate as countDate,person_type,age,gender," +
"counttime as countTime from d_face_recognition where mall_id = :mallId and countdate = :startDate and counttime >= :startTime and counttime < :endTime " +
"and direction in(-1,1,6) and person_type = 0 order by person_unid asc, counttime asc;";
"and direction in(-1,1,6) and invalid=0 and person_type = 0 order by person_unid asc, counttime asc;";
Map<String, Object> queryMap = new HashMap<>();
queryMap.put("mallId", mallId);
queryMap.put("startDate", dateTimeParam.getStartDate());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!