generated from dxfeng/secondev-chapanda-feishu
fix(organization): 修复岗位数据转换异常
- 在 OrganizationInfoMapper.xml 中,将 is_canceled 字段的类型转换为 CHAR - 在 OrganizationInfoServiceImpl.java 中,更新字段名称为 canceled - 在 PositionData.java 中,将 isCanceled 字段改为 is_canceled
This commit is contained in:
parent
486b2ab574
commit
4847480781
|
|
@ -13,5 +13,5 @@ public class PositionData {
|
|||
private String code;
|
||||
private String name;
|
||||
private String oDeptId;
|
||||
private String isCanceled;
|
||||
private String is_canceled;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -152,12 +152,11 @@ public class OrganizationInfoServiceImpl implements OrganizationInfoService {
|
|||
|
||||
for (Map<String, Object> map : positionList) {
|
||||
PositionData positionData = new PositionData();
|
||||
positionData.setOId(Convert.toStr(map.get("oid"),""));
|
||||
positionData.setCode(Convert.toStr(map.get("positionCode"),""));
|
||||
positionData.setName(Convert.toStr(map.get("positionName"),""));
|
||||
positionData.setODeptId(Convert.toStr(map.get("odeptid"),""));
|
||||
positionData.setIsCanceled(Convert.toStr(map.get("is_canceled"),""));
|
||||
|
||||
positionData.setOId(Convert.toStr(map.get("oid"), ""));
|
||||
positionData.setCode(Convert.toStr(map.get("positionCode"), ""));
|
||||
positionData.setName(Convert.toStr(map.get("positionName"), ""));
|
||||
positionData.setODeptId(Convert.toStr(map.get("odeptid"), ""));
|
||||
positionData.setIs_canceled(Convert.toStr(map.get("canceled"), "0"));
|
||||
orgList.add(positionData);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@
|
|||
</select>
|
||||
|
||||
<select id="getPositionList" resultType="java.util.Map">
|
||||
select t1.ID as positionId, t1.code as positionCode, t1.name as positionName, t2.odeptid, t1.is_canceled
|
||||
select t1.ID as positionId, t1.code as positionCode, t1.name as positionName, t2.odeptid, CAST(t1.is_canceled AS CHAR) as canceled
|
||||
from ${eteams}.position t1
|
||||
inner join ${eteams}.${table_job_cus} t2 on t1.formdata = t2.ID
|
||||
where t1.tenant_key = #{tenantKey} and t1.delete_type = 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue