Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
Overview
Overview
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
base_platform_enterprise
gic-platform-auth
Commits
efd02a44
Commit
efd02a44
authored
Oct 09, 2019
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审核员添加受审组条件
parent
e4ab355e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
AuditorServiceImpl.java
...in/java/com/gic/auth/service/impl/AuditorServiceImpl.java
+18
-0
TabAuditorAuditedGroupRelMapper.xml
...main/resources/mapper/TabAuditorAuditedGroupRelMapper.xml
+3
-0
TabAuditorMapper.xml
...th-service/src/main/resources/mapper/TabAuditorMapper.xml
+0
-3
No files found.
gic-platform-auth-service/src/main/java/com/gic/auth/service/impl/AuditorServiceImpl.java
View file @
efd02a44
package
com
.
gic
.
auth
.
service
.
impl
;
import
com.gic.auth.dao.mapper.TabAuditorAuditedGroupRelMapper
;
import
com.gic.auth.dao.mapper.TabAuditorMapper
;
import
com.gic.auth.dto.AuditorAuditedGroupRelDTO
;
import
com.gic.auth.dto.AuditorDTO
;
import
com.gic.auth.entity.TabAuditor
;
import
com.gic.auth.entity.TabAuditorAuditedGroupRel
;
import
com.gic.auth.qo.AuditorListQO
;
import
com.gic.auth.service.AuditorService
;
import
com.gic.commons.util.GlobalInfo
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.PageHelper
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
*
...
...
@@ -25,6 +30,8 @@ public class AuditorServiceImpl implements AuditorService {
@Autowired
private
TabAuditorMapper
tabAuditorMapper
;
@Autowired
private
TabAuditorAuditedGroupRelMapper
auditorAuditedGroupRelMapper
;
@Override
public
boolean
validAuditorNameIsRepeat
(
Integer
enterpriseId
,
String
auditorName
,
Integer
auditorId
)
{
...
...
@@ -99,6 +106,17 @@ public class AuditorServiceImpl implements AuditorService {
@Override
public
Page
<
TabAuditor
>
pageAuditor
(
AuditorListQO
auditorListQO
)
{
if
(
auditorListQO
.
getAuditedGroupId
()
!=
null
)
{
AuditorAuditedGroupRelDTO
auditedGroupRelDTO
=
new
AuditorAuditedGroupRelDTO
();
auditedGroupRelDTO
.
setAuditedGroupId
(
auditorListQO
.
getAuditedGroupId
());
List
<
TabAuditorAuditedGroupRel
>
relList
=
auditorAuditedGroupRelMapper
.
listRel
(
auditedGroupRelDTO
);
if
(
CollectionUtils
.
isEmpty
(
relList
))
{
return
new
Page
<>();
}
else
{
List
<
Integer
>
auditorIdList
=
relList
.
stream
().
map
(
TabAuditorAuditedGroupRel:
:
getAuditorId
).
collect
(
Collectors
.
toList
());
auditorListQO
.
setAuditorIdList
(
auditorIdList
);
}
}
PageHelper
.
startPage
(
auditorListQO
.
getCurrentPage
(),
auditorListQO
.
getPageSize
());
return
tabAuditorMapper
.
listAuditor
(
auditorListQO
);
}
...
...
gic-platform-auth-service/src/main/resources/mapper/TabAuditorAuditedGroupRelMapper.xml
View file @
efd02a44
...
...
@@ -174,6 +174,9 @@
<if
test=
"auditorId != null "
>
and auditor_id = #{auditorId}
</if>
<if
test=
"auditedGroupId != null "
>
and audited_group_id = #{auditedGroupId}
</if>
<if
test=
"null != auditorIdList"
>
and auditor_id in
<foreach
collection=
"auditorIdList"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
...
...
gic-platform-auth-service/src/main/resources/mapper/TabAuditorMapper.xml
View file @
efd02a44
...
...
@@ -189,9 +189,6 @@
<if
test=
"auditorName != null and auditorName != '' "
>
and auditor_name like concat('%', #{auditorName}, '%')
</if>
<if
test=
"auditedGroupId != null "
>
and audited_group_id = #{auditedGroupId}
</if>
<if
test=
"isUse != null "
>
and is_use = #{isUse}
</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