Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
refined-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
refined-platform
Commits
9804dbad
Commit
9804dbad
authored
Apr 19, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加人流统计模块
parent
0b6f034d
Changes
14
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
3393 additions
and
191 deletions
+3393
-191
doc/api.md
doc/api.md
+63
-0
doc/精细化管理系统.docx
doc/精细化管理系统.docx
+0
-0
refined-manager/src/main/java/com/mortals/xhx/daemon/task/SyncAppointWaitAndFinTaskImpl.java
...ortals/xhx/daemon/task/SyncAppointWaitAndFinTaskImpl.java
+58
-10
refined-manager/src/main/java/com/mortals/xhx/module/care/model/CareConfigEntity.java
...a/com/mortals/xhx/module/care/model/CareConfigEntity.java
+247
-181
refined-manager/src/main/java/com/mortals/xhx/module/realtime/dao/RealtimeDataflowStatDao.java
...tals/xhx/module/realtime/dao/RealtimeDataflowStatDao.java
+17
-0
refined-manager/src/main/java/com/mortals/xhx/module/realtime/dao/ibatis/RealtimeDataflowStatDaoImpl.java
...dule/realtime/dao/ibatis/RealtimeDataflowStatDaoImpl.java
+21
-0
refined-manager/src/main/java/com/mortals/xhx/module/realtime/model/RealtimeDataflowStatEntity.java
...xhx/module/realtime/model/RealtimeDataflowStatEntity.java
+91
-0
refined-manager/src/main/java/com/mortals/xhx/module/realtime/model/RealtimeDataflowStatQuery.java
.../xhx/module/realtime/model/RealtimeDataflowStatQuery.java
+1836
-0
refined-manager/src/main/java/com/mortals/xhx/module/realtime/model/vo/RealtimeDataflowStatVo.java
.../xhx/module/realtime/model/vo/RealtimeDataflowStatVo.java
+33
-0
refined-manager/src/main/java/com/mortals/xhx/module/realtime/service/RealtimeDataflowStatService.java
.../module/realtime/service/RealtimeDataflowStatService.java
+14
-0
refined-manager/src/main/java/com/mortals/xhx/module/realtime/service/impl/RealtimeDataflowStatServiceImpl.java
...ealtime/service/impl/RealtimeDataflowStatServiceImpl.java
+19
-0
refined-manager/src/main/java/com/mortals/xhx/module/realtime/web/RealtimeDataflowStatController.java
...x/module/realtime/web/RealtimeDataflowStatController.java
+49
-0
refined-manager/src/main/resources/sqlmap/module/realtime/RealtimeDataflowStatMapper.xml
...ces/sqlmap/module/realtime/RealtimeDataflowStatMapper.xml
+879
-0
refined-manager/src/test/java/com/mortals/httpclient/realtime/RealtimeDataflowStatController.http
...s/httpclient/realtime/RealtimeDataflowStatController.http
+66
-0
No files found.
doc/api.md
View file @
9804dbad
...
@@ -4080,6 +4080,69 @@ data| object |数据对象
...
@@ -4080,6 +4080,69 @@ data| object |数据对象
}
}
```
```
## 人员流量统计
### 查询人员流量统计列表
**请求URL:**
realtime/dataflow/stat/list
**请求方式:**
POST
**内容类型:**
application/json;charset=utf-8
**简要描述:**
查询人员流量统计
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:------
page|Integer|否|当前页
size|Integer|否|每页条数,值为-1,查询所有记录
**请求样例:**
```
{
"page":1,
"size":10
}
```
**响应参数:**
参数名称|参数类型|描述
:---|:---|:------
code|Integer|结果码(-1.失败,1.成功)
msg|String|消息
data|object|数据对象
 
per_page|Integer|每页条数
 
total|Integer|总条数
 
last_page|Integer|总页数
 
current_page|Integer|当前页
 
data|array|结果集列表|数组
  
id|Long|主键ID,主键,自增长
  
siteId|Long|站点Id
  
siteName|String|站点名称
  
personSum|Integer|人流总数
  
strangerSum|Integer|陌生人数量
  
recoginzeSum|Integer|识别注册群众数量
  
year|Integer|年
  
month|Integer|月
  
day|Integer|日
  
hour|Integer|小时
  
createTime|Date|创建时间
  
createUserId|Long|创建人id
  
updateTime|Date|更新时间
  
