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
019d4b2b
Commit
019d4b2b
authored
Nov 13, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除关联关系
parent
2fb75a1c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
1 deletions
+32
-1
TabAuditedGroupUserRelMapper.java
...com/gic/auth/dao/mapper/TabAuditedGroupUserRelMapper.java
+11
-0
AuditedGroupUserRelService.java
...java/com/gic/auth/service/AuditedGroupUserRelService.java
+10
-0
AuditedGroupUserRelServiceImpl.java
...gic/auth/service/impl/AuditedGroupUserRelServiceImpl.java
+5
-1
UserApiServiceImpl.java
...a/com/gic/auth/service/outer/impl/UserApiServiceImpl.java
+2
-0
TabAuditedGroupUserRelMapper.xml
...rc/main/resources/mapper/TabAuditedGroupUserRelMapper.xml
+4
-0
No files found.
gic-platform-auth-service/src/main/java/com/gic/auth/dao/mapper/TabAuditedGroupUserRelMapper.java
View file @
019d4b2b
...
@@ -126,4 +126,14 @@ public interface TabAuditedGroupUserRelMapper {
...
@@ -126,4 +126,14 @@ public interface TabAuditedGroupUserRelMapper {
* @throws
* @throws
*/
*/
List
<
Integer
>
listAuditedGroupByUserId
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"userId"
)
Integer
userId
);
List
<
Integer
>
listAuditedGroupByUserId
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"userId"
)
Integer
userId
);
/**
* @Title: deleteByUserId
* @Description:
* @author zhiwj
* @param userId
* @return void
* @throws
*/
void
deleteByUserId
(
@Param
(
"userId"
)
Integer
userId
);
}
}
\ No newline at end of file
gic-platform-auth-service/src/main/java/com/gic/auth/service/AuditedGroupUserRelService.java
View file @
019d4b2b
...
@@ -79,4 +79,14 @@ public interface AuditedGroupUserRelService {
...
@@ -79,4 +79,14 @@ public interface AuditedGroupUserRelService {
* @throws
* @throws
*/
*/
List
<
Integer
>
listAuditedGroupByUserId
(
Integer
enterpriseId
,
Integer
userId
);
List
<
Integer
>
listAuditedGroupByUserId
(
Integer
enterpriseId
,
Integer
userId
);
/**
* @Title: deleteByUserId
* @Description:
* @author zhiwj
* @param userId
* @return void
* @throws
*/
void
deleteByUserId
(
Integer
userId
);
}
}
gic-platform-auth-service/src/main/java/com/gic/auth/service/impl/AuditedGroupUserRelServiceImpl.java
View file @
019d4b2b
...
@@ -6,7 +6,6 @@ import com.gic.auth.dto.AuditedGroupDTO;
...
@@ -6,7 +6,6 @@ import com.gic.auth.dto.AuditedGroupDTO;
import
com.gic.auth.dto.AuditedGroupUserRelDTO
;
import
com.gic.auth.dto.AuditedGroupUserRelDTO
;
import
com.gic.auth.entity.TabAuditedGroupUserRel
;
import
com.gic.auth.entity.TabAuditedGroupUserRel
;
import
com.gic.auth.service.AuditedGroupUserRelService
;
import
com.gic.auth.service.AuditedGroupUserRelService
;
import
com.gic.commons.util.GlobalInfo
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -79,4 +78,9 @@ public class AuditedGroupUserRelServiceImpl implements AuditedGroupUserRelServic
...
@@ -79,4 +78,9 @@ public class AuditedGroupUserRelServiceImpl implements AuditedGroupUserRelServic
public
List
<
Integer
>
listAuditedGroupByUserId
(
Integer
enterpriseId
,
Integer
userId
)
{
public
List
<
Integer
>
listAuditedGroupByUserId
(
Integer
enterpriseId
,
Integer
userId
)
{
return
tabAuditedGroupUserRelMapper
.
listAuditedGroupByUserId
(
enterpriseId
,
userId
);
return
tabAuditedGroupUserRelMapper
.
listAuditedGroupByUserId
(
enterpriseId
,
userId
);
}
}
@Override
public
void
deleteByUserId
(
Integer
userId
)
{
tabAuditedGroupUserRelMapper
.
deleteByUserId
(
userId
);
}
}
}
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/UserApiServiceImpl.java
View file @
019d4b2b
...
@@ -357,6 +357,8 @@ public class UserApiServiceImpl implements UserApiService {
...
@@ -357,6 +357,8 @@ public class UserApiServiceImpl implements UserApiService {
userResourceService
.
deleteByUserId
(
userId
);
userResourceService
.
deleteByUserId
(
userId
);
//删除账号分组关联
//删除账号分组关联
accountGroupRelService
.
deleteByUserId
(
userId
,
AccountGroupMemberTypeEnum
.
ADMIN
.
getCode
());
accountGroupRelService
.
deleteByUserId
(
userId
,
AccountGroupMemberTypeEnum
.
ADMIN
.
getCode
());
//
auditedGroupUserRelService
.
deleteByUserId
(
userId
);
userService
.
delete
(
userId
);
userService
.
delete
(
userId
);
return
ServiceResponse
.
success
(
tabUser
.
getUserName
());
return
ServiceResponse
.
success
(
tabUser
.
getUserName
());
}
}
...
...
gic-platform-auth-service/src/main/resources/mapper/TabAuditedGroupUserRelMapper.xml
View file @
019d4b2b
...
@@ -197,4 +197,7 @@
...
@@ -197,4 +197,7 @@
and delete_flag = ${@com.gic.auth.constant.DeleteFlagConstants@NORMAL_STATUS}
and delete_flag = ${@com.gic.auth.constant.DeleteFlagConstants@NORMAL_STATUS}
</where>
</where>
</select>
</select>
<update
id=
"deleteByUserId"
>
update tab_audited_group_user_rel set delete_flag = ${@com.gic.auth.constant.DeleteFlagConstants@DELETE_STATUS} where user_id = #{userId};
</update>
</mapper>
</mapper>
\ No newline at end of file
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