花名册台账字段展示BUG修复
This commit is contained in:
parent
8155466a96
commit
e8bcb4af99
|
|
@ -18,12 +18,16 @@ public class HrmResourceTransMethod {
|
|||
|
||||
public static String getFieldTrueValue(String id, String para) {
|
||||
HrmFieldManager hfm = new HrmFieldManager("HrmCustomFieldByInfoType", Integer.parseInt(para.split("_")[0]));
|
||||
// hfm.getCustomFields();
|
||||
String fieldName = para.substring(para.lastIndexOf("_") + 1);
|
||||
JSONObject hrmFieldConf = hfm.getHrmFieldConf(fieldName);
|
||||
User user = new User();
|
||||
user.setUid(1);
|
||||
try {
|
||||
if (hfm.isBaseField(fieldName)) {
|
||||
if ("jobactivity".equals(fieldName)) {
|
||||
hrmFieldConf.put("type", 282);
|
||||
}
|
||||
}
|
||||
return hfm.getFieldvalue(null, user, null, hrmFieldConf.getString("dmlurl"), hrmFieldConf.getInt("id"), hrmFieldConf.getInt("fieldhtmltype"), hrmFieldConf.getInt("type"), id, 0, fieldName);
|
||||
} catch (Exception e) {
|
||||
return "";
|
||||
|
|
|
|||
Loading…
Reference in New Issue