Commit 70e8e835 by 叶立庆

Merge remote-tracking branch 'origin/master' into v5.7.0

# Conflicts:
#	platform-merchants-api/pom.xml
#	platform-merchants-container/pom.xml
2 parents 11a54741 34bee665
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<dependency> <dependency>
<groupId>cn.com.glsx.merchants</groupId> <groupId>cn.com.glsx.merchants</groupId>
<artifactId>platform-merchants-api</artifactId> <artifactId>platform-merchants-api</artifactId>
<version>5.6.0-SNAPSHOT</version> <version>5.7.0-SNAPSHOT</version>
</dependency> </dependency>
</dependencies> </dependencies>
</plugin> </plugin>
......
...@@ -462,6 +462,12 @@ public class BeisenEmployeeInfoDTO implements Serializable { ...@@ -462,6 +462,12 @@ public class BeisenEmployeeInfoDTO implements Serializable {
private String directLeaderUserId; private String directLeaderUserId;
/**
* 转正月份,格式:202603 表示 2026年3月
*/
@ApiModelProperty("转正月份")
private Integer regularizationMonth;
@Transient @Transient
private String directLeaderName; private String directLeaderName;
......
...@@ -56,4 +56,9 @@ public class BeiSenProperty { ...@@ -56,4 +56,9 @@ public class BeiSenProperty {
*/ */
private String merchantName; private String merchantName;
/**
* 转正月份,格式:202603 表示 2026年3月
*/
private String regularizationMonth;
} }
...@@ -529,6 +529,12 @@ public class BeisenEmployeeInfo implements Serializable { ...@@ -529,6 +529,12 @@ public class BeisenEmployeeInfo implements Serializable {
@Column(name = "direct_leader_userId") @Column(name = "direct_leader_userId")
private String directLeaderUserId; private String directLeaderUserId;
/**
* 转正月份,格式:202603 表示 2026年3月
*/
@Column(name = "regularization_months")
private Integer regularizationMonth;
@Transient @Transient
private String directLeaderName; private String directLeaderName;
......
...@@ -762,7 +762,16 @@ public class BeiSenService { ...@@ -762,7 +762,16 @@ public class BeiSenService {
} else { } else {
beisenEmployeeInfonew.setMerchantName(s3); 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());
}*/
} }
Integer probation = recordInfo.getProbation();
beisenEmployeeInfonew.setRegularizationMonth(probation);
beisenEmployeeInfonew.setOfficialDate(recordInfo.getRegularizationDate()); beisenEmployeeInfonew.setOfficialDate(recordInfo.getRegularizationDate());
if (recordInfo.getPOIdEmpAdmin()!=null) { if (recordInfo.getPOIdEmpAdmin()!=null) {
beisenEmployeeInfonew.setDirectLeaderUserId(recordInfo.getPOIdEmpAdmin() + ""); beisenEmployeeInfonew.setDirectLeaderUserId(recordInfo.getPOIdEmpAdmin() + "");
......
...@@ -98,9 +98,11 @@ ...@@ -98,9 +98,11 @@
<result column="merchant_name" jdbcType="VARCHAR" property="merchantName"/> <result column="merchant_name" jdbcType="VARCHAR" property="merchantName"/>
<result column="direct_leader_userId" jdbcType="VARCHAR" property="directLeaderUserId"/> <result column="direct_leader_userId" jdbcType="VARCHAR" property="directLeaderUserId"/>
<result column="directLeaderName" jdbcType="VARCHAR" property="directLeaderName"/> <result column="directLeaderName" jdbcType="VARCHAR" property="directLeaderName"/>
<result column="regularization_months" jdbcType="INTEGER" property="regularizationMonth"/>
<result column="directLeaderPhone" jdbcType="VARCHAR" property="directLeaderPhone"/> <result column="directLeaderPhone" jdbcType="VARCHAR" property="directLeaderPhone"/>
</resultMap> </resultMap>
<resultMap id="DTOResultMap" type="cn.com.glsx.merchants.dto.beisen.BeiSenEmployeeListResonseDTO"> <resultMap id="DTOResultMap" type="cn.com.glsx.merchants.dto.beisen.BeiSenEmployeeListResonseDTO">
<id column="user_id" jdbcType="INTEGER" property="userID" /> <id column="user_id" jdbcType="INTEGER" property="userID" />
......
package cn.com.glsx.merchants.service; package cn.com.glsx.merchants.service;
import com.alibaba.fastjson.JSONObject;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
...@@ -308,15 +309,15 @@ public class StaffServiceTest { ...@@ -308,15 +309,15 @@ public class StaffServiceTest {
request.setPageNum(1); request.setPageNum(1);
request.setPageSize(10); request.setPageSize(10);
BeiSenEmployeeListRequestDTO cond = new BeiSenEmployeeListRequestDTO(); BeiSenEmployeeListRequestDTO cond = new BeiSenEmployeeListRequestDTO();
cond.setUserIds(Lists.newArrayList(407652281)); cond.setUserIds(Lists.newArrayList(407621880));
cond.setOIdDepartmentIds(Lists.newArrayList(0)); /* cond.setOIdDepartmentIds(Lists.newArrayList(0));
cond.setOIdJobPostIds(Lists.newArrayList("787142")); cond.setOIdJobPostIds(Lists.newArrayList("787142"));
cond.setSortField("entryDate"); cond.setSortField("entryDate");
cond.setSortOrder("desc"); cond.setSortOrder("desc");
cond.setStatus(0); cond.setStatus(0);*/
request.setCondition(cond); request.setCondition(cond);
RpcPagination<BeiSenEmployeeListResonseDTO> response = merchantStaffService.getBeisenUserWithConditions(request); RpcPagination<BeiSenEmployeeListResonseDTO> response = merchantStaffService.getBeisenUserWithConditions(request);
System.out.println(response); System.out.println(JSONObject.toJSONString( response));
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!