岗位限制对象获取

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-27 10:22:40

if(jObject.containsKey(CNConsts.posteRstriction)){
if(StringUtils.isNotBlank(jObject.getString(CNConsts.posteRstriction))){
String sql = "select fid id from CT_HR_PosteRstriction where fname_l2 ='"+jObject.getString(CNConsts.posteRstriction)+"'";
IRowSet rs = DbUtil.executeQuery(ctx, sql);
try {
while(rs.next()){
String id = rs.getString("id");
if(!StringUtils.isEmpty(id)){
CoreBillBaseCustomInfo posteRstrictionInfo = new CoreBillBaseCustomInfo();
posteRstrictionInfo.setId(BOSUuid.read(id));
posteRstrictionInfo.setBOSType(new BOSObjectType("17773787"));
pInfo.put(ENConsts.posteRstriction,posteRstrictionInfo);
}
}
} catch (Exception e) {
e.printStackTrace();
}

}
}

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!