Commit bb713348 by 林永健

fix: 调整北森员工DTO字段定义

1 parent 28c10c34
...@@ -431,6 +431,6 @@ public class BeiSenEmployeeListResonseDTO implements Serializable { ...@@ -431,6 +431,6 @@ public class BeiSenEmployeeListResonseDTO implements Serializable {
private String oIdJobPostId; private String oIdJobPostId;
private Integer oldDepartmentId; private Integer oIdDepartmentId;
} }
...@@ -489,7 +489,7 @@ public class BeisenEmployeeInfo implements Serializable { ...@@ -489,7 +489,7 @@ public class BeisenEmployeeInfo implements Serializable {
@Column(name = "oId_job_post_id") @Column(name = "oId_job_post_id")
private String oIdJobPostId; private String oIdJobPostId;
@Column(name = "old_department_id") @Column(name = "oId_department_id")
private Integer oldDepartmentId; private Integer oIdDepartmentId;
} }
\ No newline at end of file \ No newline at end of file
...@@ -740,7 +740,7 @@ public class BeiSenService { ...@@ -740,7 +740,7 @@ public class BeiSenService {
} else { } else {
beisenEmployeeInfonew.setZzStatus(0); beisenEmployeeInfonew.setZzStatus(0);
} }
beisenEmployeeInfonew.setOldDepartmentId(recordInfo.getOIdDepartment()); beisenEmployeeInfonew.setOIdDepartmentId(recordInfo.getOIdDepartment());
beisenEmployeeInfonew.setOIdJobPostId(recordInfo.getOIdJobPost()); beisenEmployeeInfonew.setOIdJobPostId(recordInfo.getOIdJobPost());
if (beisenEmployeeInfo == null) { if (beisenEmployeeInfo == null) {
beisenEmployeeInfoMapper.insert(beisenEmployeeInfonew); beisenEmployeeInfoMapper.insert(beisenEmployeeInfonew);
......
...@@ -88,8 +88,8 @@ ...@@ -88,8 +88,8 @@
<result column="residence_address" jdbcType="LONGVARCHAR" property="residenceAddress" /> <result column="residence_address" jdbcType="LONGVARCHAR" property="residenceAddress" />
<result column="about_me" jdbcType="LONGVARCHAR" property="aboutMe" /> <result column="about_me" jdbcType="LONGVARCHAR" property="aboutMe" />
<result column="business_address" jdbcType="LONGVARCHAR" property="businessAddress" /> <result column="business_address" jdbcType="LONGVARCHAR" property="businessAddress" />
<result column="old_department_id" jdbcType="INTEGER" property="oldDepartmentId" /> <result column="oId_department_id" jdbcType="INTEGER" property="oIdDepartmentId" />
<result column="old_job_post_id" jdbcType="VARCHAR" property="oIdJobPostId" /> <result column="oId_job_post_id" jdbcType="VARCHAR" property="oIdJobPostId" />
</resultMap> </resultMap>
<resultMap id="DTOResultMap" extends="BaseResultMap" type="cn.com.glsx.merchants.dto.beisen.BeiSenEmployeeListResonseDTO"> <resultMap id="DTOResultMap" extends="BaseResultMap" type="cn.com.glsx.merchants.dto.beisen.BeiSenEmployeeListResonseDTO">
</resultMap> </resultMap>
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
id_front, id_behind, pre_retire_date, actual_retire_date, is_confirm_retire_date, id_front, id_behind, pre_retire_date, actual_retire_date, is_confirm_retire_date,
activation_state, issuing_authority, is_disabled, disabled_number, order_code, object_id, activation_state, issuing_authority, is_disabled, disabled_number, order_code, object_id,
created_by, created_time, modified_by, modified_time, std_is_deleted, zz_status, created_by, created_time, modified_by, modified_time, std_is_deleted, zz_status,
last_work_date, entry_date,home_address, speciality, residence_address, about_me, business_address,old_department_id,old_job_post_id last_work_date, entry_date,home_address, speciality, residence_address, about_me, business_address,oId_department_id,oId_job_post_id
</sql> </sql>
<select id="findByUserId" resultType="cn.com.glsx.merchants.entity.BeisenEmployeeInfo"> <select id="findByUserId" resultType="cn.com.glsx.merchants.entity.BeisenEmployeeInfo">
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
</foreach> </foreach>
</if> </if>
<if test="req.oIdDepartmentIds != null and req.oIdDepartmentIds.size > 0"> <if test="req.oIdDepartmentIds != null and req.oIdDepartmentIds.size > 0">
and old_department_id in and oId_department_id in
<foreach collection="req.oIdDepartmentIds" item="dp" open="(" separator="," close=")"> <foreach collection="req.oIdDepartmentIds" item="dp" open="(" separator="," close=")">
#{dp} #{dp}
</foreach> </foreach>
......
...@@ -4,6 +4,7 @@ import java.util.ArrayList; ...@@ -4,6 +4,7 @@ import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import com.google.common.collect.Lists;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -306,6 +307,9 @@ public class StaffServiceTest { ...@@ -306,6 +307,9 @@ public class StaffServiceTest {
RpcPagination<BeiSenEmployeeListRequestDTO> request = new RpcPagination<BeiSenEmployeeListRequestDTO>(); RpcPagination<BeiSenEmployeeListRequestDTO> request = new RpcPagination<BeiSenEmployeeListRequestDTO>();
request.setPageNum(1); request.setPageNum(1);
request.setPageSize(10); request.setPageSize(10);
BeiSenEmployeeListRequestDTO cond = new BeiSenEmployeeListRequestDTO();
cond.setUserIds(Lists.newArrayList(407576053));
request.setCondition(cond);
RpcPagination<BeiSenEmployeeListResonseDTO> response = merchantStaffService.getBeisenUserWithConditions(request); RpcPagination<BeiSenEmployeeListResonseDTO> response = merchantStaffService.getBeisenUserWithConditions(request);
System.out.println(response); System.out.println(response);
} catch (Exception e) { } catch (Exception e) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!