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 55106db1
authored
Mar 03, 2026
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]新增转正月份字段
1 parent
bcd4b02e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
6 deletions
platform-merchants-api/pom.xml
platform-merchants-api/src/main/java/cn/com/glsx/merchants/dto/beisen/BeisenEmployeeInfoDTO.java
platform-merchants-container/src/main/java/cn/com/glsx/merchants/config/BeiSenProperty.java
platform-merchants-container/src/main/java/cn/com/glsx/merchants/entity/BeisenEmployeeInfo.java
platform-merchants-container/src/main/java/cn/com/glsx/merchants/service/BeiSenService.java
platform-merchants-container/src/test/java/cn/com/glsx/merchants/service/StaffServiceTest.java
platform-merchants-api/pom.xml
View file @
55106db
...
...
@@ -7,7 +7,7 @@
</parent>
<groupId>
cn.com.glsx.merchants
</groupId>
<artifactId>
platform-merchants-api
</artifactId>
<version>
5.6.
0
-SNAPSHOT
</version>
<version>
5.6.
4
-SNAPSHOT
</version>
<name>
platform-merchants-api
</name>
<properties>
<deploy.scanPackage>
cn.com.glsx.merchants.remote
</deploy.scanPackage>
...
...
@@ -30,7 +30,7 @@
<dependency>
<groupId>
cn.com.glsx.merchants
</groupId>
<artifactId>
platform-merchants-api
</artifactId>
<version>
5.6.
0
-SNAPSHOT
</version>
<version>
5.6.
4
-SNAPSHOT
</version>
</dependency>
</dependencies>
</plugin>
...
...
platform-merchants-api/src/main/java/cn/com/glsx/merchants/dto/beisen/BeisenEmployeeInfoDTO.java
View file @
55106db
...
...
@@ -462,6 +462,12 @@ public class BeisenEmployeeInfoDTO implements Serializable {
private
String
directLeaderUserId
;
/**
* 转正月份,格式:202603 表示 2026年3月
*/
@ApiModelProperty
(
"转正月份"
)
private
Integer
regularizationMonth
;
@Transient
private
String
directLeaderName
;
...
...
platform-merchants-container/src/main/java/cn/com/glsx/merchants/config/BeiSenProperty.java
View file @
55106db
...
...
@@ -56,4 +56,9 @@ public class BeiSenProperty {
*/
private
String
merchantName
;
/**
* 转正月份,格式:202603 表示 2026年3月
*/
private
String
regularizationMonth
;
}
platform-merchants-container/src/main/java/cn/com/glsx/merchants/entity/BeisenEmployeeInfo.java
View file @
55106db
...
...
@@ -529,6 +529,12 @@ public class BeisenEmployeeInfo implements Serializable {
@Column
(
name
=
"direct_leader_userId"
)
private
String
directLeaderUserId
;
/**
* 转正月份,格式:202603 表示 2026年3月
*/
@Column
(
name
=
"regularization_months"
)
private
Integer
regularizationMonth
;
@Transient
private
String
directLeaderName
;
...
...
platform-merchants-container/src/main/java/cn/com/glsx/merchants/service/BeiSenService.java
View file @
55106db
...
...
@@ -762,6 +762,13 @@ public class BeiSenService {
}
else
{
beisenEmployeeInfonew
.
setMerchantName
(
s3
);
}
String
s4
=
customProperties
.
get
(
beiSenProperty
.
getRegularizationMonth
());
BigDecimal
regularizationMonth
=
NumberUtils
.
safeParseBigDecimal
(
s4
);
if
(
regularizationMonth
==
null
)
{
log
.
info
(
"北森员工{},regularizationMonth 为空或非数字: '{}'"
,
employeeInfo
.
getName
(),
s4
);
}
else
{
beisenEmployeeInfonew
.
setRegularizationMonth
(
regularizationMonth
.
intValue
());
}
}
beisenEmployeeInfonew
.
setOfficialDate
(
recordInfo
.
getRegularizationDate
());
if
(
recordInfo
.
getPOIdEmpAdmin
()!=
null
)
{
...
...
platform-merchants-container/src/test/java/cn/com/glsx/merchants/service/StaffServiceTest.java
View file @
55106db
package
cn
.
com
.
glsx
.
merchants
.
service
;
import
com.alibaba.fastjson.JSONObject
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
...
...
@@ -308,15 +309,15 @@ public class StaffServiceTest {
request
.
setPageNum
(
1
);
request
.
setPageSize
(
10
);
BeiSenEmployeeListRequestDTO
cond
=
new
BeiSenEmployeeListRequestDTO
();
cond
.
setUserIds
(
Lists
.
newArrayList
(
4076
52281
));
cond
.
setOIdDepartmentIds
(
Lists
.
newArrayList
(
0
));
cond
.
setUserIds
(
Lists
.
newArrayList
(
4076
21880
));
/*
cond.setOIdDepartmentIds(Lists.newArrayList(0));
cond.setOIdJobPostIds(Lists.newArrayList("787142"));
cond.setSortField("entryDate");
cond.setSortOrder("desc");
cond
.
setStatus
(
0
);
cond.setStatus(0);
*/
request
.
setCondition
(
cond
);
RpcPagination
<
BeiSenEmployeeListResonseDTO
>
response
=
merchantStaffService
.
getBeisenUserWithConditions
(
request
);
System
.
out
.
println
(
response
);
System
.
out
.
println
(
JSONObject
.
toJSONString
(
response
)
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
...
...
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