Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rop-dj-strategy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6da8c3dd
authored
Jan 23, 2026
by
林永健
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(staff): 实现员工禁用功能并同步更新账户中心
1 parent
8590c87f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
src/main/java/cn/com/glsx/dj/strategy/controller/MerchantStaffController.java
src/main/java/cn/com/glsx/dj/strategy/controller/MerchantStaffController.java
View file @
6da8c3d
package
cn
.
com
.
glsx
.
dj
.
strategy
.
controller
;
import
cn.com.glsx.dj.smartcarlife.dto.StaffInfoDTO
;
import
cn.com.glsx.dj.smartcarlife.remote.StaffInfoRemote
;
import
cn.com.glsx.dj.strategy.request.StrategyStaffRequest
;
import
cn.com.glsx.dj.strategy.uitl.CommonUtil
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.enums.DefaultErrorEnum
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
...
...
@@ -9,7 +10,6 @@ import cn.com.glsx.framework.core.util.RpcAssert;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
cn.com.glsx.merchants.model.request.MerchantRoleRequest
;
import
cn.com.glsx.merchants.model.request.MerchantStaffRequest
;
import
cn.com.glsx.merchants.model.request.StaffBatchRequest
;
import
cn.com.glsx.merchants.model.request.wechatbinding.MerchantStaffListRequest
;
import
cn.com.glsx.merchants.model.response.MerchantBaseInfoResponse
;
import
cn.com.glsx.merchants.model.response.MerchantRoleResponse
;
...
...
@@ -46,8 +46,11 @@ public class MerchantStaffController {
@Autowired
private
MerchantRoleRemote
merchantRoleRemote
;
@Autowired
private
StaffInfoRemote
staffInfoRemote
;
@ApiOperation
(
"添加员工"
)
@ServiceMethod
(
method
=
"dj.api.strategy.merchant.staff.add"
)
@ServiceMethod
(
method
=
"dj.api.strategy.merchant.staff.add"
,
needInSession
=
NeedInSessionType
.
NO
)
public
RopResponse
<
Boolean
>
addMerchantStaff
(
StrategyStaffRequest
request
)
{
try
{
checkStaffExist
(
request
);
...
...
@@ -124,14 +127,11 @@ public class MerchantStaffController {
}
@ApiOperation
(
"禁用员工"
)
@ServiceMethod
(
method
=
"dj.api.strategy.merchant.staff.disable"
)
@ServiceMethod
(
method
=
"dj.api.strategy.merchant.staff.disable"
,
needInSession
=
NeedInSessionType
.
NO
)
public
RopResponse
<
Boolean
>
disableMerchantStaff
(
StrategyStaffRequest
request
)
{
try
{
StaffBatchRequest
staffBatchRequest
=
new
StaffBatchRequest
();
staffBatchRequest
.
setStaffUuid
(
request
.
getStaffUuid
());
staffBatchRequest
.
setStatus
(
2
);
log
.
info
(
"禁用员工:{}"
,
staffBatchRequest
);
RpcResponse
<
Boolean
>
res
=
merchantStaffRemote
.
updateStaffStatusByPhone
(
staffBatchRequest
);
StaffInfoDTO
req
=
StaffInfoDTO
.
builder
().
build
();
RpcResponse
<
Boolean
>
res
=
staffInfoRemote
.
updateStaffStatus
(
req
);
if
(
res
.
isFailed
())
{
return
RopResponse
.
error
(
res
);
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment