Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
朱海
/
VVAS-PicGroup
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a3f9b5f1
authored
May 31, 2024
by
朱海
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[chg]顾客批次,店内区域匹配修改逻辑
1 parent
351cd534
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
80 additions
and
1 deletions
src/main/java/com/viontech/keliu/dao/DPersonBatchDao.java
src/main/java/com/viontech/keliu/dao/FaceRecognitionDao.java
src/main/java/com/viontech/keliu/entity/DPersonBatch.java
src/main/java/com/viontech/keliu/entity/Person.java
src/main/java/com/viontech/keliu/service/impl/PersonRecordServiceImpl.java
src/main/java/com/viontech/keliu/dao/DPersonBatchDao.java
0 → 100644
View file @
a3f9b5f
package
com
.
viontech
.
keliu
.
dao
;
import
com.viontech.keliu.entity.DPersonBatch
;
import
org.springframework.jdbc.core.BeanPropertyRowMapper
;
import
org.springframework.jdbc.core.JdbcTemplate
;
import
org.springframework.stereotype.Repository
;
import
javax.annotation.Resource
;
import
java.util.Date
;
import
java.util.List
;
/**
* Created with IntelliJ IDEA.
*
* @author: zhuhai
* Date: 2024-05-30
* Time: 18:04
*/
@Repository
public
class
DPersonBatchDao
{
@Resource
private
JdbcTemplate
jdbcTemplate
;
public
List
<
DPersonBatch
>
getPersonBatchList
(
Long
mallId
,
Date
countDate
)
{
String
sql
=
"select * from d_person_batch where mall_id = ? and count_date = ?"
;
return
jdbcTemplate
.
query
(
sql
,
new
BeanPropertyRowMapper
<>(
DPersonBatch
.
class
),
mallId
,
countDate
);
}
}
src/main/java/com/viontech/keliu/dao/FaceRecognitionDao.java
View file @
a3f9b5f
...
@@ -52,7 +52,7 @@ public class FaceRecognitionDao {
...
@@ -52,7 +52,7 @@ public class FaceRecognitionDao {
}
}
public
List
<
Person
>
queryFaceRecognitionList
(
Long
mallId
,
Date
countDate
)
{
public
List
<
Person
>
queryFaceRecognitionList
(
Long
mallId
,
Date
countDate
)
{
String
sql
=
"select account_id,mall_id,gate_id,person_unid,direction,countdate as countDate,person_type,age,gender,"
+
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 = ? and countdate = ? "
+
"counttime as countTime from d_face_recognition where mall_id = ? and countdate = ? "
+
"and direction in(-1,1,6) order by person_unid asc, counttime asc;"
;
"and direction in(-1,1,6) order by person_unid asc, counttime asc;"
;
...
...
src/main/java/com/viontech/keliu/entity/DPersonBatch.java
0 → 100644
View file @
a3f9b5f
package
com
.
viontech
.
keliu
.
entity
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* Created with IntelliJ IDEA.
* 接待详情表
* @author: zhuhai
* Date: 2023-12-20
* Time: 16:23
*/
@Data
public
class
DPersonBatch
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
8440383229421767268L
;
private
Long
id
;
private
Long
accountId
;
private
Long
mallId
;
private
String
personUnid
;
/**
* 进店时间
*/
private
Date
arriveTime
;
/**
* 离店时间
*/
private
Date
leaveTime
;
private
Date
countDate
;
private
String
batchId
;
}
\ No newline at end of file
\ No newline at end of file
src/main/java/com/viontech/keliu/entity/Person.java
View file @
a3f9b5f
...
@@ -24,5 +24,6 @@ public class Person {
...
@@ -24,5 +24,6 @@ public class Person {
private
Integer
direction
;
private
Integer
direction
;
private
Integer
age
;
private
Integer
age
;
private
Integer
gender
;
private
Integer
gender
;
private
Integer
trackTime
;
}
}
\ No newline at end of file
\ No newline at end of file
src/main/java/com/viontech/keliu/service/impl/PersonRecordServiceImpl.java
View file @
a3f9b5f
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment