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
b9603aeb
Commit
b9603aeb
authored
Jan 06, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
a441e949
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
29 deletions
+29
-29
PointServiceImpl.java
...n/amos/patrol/business/service/impl/PointServiceImpl.java
+28
-28
pointMapper.xml
...ystem-patrol/src/main/resources/db/mapper/pointMapper.xml
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PointServiceImpl.java
View file @
b9603aeb
...
...
@@ -1133,36 +1133,36 @@ public class PointServiceImpl implements IPointService {
Map
<
String
,
Object
>
resp
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
point
=
pointMapper
.
getPointById
(
id
);
if
(
StringUtil
.
isNotEmpty
(
point
.
get
(
"depid"
)))
{
List
<
LinkedHashMap
>
departmentBos
=
remoteSecurityService
.
listDepartmentByDeptIds
(
toke
,
product
,
appKey
,
point
.
get
(
"depid"
)
+
""
);
if
(
departmentBos
!=
null
&&
departmentBos
.
size
()
>
0
)
{
for
(
int
i
=
0
;
i
<
departmentBos
.
size
();
i
++)
{
point
.
put
(
"departmentName"
,
departmentBos
.
get
(
i
).
get
(
"departmentName"
));
}
}
}
//
if (StringUtil.isNotEmpty(point.get("depid"))) {
//
List<LinkedHashMap> departmentBos = remoteSecurityService.listDepartmentByDeptIds(toke, product, appKey, point.get("depid") + "");
//
if (departmentBos != null && departmentBos.size() > 0) {
//
for (int i = 0; i < departmentBos.size(); i++) {
//
point.put("departmentName", departmentBos.get(i).get("departmentName"));
//
//
//
}
//
}
//
//
}
// deptName = checkPointBo.getExecuteDeptId();
if
(
StringUtil
.
isNotEmpty
(
point
.
get
(
"userName"
)))
{
List
<
AgencyUserModel
>
userModels
=
remoteSecurityService
.
listUserByUserIds
(
toke
,
product
,
appKey
,
point
.
get
(
"userName"
)
+
""
);
String
userName
=
""
;
if
(
userModels
!=
null
&&
userModels
.
size
()
>
0
)
{
for
(
int
i
=
0
;
i
<
userModels
.
size
();
i
++)
{
if
(
i
==
userModels
.
size
()
-
1
)
{
userName
=
userName
+
userModels
.
get
(
i
).
getRealName
();
}
else
{
userName
=
userName
+
userModels
.
get
(
i
).
getRealName
()
+
","
;
}
}
point
.
put
(
"userName"
,
userName
);
}
}
//
if (StringUtil.isNotEmpty(point.get("userName"))) {
//
List<AgencyUserModel> userModels = remoteSecurityService.listUserByUserIds(toke, product, appKey, point.get("userName") + "");
//
String userName = "";
//
if (userModels != null && userModels.size() > 0) {
//
for (int i = 0; i < userModels.size(); i++) {
//
if (i == userModels.size() - 1) {
//
userName = userName + userModels.get(i).getRealName();
//
} else {
//
userName = userName + userModels.get(i).getRealName() + ",";
//
}
//
//
}
//
point.put("userName", userName);
//
}
//
//
//
}
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/pointMapper.xml
View file @
b9603aeb
...
...
@@ -335,7 +335,7 @@
'移动点'
END) fixed,
p.charge_person_name userName,
p.charge_dept_id depid
,
p.biz_org_name departmentName
,
IFNULL(p.risk_source_id, '') as buildingId,
p.remark,
p.offline
...
...
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