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 aa0e452f
authored
Dec 08, 2025
by
林永健
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(merchant-staff): 修正北森员工状态转换逻辑
1 parent
a54cff26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletions
platform-merchants-api/src/main/java/cn/com/glsx/merchants/dto/beisen/BeiSenEmployeeListRequestDTO.java
platform-merchants-container/src/main/java/cn/com/glsx/merchants/service/MerchantStaffService.java
platform-merchants-api/src/main/java/cn/com/glsx/merchants/dto/beisen/BeiSenEmployeeListRequestDTO.java
View file @
aa0e452
...
...
@@ -32,7 +32,8 @@ public class BeiSenEmployeeListRequestDTO implements Serializable {
private
List
<
String
>
mobilePhoneList
;
/**
* 在职状态 0否 1是
* (废弃)在职状态 0否 1是
* 在职状态 1否 0是
*/
private
Integer
status
;
...
...
platform-merchants-container/src/main/java/cn/com/glsx/merchants/service/MerchantStaffService.java
View file @
aa0e452
...
...
@@ -1512,6 +1512,8 @@ public class MerchantStaffService {
condition
.
setSortOrder
(
sortOrder
);
condition
.
setSortField
(
toSnake
(
condition
.
getSortField
()));
}
convertEmployeeStatus
(
condition
);
log
.
info
(
"查询北森员工列表, condition:{}"
,
condition
);
PageHelper
.
startPage
(
request
.
getPageNum
(),
request
.
getPageSize
());
List
<
BeiSenEmployeeListResonseDTO
>
responseList
=
beisenEmployeeInfoMapper
.
selectByConditions
(
condition
);
if
(
CollectionUtils
.
isEmpty
(
responseList
))
{
...
...
@@ -1519,6 +1521,24 @@ public class MerchantStaffService {
}
return
RpcPagination
.
copyPage
(
responseList
);
}
/**
* 传参状态和数据库状态取值转换
*/
private
void
convertEmployeeStatus
(
BeiSenEmployeeListRequestDTO
condition
)
{
if
(
condition
.
getStatus
()
==
null
)
{
return
;
}
if
(
condition
.
getStatus
()
==
0
)
{
condition
.
setStatus
(
1
);
return
;
}
if
(
condition
.
getStatus
()
==
1
)
{
condition
.
setStatus
(
0
);
return
;
}
}
/**
* 排序字段驼峰转下划线
* 先走白名单避免缩略词误拆分,再使用 Hutool 转换。
...
...
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