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 @@
<dependency>
<groupId>cn.com.glsx.merchants</groupId>
<artifactId>platform-merchants-api</artifactId>
<version>5.6.0-SNAPSHOT</version>
<version>5.7.0-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
......
......@@ -462,6 +462,12 @@ public class BeisenEmployeeInfoDTO implements Serializable {
private String directLeaderUserId;
/**
* 转正月份,格式:202603 表示 2026年3月
*/
@ApiModelProperty("转正月份")
private Integer regularizationMonth;
@Transient
private String directLeaderName;
......
......@@ -56,4 +56,9 @@ public class BeiSenProperty {
*/
private String merchantName;
/**
* 转正月份,格式:202603 表示 2026年3月
*/
private String regularizationMonth;
}
......@@ -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;
......
......@@ -762,7 +762,16 @@ 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());
}*/
}
Integer probation = recordInfo.getProbation();
beisenEmployeeInfonew.setRegularizationMonth(probation);
beisenEmployeeInfonew.setOfficialDate(recordInfo.getRegularizationDate());
if (recordInfo.getPOIdEmpAdmin()!=null) {
beisenEmployeeInfonew.setDirectLeaderUserId(recordInfo.getPOIdEmpAdmin() + "");
......
......@@ -98,9 +98,11 @@
<result column="merchant_name" jdbcType="VARCHAR" property="merchantName"/>
<result column="direct_leader_userId" jdbcType="VARCHAR" property="directLeaderUserId"/>
<result column="directLeaderName" jdbcType="VARCHAR" property="directLeaderName"/>
<result column="regularization_months" jdbcType="INTEGER" property="regularizationMonth"/>
<result column="directLeaderPhone" jdbcType="VARCHAR" property="directLeaderPhone"/>
</resultMap>
<resultMap id="DTOResultMap" type="cn.com.glsx.merchants.dto.beisen.BeiSenEmployeeListResonseDTO">
<id column="user_id" jdbcType="INTEGER" property="userID" />
......
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(407652281));
cond.setOIdDepartmentIds(Lists.newArrayList(0));
cond.setUserIds(Lists.newArrayList(407621880));
/* 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();
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!