Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
scrm
/
platform-merchants
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 6b5104c1
authored
Dec 08, 2025
by
林永健
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(platform-merchants): 修正北森员工状态转换逻辑
1 parent
aa0e452f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
platform-merchants-container/src/main/java/cn/com/glsx/merchants/service/MerchantStaffService.java
platform-merchants-container/src/main/java/cn/com/glsx/merchants/service/MerchantStaffService.java
View file @
6b5104c
...
@@ -1512,31 +1512,31 @@ public class MerchantStaffService {
...
@@ -1512,31 +1512,31 @@ public class MerchantStaffService {
condition
.
setSortOrder
(
sortOrder
);
condition
.
setSortOrder
(
sortOrder
);
condition
.
setSortField
(
toSnake
(
condition
.
getSortField
()));
condition
.
setSortField
(
toSnake
(
condition
.
getSortField
()));
}
}
con
vertEmployeeStatus
(
condition
);
con
dition
.
setStatus
(
convertEmployeeStatus
(
condition
.
getStatus
())
);
log
.
info
(
"查询北森员工列表, condition:{}"
,
condition
);
log
.
info
(
"查询北森员工列表, condition:{}"
,
condition
);
PageHelper
.
startPage
(
request
.
getPageNum
(),
request
.
getPageSize
());
PageHelper
.
startPage
(
request
.
getPageNum
(),
request
.
getPageSize
());
List
<
BeiSenEmployeeListResonseDTO
>
responseList
=
beisenEmployeeInfoMapper
.
selectByConditions
(
condition
);
List
<
BeiSenEmployeeListResonseDTO
>
responseList
=
beisenEmployeeInfoMapper
.
selectByConditions
(
condition
);
if
(
CollectionUtils
.
isEmpty
(
responseList
))
{
if
(
CollectionUtils
.
isEmpty
(
responseList
))
{
return
new
RpcPagination
<>();
return
new
RpcPagination
<>();
}
}
responseList
.
forEach
(
i
->
i
.
setZzStatus
(
convertEmployeeStatus
(
i
.
getZzStatus
())));
return
RpcPagination
.
copyPage
(
responseList
);
return
RpcPagination
.
copyPage
(
responseList
);
}
}
/**
/**
* 传参状态和数据库状态取值转换
* 传参状态和数据库状态取值转换
*/
*/
private
void
convertEmployeeStatus
(
BeiSenEmployeeListRequestDTO
condition
)
{
private
Integer
convertEmployeeStatus
(
Integer
status
)
{
if
(
condition
.
getStatus
()
==
null
)
{
if
(
status
==
null
)
{
return
;
return
null
;
}
}
if
(
condition
.
getStatus
()
==
0
)
{
if
(
status
==
0
)
{
condition
.
setStatus
(
1
);
return
1
;
return
;
}
}
if
(
condition
.
getStatus
()
==
1
)
{
if
(
status
==
1
)
{
condition
.
setStatus
(
0
);
return
0
;
return
;
}
}
return
status
;
}
}
/**
/**
...
...
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