Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
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
项目统一框架
amos-boot-biz
Commits
79dad210
Commit
79dad210
authored
Dec 01, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_dl_plan6' into develop_dl_plan6_temp
# Conflicts: # amos-boot-system-jcs/src/main/resources/application-dev.properties
parents
167be39b
bc9bdd36
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
12 deletions
+13
-12
DataSyncTopicEnum.java
.../amos/boot/module/common/api/enums/DataSyncTopicEnum.java
+3
-1
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+1
-1
DataSyncServiceImpl.java
...t/module/common/biz/service/impl/DataSyncServiceImpl.java
+8
-9
DocLibraryService.java
...in/amos/knowledgebase/face/service/DocLibraryService.java
+1
-1
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/enums/DataSyncTopicEnum.java
View file @
79dad210
...
...
@@ -3,7 +3,9 @@ package com.yeejoin.amos.boot.module.common.api.enums;
public
enum
DataSyncTopicEnum
{
EQM_PATROL_CREATED
(
"user"
,
"emq.user.created"
),
ORG_USR_DEL
(
"userDel"
,
"user/sync/orgUsrDel"
),
ORG_USR
(
"orgUsr"
,
"user/sync/orgUsr"
);
ORG_USR
(
"orgUsr"
,
"user/sync/orgUsr"
),
STATION_USER_UPDATE
(
"sattionUserUpdate"
,
"station/user/update"
),
STATION_USER_DELETE
(
"sattionUserDelete"
,
"station/user/delete"
);
private
String
type
;
private
String
topic
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
79dad210
...
...
@@ -666,7 +666,7 @@ GROUP BY
cb_data_dictionary
WHERE
CODE = b.peopleType
AND type = 'D
W
RYLX'
AND type = 'D
L
RYLX'
) AS peopleType,
(
SELECT
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/DataSyncServiceImpl.java
View file @
79dad210
...
...
@@ -29,9 +29,6 @@ public class DataSyncServiceImpl implements IDataSyncService {
@Autowired
private
OrgUsrMapper
orgUsrMapper
;
@Value
(
"${emq.orgUsr.sync.switch}"
)
private
Boolean
orgUsrSyncSwitch
;
@Override
public
void
OrgUsrSyncDtoDataSync
(
Long
id
)
{
try
{
...
...
@@ -43,9 +40,10 @@ public class DataSyncServiceImpl implements IDataSyncService {
for
(
OrgUsrSyncDto
x
:
list
)
{
String
message
=
buildSyncMessage
(
DataSyncTopicEnum
.
ORG_USR
.
getTopic
(),
x
);
emqKeeper
.
getMqttClient
().
publish
(
DataSyncTopicEnum
.
EQM_PATROL_CREATED
.
getTopic
(),
message
.
getBytes
(),
RuleConfig
.
DEFAULT_QOS
,
false
);
if
(
orgUsrSyncSwitch
)
{
emqKeeper
.
getMqttClient
().
publish
(
DataSyncTopicEnum
.
ORG_USR
.
getTopic
(),
JSONObject
.
toJSONString
(
x
).
getBytes
(),
RuleConfig
.
DEFAULT_QOS
,
false
);
}
//站端人员信息同步
emqKeeper
.
getMqttClient
().
publish
(
DataSyncTopicEnum
.
STATION_USER_UPDATE
.
getTopic
(),
JSONObject
.
toJSONString
(
x
).
getBytes
(),
RuleConfig
.
DEFAULT_QOS
,
false
);
}
}
}
...
...
@@ -63,9 +61,10 @@ public class DataSyncServiceImpl implements IDataSyncService {
orgUsrSyncDto
.
setSequenceNbr
(
id
);
String
message
=
buildSyncMessage
(
DataSyncTopicEnum
.
ORG_USR_DEL
.
getTopic
(),
orgUsrSyncDto
);
emqKeeper
.
getMqttClient
().
publish
(
DataSyncTopicEnum
.
EQM_PATROL_CREATED
.
getTopic
(),
message
.
getBytes
(),
RuleConfig
.
DEFAULT_QOS
,
false
);
if
(
orgUsrSyncSwitch
)
{
emqKeeper
.
getMqttClient
().
publish
(
DataSyncTopicEnum
.
ORG_USR_DEL
.
getTopic
(),
JSONObject
.
toJSONString
(
orgUsrSyncDto
).
getBytes
(),
RuleConfig
.
DEFAULT_QOS
,
false
);
}
//站端人员信息删除同步
emqKeeper
.
getMqttClient
().
publish
(
DataSyncTopicEnum
.
STATION_USER_DELETE
.
getTopic
(),
JSONObject
.
toJSONString
(
orgUsrSyncDto
).
getBytes
(),
RuleConfig
.
DEFAULT_QOS
,
false
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
"站端与中心级人员数据【OrgUsrSyncDto】同步推送失败-----------"
+
e
.
getMessage
());
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-knowledgebase-biz/src/main/java/com/yeejoin/amos/knowledgebase/face/service/DocLibraryService.java
View file @
79dad210
...
...
@@ -283,7 +283,7 @@ public class DocLibraryService {
commonFiltersMap
.
put
(
"createTimeLeft"
,
DateUtil
.
formatStringToDate
(
createTimeLeft
,
null
));
}
if
(!
ValidationUtil
.
isEmpty
(
createTimeRight
))
{
commonFiltersMap
.
put
(
"createTime
Lef
t"
,
DateUtil
.
formatStringToDate
(
createTimeRight
,
null
));
commonFiltersMap
.
put
(
"createTime
Righ
t"
,
DateUtil
.
formatStringToDate
(
createTimeRight
,
null
));
}
}
catch
(
Exception
e
)
{
throw
new
BadRequest
(
"时间范围参数格式有误"
);
...
...
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