请假确认单如何获取员工的借调职位

栏目:s-hr cloud知识作者:金蝶来源:金蝶云社区发布:2024-09-22浏览:1

请假确认单如何获取员工的借调职位

[适用版本]

通用

[解决方案]

//请假确认单优先获取借调职位,没有则获取主要职位, 输出变量 positionid

StringBuffer tStrSql = new StringBuffer();

tStrSql.append(select FPOSITIONID from t_hr_emporgrelation where fleffdt={ts '2199-12-31'} and fpersonid='+CancelLeaveBill.entries.person.id +' and FActionTypeID in(select fid from T_HR_AffairActionReason where fname_l2='借调调入'));

com.kingdee.jdbc.rowset.IRowSet rowSet = com.kingdee.eas.util.app.DbUtil.executeQuery(__bosContext,tStrSql.toString());

if(rowSet!=null)

{ while(rowSet.next()){

positionid= rowSet.getString(1);

}}else{

positionid= CancelLeaveBill.entries.position.id;

}


请假确认单如何获取员工的借调职位

[适用版本]通用[解决方案]//请假确认单优先获取借调职位,没有则获取主要职位, 输出变量 positionidStringBuffer tStrSql = new Strin...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息