Stringsql="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=newHashMap<>();
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 {
Stringsql="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;";
StringsqlNoMultipleDay="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 {
Stringsql="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;";
StringsqlNoMultipleDay="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;";