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
f1fc791e
Commit
f1fc791e
authored
Mar 11, 2024
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改中心级人员展示及去掉错误冗余代码
parent
54a5fdf7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+7
-2
BuildingServiceImpl.java
...yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
+4
-0
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
f1fc791e
...
@@ -35,6 +35,7 @@ import com.yeejoin.amos.boot.module.common.api.mapper.OrgUsrMapper;
...
@@ -35,6 +35,7 @@ import com.yeejoin.amos.boot.module.common.api.mapper.OrgUsrMapper;
import
com.yeejoin.amos.boot.module.common.api.service.IDataSyncService
;
import
com.yeejoin.amos.boot.module.common.api.service.IDataSyncService
;
import
com.yeejoin.amos.boot.module.common.api.service.IMaintenanceCompanyService
;
import
com.yeejoin.amos.boot.module.common.api.service.IMaintenanceCompanyService
;
import
com.yeejoin.amos.boot.module.common.api.service.IOrgUsrService
;
import
com.yeejoin.amos.boot.module.common.api.service.IOrgUsrService
;
import
com.yeejoin.amos.component.feign.config.InnerInvokException
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
...
@@ -767,8 +768,12 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -767,8 +768,12 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
Map
<
String
,
AgencyUserModel
>
collect
=
new
HashMap
<>();
Map
<
String
,
AgencyUserModel
>
collect
=
new
HashMap
<>();
if
(
CollectionUtils
.
isNotEmpty
(
amosIds
))
{
if
(
CollectionUtils
.
isNotEmpty
(
amosIds
))
{
String
join
=
String
.
join
(
","
,
amosIds
);
String
join
=
String
.
join
(
","
,
amosIds
);
List
<
AgencyUserModel
>
amosUser
=
Privilege
.
agencyUserClient
.
queryByIds
(
join
,
false
).
getResult
();
try
{
collect
=
amosUser
.
stream
().
collect
(
Collectors
.
toMap
(
AgencyUserModel:
:
getUserId
,
t
->
t
));
List
<
AgencyUserModel
>
amosUser
=
Privilege
.
agencyUserClient
.
queryByIds
(
join
,
false
).
getResult
();
collect
=
amosUser
.
stream
().
collect
(
Collectors
.
toMap
(
AgencyUserModel:
:
getUserId
,
t
->
t
));
}
catch
(
InnerInvokException
e
)
{
throw
new
RuntimeException
(
"未查询到人员信息,请检查!"
);
}
}
}
Map
<
String
,
AgencyUserModel
>
finalCollect
=
collect
;
Map
<
String
,
AgencyUserModel
>
finalCollect
=
collect
;
list
.
forEach
(
t
->
{
list
.
forEach
(
t
->
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
View file @
f1fc791e
...
@@ -864,6 +864,10 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
...
@@ -864,6 +864,10 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
public
Page
buildingList
(
Page
page
,
BuildSearchDTO
dto
)
{
public
Page
buildingList
(
Page
page
,
BuildSearchDTO
dto
)
{
Optional
.
ofNullable
(
dto
.
getInstanceId
()).
orElseThrow
(()
->
new
BadRequest
(
"instanceId参数不能为空"
));
Optional
.
ofNullable
(
dto
.
getInstanceId
()).
orElseThrow
(()
->
new
BadRequest
(
"instanceId参数不能为空"
));
Optional
.
ofNullable
(
dto
.
getGroupType
()).
orElseThrow
(()
->
new
BadRequest
(
"groupType参数不能为空"
));
Optional
.
ofNullable
(
dto
.
getGroupType
()).
orElseThrow
(()
->
new
BadRequest
(
"groupType参数不能为空"
));
// 由于前端并未使用分页组件,导致展示不全,所以未免产生歧义此处展示所有
if
(
"allBuilding"
.
equalsIgnoreCase
(
dto
.
getGroupType
()))
{
page
.
setSize
(
1000
);
}
// 根据不同的groupType 查询分页
// 根据不同的groupType 查询分页
PageOperation
targetOperation
=
PageOperatorFactory
PageOperation
targetOperation
=
PageOperatorFactory
.
getOperation
(
dto
.
getGroupType
())
.
getOperation
(
dto
.
getGroupType
())
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
f1fc791e
...
@@ -6100,7 +6100,7 @@
...
@@ -6100,7 +6100,7 @@
) AS total,
) AS total,
(select
(select
count(sequence_nbr)
fire-resource-superv
count(sequence_nbr)
from
from
cb_water_resource
cb_water_resource
<where>
<where>
...
...
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