updateUserId|Long|更新人id
dict|object|字典对象
**响应消息样例:**
```
{
"code":1,
"data":{
}
}
```
```
```
...
...
doc/精细化管理系统.docx
View file @
9804dbad
No preview for this file type
refined-manager/src/main/java/com/mortals/xhx/daemon/task/SyncAppointWaitAndFinTaskImpl.java
View file @
9804dbad
...
@@ -26,10 +26,7 @@ import com.mortals.xhx.common.key.RedisKey;
...
@@ -26,10 +26,7 @@ import com.mortals.xhx.common.key.RedisKey;
import
com.mortals.xhx.module.appointment.model.AppointmentPersonEntity
;
import
com.mortals.xhx.module.appointment.model.AppointmentPersonEntity
;
import
com.mortals.xhx.module.appointment.model.AppointmentPersonQuery
;
import
com.mortals.xhx.module.appointment.model.AppointmentPersonQuery
;
import
com.mortals.xhx.module.appointment.service.AppointmentPersonService
;
import
com.mortals.xhx.module.appointment.service.AppointmentPersonService
;
import
com.mortals.xhx.module.care.model.CareConfigEntity
;
import
com.mortals.xhx.module.care.model.*
;
import
com.mortals.xhx.module.care.model.CareConfigQuery
;
import
com.mortals.xhx.module.care.model.CareRecordsEntity
;
import
com.mortals.xhx.module.care.model.CareRecordsQuery
;
import
com.mortals.xhx.module.care.service.CareConfigService
;
import
com.mortals.xhx.module.care.service.CareConfigService
;
import
com.mortals.xhx.module.care.service.CareRecordsService
;
import
com.mortals.xhx.module.care.service.CareRecordsService
;
import
com.mortals.xhx.module.hik.person.model.rsp.person.PersonInfo
;
import
com.mortals.xhx.module.hik.person.model.rsp.person.PersonInfo
;
...
@@ -41,6 +38,7 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -41,6 +38,7 @@ import lombok.extern.slf4j.Slf4j;
import
org.apache.commons.fileupload.FileItem
;
import
org.apache.commons.fileupload.FileItem
;
import
org.apache.commons.fileupload.FileItemFactory
;
import
org.apache.commons.fileupload.FileItemFactory
;
import
org.apache.commons.fileupload.disk.DiskFileItemFactory
;
import
org.apache.commons.fileupload.disk.DiskFileItemFactory
;
import
org.apache.kafka.common.protocol.types.Field
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.MediaType
;
...
@@ -52,10 +50,7 @@ import org.springframework.web.multipart.commons.CommonsMultipartFile;
...
@@ -52,10 +50,7 @@ import org.springframework.web.multipart.commons.CommonsMultipartFile;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.InputStream
;
import
java.io.OutputStream
;
import
java.io.OutputStream
;
import
java.util.Date
;
import
java.util.*
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
/**
/**
...
@@ -169,7 +164,10 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
...
@@ -169,7 +164,10 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
if
(
checkCareServiceUsed
(
careConfigEntity
))
return
;
if
(
checkCareServiceUsed
(
careConfigEntity
))
return
;
//校验当天日期是否启用
//校验当天日期是否启用
if
(
checkCareServiceDay
(
careConfigEntity
))
return
;
if
(
checkCareServiceDay
(
careConfigEntity
))
return
;
//校验当天服务最大人数
if
(
checkCareServiceMaxNum
(
careConfigEntity
))
return
;
//校验当天服务时间段
if
(
checkServiceTimeDurion
(
careConfigEntity
))
return
;
Long
serviceThreshold
=
careConfigEntity
.
getServiceThreshold
();
Long
serviceThreshold
=
careConfigEntity
.
getServiceThreshold
();
String
msgRecipients
=
careConfigEntity
.
getMsgRecipients
();
String
msgRecipients
=
careConfigEntity
.
getMsgRecipients
();
...
@@ -222,6 +220,36 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
...
@@ -222,6 +220,36 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
}
}
}
}
private
boolean
checkCareServiceMaxNum
(
CareConfigEntity
careConfigEntity
)
{
Integer
maxServicePersonNum
=
careConfigEntity
.
getMaxServicePersonNum
();
CareRecordsQuery
careRecordsQuery
=
new
CareRecordsQuery
();
careRecordsQuery
.
setCreateTimeStart
(
DateUtils
.
getCurrStrDate
());
careRecordsQuery
.
setCreateTimeEnd
(
DateUtils
.
getCurrStrDate
());
int
dayServiceNum
=
careRecordsService
.
count
(
careRecordsQuery
,
null
);
if
(
dayServiceNum
>
maxServicePersonNum
)
{
log
.
info
(
"服务人数超过最大数量!"
);
return
true
;
}
return
false
;
}
private
boolean
checkServiceTimeDurion
(
CareConfigEntity
careConfigEntity
)
{
List
<
CareConfigTimesEntity
>
careConfigTimesList
=
careConfigEntity
.
getCareConfigTimesList
();
if
(
ObjectUtils
.
isEmpty
(
careConfigTimesList
))
{
Date
date
=
new
Date
();
boolean
isIn
=
careConfigTimesList
.
stream
()
.
anyMatch
((
tp
)
->
(
tp
.
getServiceTimeStart
().
equals
(
date
)
||
tp
.
getServiceTimeStart
().
before
(
date
))
&&
(
tp
.
getServiceTimeEnd
().
equals
(
date
)
||
tp
.
getServiceTimeEnd
().
after
(
date
)));
if
(!
isIn
)
{
log
.
info
(
"当前时间不在服务时间内!"
);
return
true
;
}
}
return
false
;
}
@Override
@Override
public
void
stopTask
(
ITask
task
)
throws
AppException
{
public
void
stopTask
(
ITask
task
)
throws
AppException
{
...
@@ -231,7 +259,27 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
...
@@ -231,7 +259,27 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
DateUtil
.
parse
(
"19951071"
,
"yyyyMMdd"
));
Date
date
=
new
Date
();
// 待判断的时间对象
List
<
CareConfigTimesEntity
>
timePeriodList
=
new
ArrayList
<>();
// 时间段列表
CareConfigTimesEntity
careConfigTimesEntity
=
new
CareConfigTimesEntity
();
careConfigTimesEntity
.
setServiceTimeStart
(
DateUtil
.
parse
(
"2023-04-19 09:00:00"
));
careConfigTimesEntity
.
setServiceTimeEnd
(
DateUtil
.
parse
(
"2023-04-19 10:00:00"
));
timePeriodList
.
add
(
careConfigTimesEntity
);
careConfigTimesEntity
=
new
CareConfigTimesEntity
();
careConfigTimesEntity
.
setServiceTimeStart
(
DateUtil
.
parse
(
"2023-04-19 10:10:00"
));
careConfigTimesEntity
.
setServiceTimeEnd
(
DateUtil
.
parse
(
"2023-04-19 11:00:00"
));
timePeriodList
.
add
(
careConfigTimesEntity
);
boolean
isIn
=
timePeriodList
.
stream
()
.
anyMatch
((
tp
)
->
(
tp
.
getServiceTimeStart
().
equals
(
date
)
||
tp
.
getServiceTimeStart
().
before
(
date
))
&&
(
tp
.
getServiceTimeEnd
().
equals
(
date
)
||
tp
.
getServiceTimeEnd
().
after
(
date
)));
System
.
out
.
println
(
isIn
);
}
}
...
...
refined-manager/src/main/java/com/mortals/xhx/module/care/model/CareConfigEntity.java
View file @
9804dbad
package
com.mortals.xhx.module.care.model
;
package
com.mortals.xhx.module.care.model
;
import
java.util.List
;
import
java.util.List
;
import
java.util.List
;
import
java.util.List
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.mortals.framework.annotation.Excel
;
import
com.mortals.framework.annotation.Excel
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.xhx.module.care.model.vo.CareConfigVo
;
import
com.mortals.xhx.module.care.model.vo.CareConfigVo
;
import
com.mortals.xhx.module.care.model.CareConfigTimesEntity
;
import
com.mortals.xhx.module.care.model.CareConfigTimesEntity
;
/**
/**
* 主动关怀配置实体对象
* 主动关怀配置实体对象
*
*
* @author zxfei
* @author zxfei
* @date 2023-04-09
* @date 2023-04-09
*/
*/
public
class
CareConfigEntity
extends
CareConfigVo
{
public
class
CareConfigEntity
extends
CareConfigVo
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -82,227 +85,289 @@ public class CareConfigEntity extends CareConfigVo {
...
@@ -82,227 +85,289 @@ public class CareConfigEntity extends CareConfigVo {
/**
/**
* 主动关怀时间段信息
* 主动关怀时间段信息
*/
*/
private
List
<
CareConfigTimesEntity
>
careConfigTimesList
=
new
ArrayList
<>();;
private
List
<
CareConfigTimesEntity
>
careConfigTimesList
=
new
ArrayList
<>();
;
public
CareConfigEntity
(){}
public
CareConfigEntity
()
{
}
/**
/**
* 获取 站点Id
* 获取 站点Id
*
* @return Long
* @return Long
*/
*/
public
Long
getSiteId
(){
public
Long
getSiteId
()
{
return
siteId
;
return
siteId
;
}
}
/**
/**
* 设置 站点Id
* 设置 站点Id
*
* @param siteId
* @param siteId
*/
*/
public
void
setSiteId
(
Long
siteId
){
public
void
setSiteId
(
Long
siteId
)
{
this
.
siteId
=
siteId
;
this
.
siteId
=
siteId
;
}
}
/**
/**
* 获取 站点名称
* 获取 站点名称
*
* @return String
* @return String
*/
*/
public
String
getSiteName
(){
public
String
getSiteName
()
{
return
siteName
;
return
siteName
;
}
}
/**
/**
* 设置 站点名称
* 设置 站点名称
*
* @param siteName
* @param siteName
*/
*/
public
void
setSiteName
(
String
siteName
){
public
void
setSiteName
(
String
siteName
)
{
this
.
siteName
=
siteName
;
this
.
siteName
=
siteName
;
}
}
/**
/**
* 获取 是否启用该服务(0.否,1.是)
* 获取 是否启用该服务(0.否,1.是)
*
* @return Integer
* @return Integer
*/
*/
public
Integer
getUsed
(){
public
Integer
getUsed
()
{
return
used
;
return
used
;
}
}
/**
/**
* 设置 是否启用该服务(0.否,1.是)
* 设置 是否启用该服务(0.否,1.是)
*
* @param used
* @param used
*/
*/
public
void
setUsed
(
Integer
used
){
public
void
setUsed
(
Integer
used
)
{
this
.
used
=
used
;
this
.
used
=
used
;
}
}
/**
/**
* 获取 周一是否监测(0.否,1.是)
* 获取 周一是否监测(0.否,1.是)
*
* @return Integer
* @return Integer
*/
*/
public
Integer
getMonday
(){
public
Integer
getMonday
()
{
return
monday
;
return
monday
;
}
}
/**
/**
* 设置 周一是否监测(0.否,1.是)
* 设置 周一是否监测(0.否,1.是)
*
* @param monday
* @param monday
*/
*/
public
void
setMonday
(
Integer
monday
){
public
void
setMonday
(
Integer
monday
)
{
this
.
monday
=
monday
;
this
.
monday
=
monday
;
}
}
/**
/**
* 获取 周二是否监测(0.否,1.是)
* 获取 周二是否监测(0.否,1.是)
*
* @return Integer
* @return Integer
*/
*/
public
Integer
getTuesday
(){
public
Integer
getTuesday
()
{
return
tuesday
;
return
tuesday
;
}
}
/**
/**
* 设置 周二是否监测(0.否,1.是)
* 设置 周二是否监测(0.否,1.是)
*
* @param tuesday
* @param tuesday
*/
*/
public
void
setTuesday
(
Integer
tuesday
){
public
void
setTuesday
(
Integer
tuesday
)
{
this
.
tuesday
=
tuesday
;
this
.
tuesday
=
tuesday
;
}
}
/**
/**
* 获取 周三是否监测(0.否,1.是)
* 获取 周三是否监测(0.否,1.是)
*
* @return Integer
* @return Integer
*/
*/
public
Integer
getWednesday
(){
public
Integer
getWednesday
()
{
return
wednesday
;
return
wednesday
;
}
}
/**
/**
* 设置 周三是否监测(0.否,1.是)
* 设置 周三是否监测(0.否,1.是)
*
* @param wednesday
* @param wednesday
*/
*/
public
void
setWednesday
(
Integer
wednesday
){
public
void
setWednesday
(
Integer
wednesday
)
{
this
.
wednesday
=
wednesday
;
this
.
wednesday
=
wednesday
;
}
}
/**
/**
* 获取 周四是否监测(0.否,1.是)
* 获取 周四是否监测(0.否,1.是)
*
* @return Integer
* @return Integer
*/
*/
public
Integer
getThursday
(){
public
Integer
getThursday
()
{
return
thursday
;
return
thursday
;
}
}
/**
/**
* 设置 周四是否监测(0.否,1.是)
* 设置 周四是否监测(0.否,1.是)
*
* @param thursday
* @param thursday
*/
*/
public
void
setThursday
(
Integer
thursday
){
public
void
setThursday
(
Integer
thursday
)
{
this
.
thursday
=
thursday
;
this
.
thursday
=
thursday
;
}
}
/**
/**
* 获取 周五是否监测(0.否,1.是)
* 获取 周五是否监测(0.否,1.是)
*
* @return Integer
* @return Integer
*/
*/
public
Integer
getFriday
(){
public
Integer
getFriday
()
{
return
friday
;
return
friday
;
}
}
/**
/**
* 设置 周五是否监测(0.否,1.是)
* 设置 周五是否监测(0.否,1.是)
*
* @param friday
* @param friday
*/
*/
public
void
setFriday
(
Integer
friday
){
public
void
setFriday
(
Integer
friday
)
{
this
.
friday
=
friday
;
this
.
friday
=
friday
;
}
}
/**
/**
* 获取 周六是否监测(0.否,1.是)
* 获取 周六是否监测(0.否,1.是)
*
* @return Integer
* @return Integer
*/
*/
public
Integer
getSaturday
(){
public
Integer
getSaturday
()
{
return
saturday
;
return
saturday
;
}
}
/**
/**
* 设置 周六是否监测(0.否,1.是)
* 设置 周六是否监测(0.否,1.是)
*
* @param saturday
* @param saturday
*/
*/
public
void
setSaturday
(
Integer
saturday
){
public
void
setSaturday
(
Integer
saturday
)
{
this
.
saturday
=
saturday
;
this
.
saturday
=
saturday
;
}
}
/**
/**
* 获取 周日是否监测(0.否,1.是)
* 获取 周日是否监测(0.否,1.是)
*
* @return Integer
* @return Integer
*/
*/
public
Integer
getSunday
(){
public
Integer
getSunday
()
{
return
sunday
;
return
sunday
;
}
}
/**
/**
* 设置 周日是否监测(0.否,1.是)
* 设置 周日是否监测(0.否,1.是)
*
* @param sunday
* @param sunday
*/
*/
public
void
setSunday
(
Integer
sunday
){
public
void
setSunday
(
Integer
sunday
)
{
this
.
sunday
=
sunday
;
this
.
sunday
=
sunday
;
}
}
/**
/**
* 获取 单日服务最大人数设置
* 获取 单日服务最大人数设置
*
* @return Integer
* @return Integer
*/
*/
public
Integer
getMaxServicePersonNum
(){
public
Integer
getMaxServicePersonNum
()
{
return
maxServicePersonNum
;
return
maxServicePersonNum
;
}
}
/**
/**
* 设置 单日服务最大人数设置
* 设置 单日服务最大人数设置
*
* @param maxServicePersonNum
* @param maxServicePersonNum
*/
*/
public
void
setMaxServicePersonNum
(
Integer
maxServicePersonNum
){
public
void
setMaxServicePersonNum
(
Integer
maxServicePersonNum
)
{
this
.
maxServicePersonNum
=
maxServicePersonNum
;
this
.
maxServicePersonNum
=
maxServicePersonNum
;
}
}
/**
/**
* 获取 服务阈值设置,单位分钟
* 获取 服务阈值设置,单位分钟
*
* @return Long
* @return Long
*/
*/
public
Long
getServiceThreshold
(){
public
Long
getServiceThreshold
()
{
return
serviceThreshold
;
return
serviceThreshold
;
}
}
/**
/**
* 设置 服务阈值设置,单位分钟
* 设置 服务阈值设置,单位分钟
*
* @param serviceThreshold
* @param serviceThreshold
*/
*/
public
void
setServiceThreshold
(
Long
serviceThreshold
){
public
void
setServiceThreshold
(
Long
serviceThreshold
)
{
this
.
serviceThreshold
=
serviceThreshold
;
this
.
serviceThreshold
=
serviceThreshold
;
}
}
/**
/**
* 获取 累计服务频次预警
* 获取 累计服务频次预警
*
* @return Integer
* @return Integer
*/
*/
public
Integer
getAlertServiceNum
(){
public
Integer
getAlertServiceNum
()
{
return
alertServiceNum
;
return
alertServiceNum
;
}
}
/**
/**
* 设置 累计服务频次预警
* 设置 累计服务频次预警
*
* @param alertServiceNum
* @param alertServiceNum
*/
*/
public
void
setAlertServiceNum
(
Integer
alertServiceNum
){
public
void
setAlertServiceNum
(
Integer
alertServiceNum
)
{
this
.
alertServiceNum
=
alertServiceNum
;
this
.
alertServiceNum
=
alertServiceNum
;
}
}
/**
/**
* 获取 消息发送对象(办事群众.办事群众,管理员.管理员)
* 获取 消息发送对象(办事群众.办事群众,管理员.管理员)
*
* @return String
* @return String
*/
*/
public
String
getMsgRecipients
(){
public
String
getMsgRecipients
()
{
return
msgRecipients
;
return
msgRecipients
;
}
}
/**
/**
* 设置 消息发送对象(办事群众.办事群众,管理员.管理员)
* 设置 消息发送对象(办事群众.办事群众,管理员.管理员)
*
* @param msgRecipients
* @param msgRecipients
*/
*/
public
void
setMsgRecipients
(
String
msgRecipients
){
public
void
setMsgRecipients
(
String
msgRecipients
)
{
this
.
msgRecipients
=
msgRecipients
;
this
.
msgRecipients
=
msgRecipients
;
}
}
/**
/**
* 获取 备注
* 获取 备注
*
* @return String
* @return String
*/
*/
public
String
getRemark
(){
public
String
getRemark
()
{
return
remark
;
return
remark
;
}
}
/**
/**
* 设置 备注
* 设置 备注
*
* @param remark
* @param remark
*/
*/
public
void
setRemark
(
String
remark
){
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
this
.
remark
=
remark
;
}
}
public
List
<
CareConfigTimesEntity
>
getCareConfigTimesList
(){
public
List
<
CareConfigTimesEntity
>
getCareConfigTimesList
()
{
return
careConfigTimesList
;
return
careConfigTimesList
;
}
}
public
void
setCareConfigTimesList
(
List
<
CareConfigTimesEntity
>
careConfigTimesList
){
public
void
setCareConfigTimesList
(
List
<
CareConfigTimesEntity
>
careConfigTimesList
)
{
this
.
careConfigTimesList
=
careConfigTimesList
;
this
.
careConfigTimesList
=
careConfigTimesList
;
}
}
...
@@ -311,6 +376,7 @@ public class CareConfigEntity extends CareConfigVo {
...
@@ -311,6 +376,7 @@ public class CareConfigEntity extends CareConfigVo {
public
int
hashCode
()
{
public
int
hashCode
()
{
return
this
.
getId
().
hashCode
();
return
this
.
getId
().
hashCode
();
}
}
@Override
@Override
public
boolean
equals
(
Object
obj
)
{
public
boolean
equals
(
Object
obj
)
{
if
(
obj
==
null
)
return
false
;
if
(
obj
==
null
)
return
false
;
...
@@ -323,7 +389,7 @@ public class CareConfigEntity extends CareConfigVo {
...
@@ -323,7 +389,7 @@ public class CareConfigEntity extends CareConfigVo {
return
false
;
return
false
;
}
}
public
String
toString
(){
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
(
""
);
StringBuilder
sb
=
new
StringBuilder
(
""
);
sb
.
append
(
",siteId:"
).
append
(
getSiteId
());
sb
.
append
(
",siteId:"
).
append
(
getSiteId
());
sb
.
append
(
",siteName:"
).
append
(
getSiteName
());
sb
.
append
(
",siteName:"
).
append
(
getSiteName
());
...
@@ -343,7 +409,7 @@ public class CareConfigEntity extends CareConfigVo {
...
@@ -343,7 +409,7 @@ public class CareConfigEntity extends CareConfigVo {
return
sb
.
toString
();
return
sb
.
toString
();
}
}
public
void
initAttrValue
(){
public
void
initAttrValue
()
{
this
.
siteId
=
null
;
this
.
siteId
=
null
;
...
@@ -369,9 +435,9 @@ public class CareConfigEntity extends CareConfigVo {
...
@@ -369,9 +435,9 @@ public class CareConfigEntity extends CareConfigVo {
this
.
serviceThreshold
=
0L
;
this
.
serviceThreshold
=
0L
;
this
.
alertServiceNum
=
0
;
this
.
alertServiceNum
=
20
0
;
this
.
msgRecipients
=
"
"
;
this
.
msgRecipients
=
"管理员
"
;
this
.
remark
=
""
;
this
.
remark
=
""
;
}
}
...
...
refined-manager/src/main/java/com/mortals/xhx/module/realtime/dao/RealtimeDataflowStatDao.java
0 → 100644
View file @
9804dbad
package
com.mortals.xhx.module.realtime.dao
;
import
com.mortals.framework.dao.ICRUDDao
;
import
com.mortals.xhx.module.realtime.model.RealtimeDataflowStatEntity
;
import
java.util.List
;
/**
* 人员流量统计Dao
* 人员流量统计 DAO接口
*
* @author zxfei
* @date 2023-04-19
*/
public
interface
RealtimeDataflowStatDao
extends
ICRUDDao
<
RealtimeDataflowStatEntity
,
Long
>{
}
refined-manager/src/main/java/com/mortals/xhx/module/realtime/dao/ibatis/RealtimeDataflowStatDaoImpl.java
0 → 100644
View file @
9804dbad
package
com.mortals.xhx.module.realtime.dao.ibatis
;
import
org.springframework.stereotype.Repository
;
import
com.mortals.xhx.module.realtime.dao.RealtimeDataflowStatDao
;
import
com.mortals.xhx.module.realtime.model.RealtimeDataflowStatEntity
;
import
java.util.Date
;
import
com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis
;
import
java.util.List
;
/**
* 人员流量统计DaoImpl DAO接口
*
* @author zxfei
* @date 2023-04-19
*/
@Repository
(
"realtimeDataflowStatDao"
)
public
class
RealtimeDataflowStatDaoImpl
extends
BaseCRUDDaoMybatis
<
RealtimeDataflowStatEntity
,
Long
>
implements
RealtimeDataflowStatDao
{
}
refined-manager/src/main/java/com/mortals/xhx/module/realtime/model/RealtimeDataflowStatEntity.java
0 → 100644
View file @
9804dbad
package
com.mortals.xhx.module.realtime.model
;
import
java.util.List
;
import
java.util.ArrayList
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.mortals.framework.annotation.Excel
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.xhx.module.realtime.model.vo.RealtimeDataflowStatVo
;
import
lombok.Data
;
/**
* 人员流量统计实体对象
*
* @author zxfei
* @date 2023-04-19
*/
@Data
public
class
RealtimeDataflowStatEntity
extends
RealtimeDataflowStatVo
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 站点Id
*/
private
Long
siteId
;
/**
* 站点名称
*/
private
String
siteName
;
/**
* 人流总数
*/
private
Integer
personSum
;
/**
* 陌生人数量
*/
private
Integer
strangerSum
;
/**
* 识别注册群众数量
*/
private
Integer
recoginzeSum
;
/**
* 年
*/
private
Integer
year
;
/**
* 月
*/
private
Integer
month
;
/**
* 日
*/
private
Integer
day
;
/**
* 小时
*/
private
Integer
hour
;
@Override
public
int
hashCode
()
{
return
this
.
getId
().
hashCode
();
}
@Override
public
boolean
equals
(
Object
obj
)
{
if
(
obj
==
null
)
return
false
;
if
(
obj
instanceof
RealtimeDataflowStatEntity
)
{
RealtimeDataflowStatEntity
tmp
=
(
RealtimeDataflowStatEntity
)
obj
;
if
(
this
.
getId
()
==
tmp
.
getId
())
{
return
true
;
}
}
return
false
;
}
public
void
initAttrValue
(){
this
.
siteId
=
null
;
this
.
siteName
=
""
;
this
.
personSum
=
null
;
this
.
strangerSum
=
null
;
this
.
recoginzeSum
=
null
;
this
.
year
=
null
;
this
.
month
=
null
;
this
.
day
=
null
;
this
.
hour
=
null
;
}
}
\ No newline at end of file
refined-manager/src/main/java/com/mortals/xhx/module/realtime/model/RealtimeDataflowStatQuery.java
0 → 100644
View file @
9804dbad
This diff is collapsed.
Click to expand it.
refined-manager/src/main/java/com/mortals/xhx/module/realtime/model/vo/RealtimeDataflowStatVo.java
0 → 100644
View file @
9804dbad
package
com.mortals.xhx.module.realtime.model.vo
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.xhx.module.realtime.model.RealtimeDataflowStatEntity
;
import
java.util.ArrayList
;
import
java.util.List
;
import
lombok.Data
;
/**
* 人员流量统计视图对象
*
* @author zxfei
* @date 2023-04-19
*/
@Data
public
class
RealtimeDataflowStatVo
extends
BaseEntityLong
{
/**
* 人流总数
*/
@Excel
(
name
=
"人流总数"
)
private
Integer
personSum
;
/**
* 陌生人数量
*/
@Excel
(
name
=
"陌生人数量"
)
private
Integer
strangerSum
;
/**
* 识别注册群众数量
*/
@Excel
(
name
=
"识别注册群众数量"
)
private
Integer
recoginzeSum
;
}
\ No newline at end of file
refined-manager/src/main/java/com/mortals/xhx/module/realtime/service/RealtimeDataflowStatService.java
0 → 100644
View file @
9804dbad
package
com.mortals.xhx.module.realtime.service
;
import
com.mortals.framework.service.ICRUDService
;
import
com.mortals.xhx.module.realtime.model.RealtimeDataflowStatEntity
;
/**
* RealtimeDataflowStatService
*
* 人员流量统计 service接口
*
* @author zxfei
* @date 2023-04-19
*/
public
interface
RealtimeDataflowStatService
extends
ICRUDService
<
RealtimeDataflowStatEntity
,
Long
>{
}
\ No newline at end of file
refined-manager/src/main/java/com/mortals/xhx/module/realtime/service/impl/RealtimeDataflowStatServiceImpl.java
0 → 100644
View file @
9804dbad
package
com.mortals.xhx.module.realtime.service.impl
;
import
org.springframework.stereotype.Service
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.Context
;
import
com.mortals.xhx.module.realtime.dao.RealtimeDataflowStatDao
;
import
com.mortals.xhx.module.realtime.model.RealtimeDataflowStatEntity
;
import
com.mortals.xhx.module.realtime.service.RealtimeDataflowStatService
;
/**
* RealtimeDataflowStatService
* 人员流量统计 service实现
*
* @author zxfei
* @date 2023-04-19
*/
@Service
(
"realtimeDataflowStatService"
)
public
class
RealtimeDataflowStatServiceImpl
extends
AbstractCRUDServiceImpl
<
RealtimeDataflowStatDao
,
RealtimeDataflowStatEntity
,
Long
>
implements
RealtimeDataflowStatService
{
}
\ No newline at end of file
refined-manager/src/main/java/com/mortals/xhx/module/realtime/web/RealtimeDataflowStatController.java
0 → 100644
View file @
9804dbad
package
com.mortals.xhx.module.realtime.web
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
com.mortals.framework.model.Context
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.module.realtime.model.RealtimeDataflowStatEntity
;
import
com.mortals.xhx.module.realtime.service.RealtimeDataflowStatService
;
import
org.apache.commons.lang3.ArrayUtils
;
import
com.mortals.framework.util.StringUtils
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
com.alibaba.fastjson.JSONObject
;
import
java.util.Arrays
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
static
com
.
mortals
.
framework
.
ap
.
SysConstains
.*;
/**
*
* 人员流量统计
*
* @author zxfei
* @date 2023-04-19
*/
@RestController
@RequestMapping
(
"realtime/dataflow/stat"
)
public
class
RealtimeDataflowStatController
extends
BaseCRUDJsonBodyMappingController
<
RealtimeDataflowStatService
,
RealtimeDataflowStatEntity
,
Long
>
{
@Autowired
private
ParamService
paramService
;
public
RealtimeDataflowStatController
(){
super
.
setModuleDesc
(
"人员流量统计"
);
}
@Override
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
super
.
init
(
model
,
context
);
}
}
\ No newline at end of file
refined-manager/src/main/resources/sqlmap/module/realtime/RealtimeDataflowStatMapper.xml
0 → 100644
View file @
9804dbad
This diff is collapsed.
Click to expand it.
refined-manager/src/test/java/com/mortals/httpclient/realtime/RealtimeDataflowStatController.http
0 → 100644
View file @
9804dbad
###登录
POST {{baseUrl}}/login/login
Content-Type: application/json
{
"loginName":"admin",
"password":"admin",
"securityCode":"8888"
}
> {%
client.global.set("SmsSet_id", JSON.parse(response.body).data.id);
client.global.set("authToken", JSON.parse(response.body).data.token);
%}
###人员流量统计列表
POST {{baseUrl}}/realtime/dataflow/stat/list
Authorization: {{authToken}}
Content-Type: application/json
{
"page":1,
"size":10
}
###人员流量统计更新与保存
POST {{baseUrl}}/realtime/dataflow/stat/save
Authorization: {{authToken}}
Content-Type: application/json
{
"siteId":818,
"siteName":"51hmqj",
"personSum":924,
"strangerSum":704,
"recoginzeSum":196,
"year":390,
"month":201,
"day":998,
"hour":416,
}
> {%
client.global.set("RealtimeDataflowStat_id", JSON.parse(response.body).data.id);
%}
###人员流量统计查看
GET {{baseUrl}}/realtime/dataflow/stat/info?id={{RealtimeDataflowStat_id}}
Authorization: {{authToken}}
Accept: application/json
###人员流量统计编辑
GET {{baseUrl}}/realtime/dataflow/stat/edit?id={{RealtimeDataflowStat_id}}
Authorization: {{authToken}}
Accept: application/json
###人员流量统计删除
GET {{baseUrl}}/realtime/dataflow/stat/delete?id={{RealtimeDataflowStat_id}}
Authorization: {{authToken}}
Accept: application/json
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment