Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
entrance_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王琮
entrance_api
Commits
a2065d21
Commit
a2065d21
authored
Mar 14, 2023
by
gaoyingwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改访客通行发送内容
parent
9aa0ab67
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
45 deletions
+51
-45
JieLinkServiceImpl.java
.../integration/jieLink/service/impl/JieLinkServiceImpl.java
+2
-2
ZKTecoServiceImpl.java
...t/integration/jieLink/service/impl/ZKTecoServiceImpl.java
+6
-4
DoorRecordMapper.xml
src/main/resources/mapper/DoorRecordMapper.xml
+43
-39
No files found.
src/main/java/org/rcisoft/integration/jieLink/service/impl/JieLinkServiceImpl.java
View file @
a2065d21
...
...
@@ -1199,10 +1199,10 @@ public class JieLinkServiceImpl implements IJieLinkService {
String
mes
=
""
;
if
(
deviceInfo
.
getDeviceName
().
contains
(
"公司"
)){
messageInstance
.
setTitle
(
"访客到达通知"
);
mes
=
"已到达"
;
mes
=
deviceInfo
.
getRemark
()
;
}
else
{
messageInstance
.
setTitle
(
"访客进入通知"
);
mes
=
"已进入行政办公楼"
;
mes
=
deviceInfo
.
getRemark
()
;
}
if
(
"1"
.
equals
(
deviceInfo
.
getDeviceType
()))
{
for
(
Integer
id
:
visitId
)
{
...
...
src/main/java/org/rcisoft/integration/jieLink/service/impl/ZKTecoServiceImpl.java
View file @
a2065d21
...
...
@@ -5,6 +5,7 @@ import cn.hutool.core.date.DateField;
import
cn.hutool.core.date.DateTime
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.util.RandomUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
...
...
@@ -374,11 +375,12 @@ public class ZKTecoServiceImpl implements IZKTecoService {
ResponseEntity
<
JSONObject
>
responseEntity
=
restTemplate
.
getForEntity
(
uriAddr
.
toString
(),
JSONObject
.
class
);
try
{
if
(
HttpStatus
.
OK
.
value
()
==
responseEntity
.
getStatusCode
().
value
())
{
log
.
debug
(
"门禁事件记录接口返回信息:"
+
responseEntity
.
getBody
().
toJSONString
());
ZKTResultDto
<
ZKTDoorRecordDto
>
resultData
=
JSONObject
.
toJavaObject
(
responseEntity
.
getBody
(),
ZKTResultDto
.
class
);
log
.
error
(
"门禁事件记录接口返回信息:"
+
responseEntity
.
getBody
().
toJSONString
());
ZKTResultDto
<
String
>
resultData
=
JSONObject
.
toJavaObject
(
responseEntity
.
getBody
(),
ZKTResultDto
.
class
);
if
(
StringUtils
.
equals
(
resultData
.
getCode
(),
"0"
))
{
data
=
resultData
.
getData
();
list
.
addAll
(
resultData
.
getData
());
String
s
=
JSON
.
toJSONString
(
resultData
.
getData
());
data
=
JSON
.
parseArray
(
s
,
ZKTDoorRecordDto
.
class
);
// 指定转换的类型
list
.
addAll
(
data
);
pageNo
+=
1
;
}
else
{
log
.
error
(
"门禁事件记录接口返回错误信息:"
+
resultData
.
getMessage
());
...
...
src/main/resources/mapper/DoorRecordMapper.xml
View file @
a2065d21
...
...
@@ -30,45 +30,45 @@
<result
column=
"dept_name"
jdbcType=
"VARCHAR"
property=
"deptName"
/>
</resultMap>
<insert
id=
"saveRecordData"
parameterType=
"org.rcisoft.sys.sysuser.entity.DoorRecord"
useGeneratedKeys=
"false"
>
insert into door_record
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"recordId != null"
>
record_id ,
</if
>
<if
test=
"userId != null"
>
user_id ,
</if
>
<if
test=
"personId != null"
>
person_id ,
</if
>
<if
test=
"mobile != null"
>
mobile ,
</if
>
<if
test=
"tenementType != null"
>
tenement_type ,
</if
>
<if
test=
"remark != null"
>
remark ,
</if
>
<if
test=
"deviceId != null"
>
device_id ,
</if
>
<if
test=
"deviceName != null"
>
device_name ,
</if
>
<if
test=
"deviceType != null"
>
device_type ,
</if
>
<if
test=
"cardType != null"
>
card_type ,
</if
>
<if
test=
"cardNo != null"
>
card_no ,
</if
>
<if
test=
"crossTime != null"
>
cross_time ,
</if
>
<if
test=
"recordType != null"
>
record_type ,
</if
>
<if
test=
"eventType != null"
>
event_type ,
</if
>
<if
test=
"flag != null"
>
flag ,
</if
>
<if
test=
"delFlag != null"
>
del_flag ,
</if
>
</trim
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"recordId != null"
>
#{recordId} ,
</if
>
<if
test=
"userId != null"
>
#{userId} ,
</if
>
<if
test=
"personId != null"
>
#{personId} ,
</if
>
<if
test=
"mobile != null"
>
#{mobile} ,
</if
>
<if
test=
"tenementType != null"
>
#{tenementType} ,
</if
>
<if
test=
"remark != null"
>
#{remark} ,
</if
>
<if
test=
"deviceId != null"
>
#{deviceId} ,
</if
>
<if
test=
"deviceName != null"
>
#{deviceName} ,
</if
>
<if
test=
"deviceType != null"
>
#{deviceType} ,
</if
>
<if
test=
"cardType != null"
>
#{cardType} ,
</if
>
<if
test=
"cardNo != null"
>
#{cardNo} ,
</if
>
<if
test=
"crossTime != null"
>
#{crossTime} ,
</if
>
<if
test=
"recordType != null"
>
#{recordType} ,
</if
>
<if
test=
"eventType != null"
>
#{eventType} ,
</if
>
<if
test=
"flag != null"
>
#{flag} ,
</if
>
<if
test=
"delFlag != null"
>
#{delFlag} ,
</if
>
</trim
>
</insert
>
<!-- <insert id="saveRecordData" parameterType="org.rcisoft.sys.sysuser.entity.DoorRecord" useGeneratedKeys="false">--
>
<!-- insert into door_record-->
<!-- <trim prefix="(" suffix=")" suffixOverrides=",">--
>
<!-- <if test="recordId != null">record_id ,</if>--
>
<!-- <if test="userId != null">user_id ,</if>--
>
<!-- <if test="personId != null">person_id ,</if>--
>
<!-- <if test="mobile != null">mobile ,</if>--
>
<!-- <if test="tenementType != null">tenement_type ,</if>--
>
<!-- <if test="remark != null">remark ,</if>--
>
<!-- <if test="deviceId != null">device_id ,</if>--
>
<!-- <if test="deviceName != null">device_name ,</if>--
>
<!-- <if test="deviceType != null">device_type ,</if>--
>
<!-- <if test="cardType != null">card_type ,</if>--
>
<!-- <if test="cardNo != null">card_no ,</if>--
>
<!-- <if test="crossTime != null">cross_time ,</if>--
>
<!-- <if test="recordType != null">record_type ,</if>--
>
<!-- <if test="eventType != null">event_type ,</if>--
>
<!-- <if test="flag != null">flag ,</if>--
>
<!-- <if test="delFlag != null">del_flag ,</if>--
>
<!-- </trim>--
>
<!-- <trim prefix="values (" suffix=")" suffixOverrides=",">--
>
<!-- <if test="recordId != null">#{recordId} ,</if>--
>
<!-- <if test="userId != null">#{userId} ,</if>--
>
<!-- <if test="personId != null">#{personId} ,</if>--
>
<!-- <if test="mobile != null">#{mobile} ,</if>--
>
<!-- <if test="tenementType != null">#{tenementType} ,</if>--
>
<!-- <if test="remark != null">#{remark} ,</if>--
>
<!-- <if test="deviceId != null">#{deviceId} ,</if>--
>
<!-- <if test="deviceName != null">#{deviceName} ,</if>--
>
<!-- <if test="deviceType != null">#{deviceType} ,</if>--
>
<!-- <if test="cardType != null">#{cardType} ,</if>--
>
<!-- <if test="cardNo != null">#{cardNo} ,</if>--
>
<!-- <if test="crossTime != null">#{crossTime} ,</if>--
>
<!-- <if test="recordType != null">#{recordType} ,</if>--
>
<!-- <if test="eventType != null">#{eventType} ,</if>--
>
<!-- <if test="flag != null">#{flag} ,</if>--
>
<!-- <if test="delFlag != null">#{delFlag} ,</if>--
>
<!-- </trim>--
>
<!-- </insert>--
>
<insert
id=
"saveRecordData"
parameterType=
"org.rcisoft.sys.sysuser.entity.DoorRecord"
useGeneratedKeys=
"false"
>
insert into door_record
...
...
@@ -76,6 +76,8 @@
<if
test=
"recordId != null"
>
record_id ,
</if>
<if
test=
"userId != null"
>
user_id ,
</if>
<if
test=
"personId != null"
>
person_id ,
</if>
<if
test=
"source != null"
>
`source` ,
</if>
<if
test=
"pin != null"
>
pin ,
</if>
<if
test=
"mobile != null"
>
mobile ,
</if>
<if
test=
"tenementType != null"
>
tenement_type ,
</if>
<if
test=
"remark != null"
>
remark ,
</if>
...
...
@@ -96,6 +98,8 @@
<if
test=
"recordId != null"
>
#{recordId} ,
</if>
<if
test=
"userId != null"
>
#{userId} ,
</if>
<if
test=
"personId != null"
>
#{personId} ,
</if>
<if
test=
"source != null"
>
#{source} ,
</if>
<if
test=
"pin != null"
>
#{pin},
</if>
<if
test=
"mobile != null"
>
#{mobile} ,
</if>
<if
test=
"tenementType != null"
>
#{tenementType} ,
</if>
<if
test=
"remark != null"
>
#{remark} ,
</if>
...
...
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