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
e0ba2cd8
Commit
e0ba2cd8
authored
Apr 19, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加人流统计模块
parent
9804dbad
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
201 additions
and
37 deletions
+201
-37
refined-manager-ui/admin/src/assets/utils/ajax.js
refined-manager-ui/admin/src/assets/utils/ajax.js
+32
-0
refined-manager/src/main/java/com/mortals/xhx/daemon/task/RealTimePeopleStatTaskImpl.java
...m/mortals/xhx/daemon/task/RealTimePeopleStatTaskImpl.java
+114
-0
refined-manager/src/main/java/com/mortals/xhx/daemon/task/SyncAppointWaitAndFinTaskImpl.java
...ortals/xhx/daemon/task/SyncAppointWaitAndFinTaskImpl.java
+38
-21
refined-manager/src/main/java/com/mortals/xhx/module/hik/camera/service/impl/HikCameraServiceImpl.java
.../module/hik/camera/service/impl/HikCameraServiceImpl.java
+2
-2
refined-manager/src/main/java/com/mortals/xhx/module/hik/door/service/impl/HikDoorServiceImpl.java
.../xhx/module/hik/door/service/impl/HikDoorServiceImpl.java
+1
-1
refined-manager/src/main/java/com/mortals/xhx/module/hik/event/service/impl/HikEventServiceImpl.java
...hx/module/hik/event/service/impl/HikEventServiceImpl.java
+1
-1
refined-manager/src/main/java/com/mortals/xhx/module/hik/face/service/impl/HikFaceServiceImpl.java
.../xhx/module/hik/face/service/impl/HikFaceServiceImpl.java
+3
-3
refined-manager/src/main/java/com/mortals/xhx/module/hik/face/service/impl/HikPlanServiceImpl.java
.../xhx/module/hik/face/service/impl/HikPlanServiceImpl.java
+7
-7
refined-manager/src/main/java/com/mortals/xhx/module/hik/person/service/impl/HikPersonServiceImpl.java
.../module/hik/person/service/impl/HikPersonServiceImpl.java
+2
-2
refined-manager/src/main/java/com/mortals/xhx/module/realtime/model/vo/RealtimeDataflowStatVo.java
.../xhx/module/realtime/model/vo/RealtimeDataflowStatVo.java
+1
-0
No files found.
refined-manager-ui/admin/src/assets/utils/ajax.js
View file @
e0ba2cd8
...
@@ -10,6 +10,38 @@ const instance = axios.create({
...
@@ -10,6 +10,38 @@ const instance = axios.create({
post
:
{
post
:
{
'
Content-Type
'
:
'
application/json;charset=UTF-8
'
,
'
Content-Type
'
:
'
application/json;charset=UTF-8
'
,
'
dataType
'
:
'
json
'
,
'
dataType
'
:
'
json
'
,
}
}
},
},
transformResponse
:
[
data
=>
{
transformResponse
:
[
data
=>
{
...
...
refined-manager/src/main/java/com/mortals/xhx/daemon/task/RealTimePeopleStatTaskImpl.java
0 → 100644
View file @
e0ba2cd8
package
com.mortals.xhx.daemon.task
;
import
cn.hutool.core.date.DateUtil
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.service.ITask
;
import
com.mortals.framework.service.ITaskExcuteService
;
import
com.mortals.xhx.module.realtime.model.RealtimeDataflowEntity
;
import
com.mortals.xhx.module.realtime.model.RealtimeDataflowQuery
;
import
com.mortals.xhx.module.realtime.model.RealtimeDataflowStatEntity
;
import
com.mortals.xhx.module.realtime.model.RealtimeDataflowStatQuery
;
import
com.mortals.xhx.module.realtime.service.RealtimeDataflowService
;
import
com.mortals.xhx.module.realtime.service.RealtimeDataflowStatService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.ObjectUtils
;
import
java.util.Date
;
import
java.util.List
;
/**
* 人流统计接口
*/
@Slf4j
@Service
(
"RealTimePeopleStatTask"
)
public
class
RealTimePeopleStatTaskImpl
implements
ITaskExcuteService
{
@Autowired
private
RealtimeDataflowService
realtimeDataflowService
;
@Autowired
private
RealtimeDataflowStatService
realtimeDataflowStatService
;
@Override
public
void
excuteTask
(
ITask
task
)
throws
AppException
{
statPeople
();
}
private
void
statPeople
()
{
Date
startTime
=
DateUtil
.
beginOfHour
(
new
Date
());
Date
endTime
=
DateUtil
.
endOfHour
(
new
Date
());
// 格式化时间为指定格式
String
startTimeStr
=
DateUtil
.
format
(
startTime
,
"yyyy-MM-dd HH:00:00"
);
String
endTimeStr
=
DateUtil
.
format
(
endTime
,
"yyyy-MM-dd HH:59:59"
);
RealtimeDataflowQuery
realtimeDataflowQuery
=
new
RealtimeDataflowQuery
();
realtimeDataflowQuery
.
setCreateTimeStart
(
startTimeStr
);
realtimeDataflowQuery
.
setCreateTimeEnd
(
endTimeStr
);
List
<
RealtimeDataflowEntity
>
realtimeDataflowEntities
=
realtimeDataflowService
.
find
(
realtimeDataflowQuery
,
null
);
if
(
ObjectUtils
.
isEmpty
(
realtimeDataflowEntities
))
{
Long
strangerCount
=
realtimeDataflowEntities
.
parallelStream
().
filter
(
f
->
ObjectUtils
.
isEmpty
(
f
.
getIdNumber
())).
count
();
int
total
=
realtimeDataflowEntities
.
size
();
Long
recognizeCount
=
total
-
strangerCount
;
Date
date
=
new
Date
();
int
year
=
DateUtil
.
year
(
date
);
int
month
=
DateUtil
.
month
(
date
);
int
day
=
DateUtil
.
dayOfMonth
(
date
);
int
hour
=
DateUtil
.
hour
(
date
,
true
);
RealtimeDataflowStatQuery
realtimeDataflowStatQuery
=
new
RealtimeDataflowStatQuery
();
realtimeDataflowStatQuery
.
setYear
(
year
);
realtimeDataflowStatQuery
.
setMonth
(
month
);
realtimeDataflowStatQuery
.
setDay
(
day
);
realtimeDataflowStatQuery
.
setHour
(
hour
);
RealtimeDataflowStatEntity
realtimeDataflowStatEntity
=
realtimeDataflowStatService
.
selectOne
(
realtimeDataflowStatQuery
);
if
(
ObjectUtils
.
isEmpty
(
realtimeDataflowStatEntity
))
{
RealtimeDataflowStatEntity
statEntity
=
new
RealtimeDataflowStatEntity
();
statEntity
.
initAttrValue
();
statEntity
.
setPersonSum
(
total
);
statEntity
.
setStrangerSum
(
strangerCount
.
intValue
());
statEntity
.
setRecoginzeSum
(
recognizeCount
.
intValue
());
statEntity
.
setYear
(
year
);
statEntity
.
setMonth
(
month
);
statEntity
.
setDay
(
day
);
statEntity
.
setHour
(
hour
);
statEntity
.
setPersonSum
(
total
);
statEntity
.
setCreateUserId
(
1L
);
statEntity
.
setCreateTime
(
new
Date
());
realtimeDataflowStatService
.
save
(
statEntity
);
}
else
{
realtimeDataflowStatEntity
.
setPersonSum
(
total
);
realtimeDataflowStatEntity
.
setStrangerSum
(
strangerCount
.
intValue
());
realtimeDataflowStatEntity
.
setRecoginzeSum
(
recognizeCount
.
intValue
());
realtimeDataflowStatEntity
.
setUpdateUserId
(
1L
);
realtimeDataflowStatEntity
.
setUpdateTime
(
new
Date
());
realtimeDataflowStatService
.
update
(
realtimeDataflowStatEntity
);
}
}
}
@Override
public
void
stopTask
(
ITask
task
)
throws
AppException
{
}
public
static
void
main
(
String
[]
args
)
{
// 获取当前时间的小时数
int
hour
=
DateUtil
.
hour
(
new
Date
(),
true
);
// 获取当前时间所在小时的开始时间和结束时间
Date
startTime
=
DateUtil
.
beginOfHour
(
new
Date
());
Date
endTime
=
DateUtil
.
endOfHour
(
new
Date
());
// 格式化时间为指定格式
String
startTimeStr
=
DateUtil
.
format
(
startTime
,
"yyyy-MM-dd HH:00:00"
);
String
endTimeStr
=
DateUtil
.
format
(
endTime
,
"yyyy-MM-dd HH:59:59"
);
// 输出结果
System
.
out
.
println
(
"当前时间所在小时的开始时间:"
+
startTimeStr
);
System
.
out
.
println
(
"当前时间所在小时的结束时间:"
+
endTimeStr
);
}
}
refined-manager/src/main/java/com/mortals/xhx/daemon/task/SyncAppointWaitAndFinTaskImpl.java
View file @
e0ba2cd8
...
@@ -89,9 +89,25 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
...
@@ -89,9 +89,25 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
}
}
private
void
syncWaitAndFinQueue
()
{
private
void
syncWaitAndFinQueue
()
{
List
<
WaitPersonInfo
>
waitPersonInfos
=
new
ArrayList
<>();
List
<
FinPersonInfo
>
finPersonInfos
=
new
ArrayList
<>();
cacheService
.
select
(
redisDb
);
//
cacheService
.
select
(
redisDb
);
//
List
<
WaitPersonInfo
>
waitPersonInfos
=
cacheService
.
lrange
(
RedisKey
.
KEY_WAITNUM_LIST_CACHE
,
WaitPersonInfo
.
class
);
while
(
true
)
{
List
<
FinPersonInfo
>
finPersonInfos
=
cacheService
.
lrange
(
RedisKey
.
KEY_FIN_LIST_CACHE
,
FinPersonInfo
.
class
);
WaitPersonInfo
waitPersonInfo
=
cacheService
.
lpop
(
RedisKey
.
KEY_WAITNUM_LIST_CACHE
,
WaitPersonInfo
.
class
);
if
(
ObjectUtils
.
isEmpty
(
waitPersonInfo
))
{
break
;
}
else
{
waitPersonInfos
.
add
(
waitPersonInfo
);
}
}
while
(
true
)
{
FinPersonInfo
finPersonInfo
=
cacheService
.
lpop
(
RedisKey
.
KEY_FIN_LIST_CACHE
,
FinPersonInfo
.
class
);
if
(
ObjectUtils
.
isEmpty
(
finPersonInfo
))
{
break
;
}
else
{
finPersonInfos
.
add
(
finPersonInfo
);
}
}
cacheService
.
select
(
database
);
//
cacheService
.
select
(
database
);
//
if
(!
ObjectUtils
.
isEmpty
(
waitPersonInfos
))
{
if
(!
ObjectUtils
.
isEmpty
(
waitPersonInfos
))
{
List
<
CareRecordsEntity
>
recordsEntityList
=
waitPersonInfos
.
stream
().
map
(
item
->
{
List
<
CareRecordsEntity
>
recordsEntityList
=
waitPersonInfos
.
stream
().
map
(
item
->
{
...
@@ -118,7 +134,7 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
...
@@ -118,7 +134,7 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
log
.
info
(
"保存关怀记录数量,size:{}"
,
recordsEntityList
.
size
());
log
.
info
(
"保存关怀记录数量,size:{}"
,
recordsEntityList
.
size
());
careRecordsService
.
save
(
recordsEntityList
);
careRecordsService
.
save
(
recordsEntityList
);
}
}
}
if
(!
ObjectUtils
.
isEmpty
(
finPersonInfos
))
{
if
(!
ObjectUtils
.
isEmpty
(
finPersonInfos
))
{
List
<
Long
>
waitIdList
=
finPersonInfos
.
stream
().
map
(
item
->
item
.
getWaitId
()).
collect
(
Collectors
.
toList
());
List
<
Long
>
waitIdList
=
finPersonInfos
.
stream
().
map
(
item
->
item
.
getWaitId
()).
collect
(
Collectors
.
toList
());
Map
<
Long
,
FinPersonInfo
>
waitMap
=
finPersonInfos
.
stream
().
collect
(
Collectors
.
toMap
(
x
->
x
.
getWaitId
(),
y
->
y
,
(
o
,
n
)
->
n
));
Map
<
Long
,
FinPersonInfo
>
waitMap
=
finPersonInfos
.
stream
().
collect
(
Collectors
.
toMap
(
x
->
x
.
getWaitId
(),
y
->
y
,
(
o
,
n
)
->
n
));
...
@@ -127,7 +143,6 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
...
@@ -127,7 +143,6 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
careRecordsQuery
.
setPersonIdList
(
waitIdList
);
careRecordsQuery
.
setPersonIdList
(
waitIdList
);
List
<
CareRecordsEntity
>
careRecordsEntities
=
careRecordsService
.
find
(
careRecordsQuery
);
List
<
CareRecordsEntity
>
careRecordsEntities
=
careRecordsService
.
find
(
careRecordsQuery
);
if
(!
ObjectUtils
.
isEmpty
(
careRecordsEntities
))
{
if
(!
ObjectUtils
.
isEmpty
(
careRecordsEntities
))
{
//todo 更新关怀记录
careRecordsEntities
.
forEach
(
item
->
{
careRecordsEntities
.
forEach
(
item
->
{
FinPersonInfo
finPersonInfo
=
waitMap
.
get
(
item
.
getPersonId
());
FinPersonInfo
finPersonInfo
=
waitMap
.
get
(
item
.
getPersonId
());
item
.
setProcessStatus
(
ProcessStatusEnum
.
接件结束
.
getValue
());
item
.
setProcessStatus
(
ProcessStatusEnum
.
接件结束
.
getValue
());
...
@@ -138,6 +153,8 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
...
@@ -138,6 +153,8 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
item
.
setUpdateUserId
(
1L
);
item
.
setUpdateUserId
(
1L
);
item
.
setUpdateUserName
(
"system"
);
item
.
setUpdateUserName
(
"system"
);
});
});
if
(!
ObjectUtils
.
isEmpty
(
careRecordsEntities
))
{
log
.
info
(
"更新关怀记录数量,size:{}"
,
careRecordsEntities
.
size
());
careRecordsService
.
update
(
careRecordsEntities
);
careRecordsService
.
update
(
careRecordsEntities
);
}
}
}
}
...
...
refined-manager/src/main/java/com/mortals/xhx/module/hik/camera/service/impl/HikCameraServiceImpl.java
View file @
e0ba2cd8
...
@@ -35,12 +35,12 @@ public class HikCameraServiceImpl extends AbstractHikService implements IHikCame
...
@@ -35,12 +35,12 @@ public class HikCameraServiceImpl extends AbstractHikService implements IHikCame
try
{
try
{
log
.
info
(
"camera list req=>{}"
,
JSON
.
toJSONString
(
cameraListReq
));
log
.
info
(
"camera list req=>{}"
,
JSON
.
toJSONString
(
cameraListReq
));
String
respJson
=
ArtemisHttpUtil
.
doPostStringArtemis
(
config
,
path
,
JSON
.
toJSONString
(
cameraListReq
),
null
,
null
,
"application/json"
);
String
respJson
=
ArtemisHttpUtil
.
doPostStringArtemis
(
config
,
path
,
JSON
.
toJSONString
(
cameraListReq
),
null
,
null
,
"application/json"
);
log
.
info
(
"camera list resp=>{}"
,
respJson
);
HikApiRest
<
CameraDataInfo
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
CameraDataInfo
>>()
{
HikApiRest
<
CameraDataInfo
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
CameraDataInfo
>>()
{
});
});
if
(
rest
.
getCode
()
==
"0"
)
{
if
(
"0"
.
equals
(
rest
.
getCode
())
)
{
return
Rest
.
ok
(
rest
.
getData
());
return
Rest
.
ok
(
rest
.
getData
());
}
else
{
}
else
{
log
.
info
(
"camera list error resp=>{}"
,
JSON
.
toJSONString
(
rest
));
return
Rest
.
fail
(
rest
.
getMsg
());
return
Rest
.
fail
(
rest
.
getMsg
());
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
refined-manager/src/main/java/com/mortals/xhx/module/hik/door/service/impl/HikDoorServiceImpl.java
View file @
e0ba2cd8
...
@@ -36,7 +36,7 @@ public class HikDoorServiceImpl extends AbstractHikService implements IHikDoorSe
...
@@ -36,7 +36,7 @@ public class HikDoorServiceImpl extends AbstractHikService implements IHikDoorSe
try
{
try
{
log
.
info
(
"door events req=>{}"
,
JSON
.
toJSONString
(
doorEventReq
));
log
.
info
(
"door events req=>{}"
,
JSON
.
toJSONString
(
doorEventReq
));
String
respJson
=
ArtemisHttpUtil
.
doPostStringArtemis
(
config
,
path
,
JSON
.
toJSONString
(
doorEventReq
),
null
,
null
,
"application/json"
);
String
respJson
=
ArtemisHttpUtil
.
doPostStringArtemis
(
config
,
path
,
JSON
.
toJSONString
(
doorEventReq
),
null
,
null
,
"application/json"
);
log
.
info
(
"door events
error
resp=>{}"
,
respJson
);
log
.
info
(
"door events resp=>{}"
,
respJson
);
HikApiRest
<
DoorEventDataInfo
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
DoorEventDataInfo
>>()
{
HikApiRest
<
DoorEventDataInfo
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
DoorEventDataInfo
>>()
{
});
});
if
(
rest
.
getCode
()==
"0"
){
if
(
rest
.
getCode
()==
"0"
){
...
...
refined-manager/src/main/java/com/mortals/xhx/module/hik/event/service/impl/HikEventServiceImpl.java
View file @
e0ba2cd8
...
@@ -53,7 +53,7 @@ public class HikEventServiceImpl extends AbstractHikService implements IHikEvent
...
@@ -53,7 +53,7 @@ public class HikEventServiceImpl extends AbstractHikService implements IHikEvent
log
.
info
(
"event sub resp=>{}"
,
respJson
);
log
.
info
(
"event sub resp=>{}"
,
respJson
);
HikApiRest
<
String
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
String
>>()
{
HikApiRest
<
String
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
String
>>()
{
});
});
if
(
rest
.
getCode
()
==
"0"
)
{
if
(
"0"
.
equals
(
rest
.
getCode
())
)
{
return
Rest
.
ok
();
return
Rest
.
ok
();
}
else
{
}
else
{
return
Rest
.
fail
(
rest
.
getMsg
());
return
Rest
.
fail
(
rest
.
getMsg
());
...
...
refined-manager/src/main/java/com/mortals/xhx/module/hik/face/service/impl/HikFaceServiceImpl.java
View file @
e0ba2cd8
...
@@ -39,7 +39,7 @@ public class HikFaceServiceImpl extends AbstractHikService implements IHikFaceSe
...
@@ -39,7 +39,7 @@ public class HikFaceServiceImpl extends AbstractHikService implements IHikFaceSe
String
respJson
=
ArtemisHttpUtil
.
doPostStringArtemis
(
config
,
path
,
JSON
.
toJSONString
(
faceListReq
),
null
,
null
,
"application/json"
);
String
respJson
=
ArtemisHttpUtil
.
doPostStringArtemis
(
config
,
path
,
JSON
.
toJSONString
(
faceListReq
),
null
,
null
,
"application/json"
);
HikApiRest
<
List
<
FaceDataInfo
>>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
List
<
FaceDataInfo
>>>()
{
HikApiRest
<
List
<
FaceDataInfo
>>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
List
<
FaceDataInfo
>>>()
{
});
});
if
(
rest
.
getCode
()
==
"0"
)
{
if
(
"0"
.
equals
(
rest
.
getCode
())
)
{
return
Rest
.
ok
(
rest
.
getData
());
return
Rest
.
ok
(
rest
.
getData
());
}
else
{
}
else
{
log
.
info
(
"face single error resp=>"
,
respJson
);
log
.
info
(
"face single error resp=>"
,
respJson
);
...
@@ -62,7 +62,7 @@ public class HikFaceServiceImpl extends AbstractHikService implements IHikFaceSe
...
@@ -62,7 +62,7 @@ public class HikFaceServiceImpl extends AbstractHikService implements IHikFaceSe
log
.
info
(
"face single add resp=>{}"
,
respJson
);
log
.
info
(
"face single add resp=>{}"
,
respJson
);
HikApiRest
<
FaceDataInfo
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
FaceDataInfo
>>()
{
HikApiRest
<
FaceDataInfo
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
FaceDataInfo
>>()
{
});
});
if
(
rest
.
getCode
()
==
"0"
)
{
if
(
"0"
.
equals
(
rest
.
getCode
())
)
{
return
Rest
.
ok
(
rest
.
getData
());
return
Rest
.
ok
(
rest
.
getData
());
}
else
{
}
else
{
return
Rest
.
fail
(
rest
.
getMsg
());
return
Rest
.
fail
(
rest
.
getMsg
());
...
@@ -82,7 +82,7 @@ public class HikFaceServiceImpl extends AbstractHikService implements IHikFaceSe
...
@@ -82,7 +82,7 @@ public class HikFaceServiceImpl extends AbstractHikService implements IHikFaceSe
String
respJson
=
ArtemisHttpUtil
.
doPostStringArtemis
(
config
,
path
,
JSON
.
toJSONString
(
faceReq
),
null
,
null
,
"application/json"
);
String
respJson
=
ArtemisHttpUtil
.
doPostStringArtemis
(
config
,
path
,
JSON
.
toJSONString
(
faceReq
),
null
,
null
,
"application/json"
);
HikApiRest
<
Boolean
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
Boolean
>>()
{
HikApiRest
<
Boolean
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
Boolean
>>()
{
});
});
if
(
rest
.
getCode
()
==
"0"
)
{
if
(
"0"
.
equals
(
rest
.
getCode
())
)
{
return
Rest
.
ok
(
rest
.
getData
());
return
Rest
.
ok
(
rest
.
getData
());
}
else
{
}
else
{
log
.
info
(
"face single error resp=>{}"
,
respJson
);
log
.
info
(
"face single error resp=>{}"
,
respJson
);
...
...
refined-manager/src/main/java/com/mortals/xhx/module/hik/face/service/impl/HikPlanServiceImpl.java
View file @
e0ba2cd8
...
@@ -35,7 +35,7 @@ public class HikPlanServiceImpl extends AbstractHikService implements IHikPlanSe
...
@@ -35,7 +35,7 @@ public class HikPlanServiceImpl extends AbstractHikService implements IHikPlanSe
String
respJson
=
ArtemisHttpUtil
.
doPostStringArtemis
(
config
,
path
,
JSON
.
toJSONString
(
planRecognBlackListReq
),
null
,
null
,
"application/json"
);
String
respJson
=
ArtemisHttpUtil
.
doPostStringArtemis
(
config
,
path
,
JSON
.
toJSONString
(
planRecognBlackListReq
),
null
,
null
,
"application/json"
);
HikApiRest
<
List
<
PlanRecognInfo
>>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
List
<
PlanRecognInfo
>>>()
{
HikApiRest
<
List
<
PlanRecognInfo
>>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
List
<
PlanRecognInfo
>>>()
{
});
});
if
(
rest
.
getCode
()
==
"0"
)
{
if
(
"0"
.
equals
(
rest
.
getCode
())
)
{
return
Rest
.
ok
(
rest
.
getData
());
return
Rest
.
ok
(
rest
.
getData
());
}
else
{
}
else
{
log
.
info
(
"plan recognize balck list error resp=>{}"
,
respJson
);
log
.
info
(
"plan recognize balck list error resp=>{}"
,
respJson
);
...
@@ -83,7 +83,7 @@ public class HikPlanServiceImpl extends AbstractHikService implements IHikPlanSe
...
@@ -83,7 +83,7 @@ public class HikPlanServiceImpl extends AbstractHikService implements IHikPlanSe
log
.
info
(
"plan recognize balck resp=>{}"
,
respJson
);
log
.
info
(
"plan recognize balck resp=>{}"
,
respJson
);
HikApiRest
<
String
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
String
>>()
{
HikApiRest
<
String
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
String
>>()
{
});
});
if
(
rest
.
getCode
()
==
"0"
)
{
if
(
"0"
.
equals
(
rest
.
getCode
())
)
{
return
Rest
.
ok
(
rest
.
getData
());
return
Rest
.
ok
(
rest
.
getData
());
}
else
{
}
else
{
log
.
info
(
"plan recognize balck error resp=>{}"
,
respJson
);
log
.
info
(
"plan recognize balck error resp=>{}"
,
respJson
);
...
@@ -104,7 +104,7 @@ public class HikPlanServiceImpl extends AbstractHikService implements IHikPlanSe
...
@@ -104,7 +104,7 @@ public class HikPlanServiceImpl extends AbstractHikService implements IHikPlanSe
String
respJson
=
ArtemisHttpUtil
.
doPostStringArtemis
(
config
,
path
,
JSON
.
toJSONString
(
planRecognBlackReq
),
null
,
null
,
"application/json"
);
String
respJson
=
ArtemisHttpUtil
.
doPostStringArtemis
(
config
,
path
,
JSON
.
toJSONString
(
planRecognBlackReq
),
null
,
null
,
"application/json"
);
HikApiRest
<
Boolean
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
Boolean
>>()
{
HikApiRest
<
Boolean
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
Boolean
>>()
{
});
});
if
(
rest
.
getCode
()
==
"0"
)
{
if
(
"0"
.
equals
(
rest
.
getCode
())
)
{
return
Rest
.
ok
(
rest
.
getData
());
return
Rest
.
ok
(
rest
.
getData
());
}
else
{
}
else
{
log
.
info
(
"plan recognize balck error del resp=>{}"
,
respJson
);
log
.
info
(
"plan recognize balck error del resp=>{}"
,
respJson
);
...
@@ -125,7 +125,7 @@ public class HikPlanServiceImpl extends AbstractHikService implements IHikPlanSe
...
@@ -125,7 +125,7 @@ public class HikPlanServiceImpl extends AbstractHikService implements IHikPlanSe
String
respJson
=
ArtemisHttpUtil
.
doPostStringArtemis
(
config
,
path
,
JSON
.
toJSONString
(
planRecognWhiteListReq
),
null
,
null
,
"application/json"
);
String
respJson
=
ArtemisHttpUtil
.
doPostStringArtemis
(
config
,
path
,
JSON
.
toJSONString
(
planRecognWhiteListReq
),
null
,
null
,
"application/json"
);
HikApiRest
<
List
<
PlanRecognInfo
>>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
List
<
PlanRecognInfo
>>>()
{
HikApiRest
<
List
<
PlanRecognInfo
>>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
List
<
PlanRecognInfo
>>>()
{
});
});
if
(
rest
.
getCode
()
==
"0"
)
{
if
(
"0"
.
equals
(
rest
.
getCode
())
)
{
return
Rest
.
ok
(
rest
.
getData
());
return
Rest
.
ok
(
rest
.
getData
());
}
else
{
}
else
{
log
.
info
(
"plan recognize white list error resp=>{}"
,
respJson
);
log
.
info
(
"plan recognize white list error resp=>{}"
,
respJson
);
...
@@ -148,7 +148,7 @@ public class HikPlanServiceImpl extends AbstractHikService implements IHikPlanSe
...
@@ -148,7 +148,7 @@ public class HikPlanServiceImpl extends AbstractHikService implements IHikPlanSe
log
.
info
(
"plan recognize white resp=>{}"
,
respJson
);
log
.
info
(
"plan recognize white resp=>{}"
,
respJson
);
HikApiRest
<
String
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
String
>>()
{
HikApiRest
<
String
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
String
>>()
{
});
});
if
(
rest
.
getCode
()
==
"0"
)
{
if
(
"0"
.
equals
(
rest
.
getCode
())
)
{
return
Rest
.
ok
(
rest
.
getData
());
return
Rest
.
ok
(
rest
.
getData
());
}
else
{
}
else
{
log
.
info
(
"plan recognize white add error resp=>{}"
,
respJson
);
log
.
info
(
"plan recognize white add error resp=>{}"
,
respJson
);
...
@@ -171,7 +171,7 @@ public class HikPlanServiceImpl extends AbstractHikService implements IHikPlanSe
...
@@ -171,7 +171,7 @@ public class HikPlanServiceImpl extends AbstractHikService implements IHikPlanSe
log
.
info
(
"plan recognize white resp=>{}"
,
respJson
);
log
.
info
(
"plan recognize white resp=>{}"
,
respJson
);
HikApiRest
<
Boolean
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
Boolean
>>()
{
HikApiRest
<
Boolean
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
Boolean
>>()
{
});
});
if
(
rest
.
getCode
()
==
"0"
)
{
if
(
"0"
.
equals
(
rest
.
getCode
())
)
{
return
Rest
.
ok
(
rest
.
getData
());
return
Rest
.
ok
(
rest
.
getData
());
}
else
{
}
else
{
log
.
info
(
"plan recognize white add error resp=>{}"
,
respJson
);
log
.
info
(
"plan recognize white add error resp=>{}"
,
respJson
);
...
@@ -192,7 +192,7 @@ public class HikPlanServiceImpl extends AbstractHikService implements IHikPlanSe
...
@@ -192,7 +192,7 @@ public class HikPlanServiceImpl extends AbstractHikService implements IHikPlanSe
String
respJson
=
ArtemisHttpUtil
.
doPostStringArtemis
(
config
,
path
,
JSON
.
toJSONString
(
planRecognWhiteReq
),
null
,
null
,
"application/json"
);
String
respJson
=
ArtemisHttpUtil
.
doPostStringArtemis
(
config
,
path
,
JSON
.
toJSONString
(
planRecognWhiteReq
),
null
,
null
,
"application/json"
);
HikApiRest
<
Boolean
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
Boolean
>>()
{
HikApiRest
<
Boolean
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
Boolean
>>()
{
});
});
if
(
rest
.
getCode
()
==
"0"
)
{
if
(
"0"
.
equals
(
rest
.
getCode
())
)
{
return
Rest
.
ok
(
rest
.
getData
());
return
Rest
.
ok
(
rest
.
getData
());
}
else
{
}
else
{
log
.
info
(
"plan recognize white error del resp=>{}"
,
respJson
);
log
.
info
(
"plan recognize white error del resp=>{}"
,
respJson
);
...
...
refined-manager/src/main/java/com/mortals/xhx/module/hik/person/service/impl/HikPersonServiceImpl.java
View file @
e0ba2cd8
...
@@ -38,7 +38,7 @@ public class HikPersonServiceImpl extends AbstractHikService implements IHikPers
...
@@ -38,7 +38,7 @@ public class HikPersonServiceImpl extends AbstractHikService implements IHikPers
String
respJson
=
ArtemisHttpUtil
.
doPostStringArtemis
(
config
,
path
,
JSON
.
toJSONString
(
personReq
),
null
,
null
,
"application/json"
);
String
respJson
=
ArtemisHttpUtil
.
doPostStringArtemis
(
config
,
path
,
JSON
.
toJSONString
(
personReq
),
null
,
null
,
"application/json"
);
HikApiRest
<
PersonDataInfo
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
PersonDataInfo
>>()
{
HikApiRest
<
PersonDataInfo
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
PersonDataInfo
>>()
{
});
});
if
(
rest
.
getCode
()
==
"0"
)
{
if
(
"0"
.
equals
(
rest
.
getCode
())
)
{
return
Rest
.
ok
(
rest
.
getData
());
return
Rest
.
ok
(
rest
.
getData
());
}
else
{
}
else
{
log
.
info
(
"person error resp=>{}"
,
respJson
);
log
.
info
(
"person error resp=>{}"
,
respJson
);
...
@@ -74,7 +74,7 @@ public class HikPersonServiceImpl extends AbstractHikService implements IHikPers
...
@@ -74,7 +74,7 @@ public class HikPersonServiceImpl extends AbstractHikService implements IHikPers
String
respJson
=
ArtemisHttpUtil
.
doPostStringArtemis
(
config
,
path
,
JSON
.
toJSONString
(
orgListReq
),
null
,
null
,
"application/json"
);
String
respJson
=
ArtemisHttpUtil
.
doPostStringArtemis
(
config
,
path
,
JSON
.
toJSONString
(
orgListReq
),
null
,
null
,
"application/json"
);
HikApiRest
<
OrgDataInfo
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
OrgDataInfo
>>()
{
HikApiRest
<
OrgDataInfo
>
rest
=
JSON
.
parseObject
(
respJson
,
new
TypeReference
<
HikApiRest
<
OrgDataInfo
>>()
{
});
});
if
(
rest
.
getCode
()
==
"0"
)
{
if
(
"0"
.
equals
(
rest
.
getCode
())
)
{
return
Rest
.
ok
(
rest
.
getData
());
return
Rest
.
ok
(
rest
.
getData
());
}
else
{
}
else
{
log
.
info
(
"org list error resp=>{}"
,
respJson
);
log
.
info
(
"org list error resp=>{}"
,
respJson
);
...
...
refined-manager/src/main/java/com/mortals/xhx/module/realtime/model/vo/RealtimeDataflowStatVo.java
View file @
e0ba2cd8
package
com.mortals.xhx.module.realtime.model.vo
;
package
com.mortals.xhx.module.realtime.model.vo
;
import
com.mortals.framework.annotation.Excel
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.xhx.module.realtime.model.RealtimeDataflowStatEntity
;
import
com.mortals.xhx.module.realtime.model.RealtimeDataflowStatEntity
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
...
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