Commit cfd563ba authored by hongguangwu's avatar hongguangwu

MVP1.6.9-企微部门

parent c5c730ba
......@@ -1025,10 +1025,23 @@ public class QiWeiServiceImpl extends ServiceImpl<EkpQiweiChuchaiMapper, EkpQiwi
JSONArray options;
if (Common.isNotNull(value)) {
options = (JSONArray) value.get("departments");
StringBuilder deptName = new StringBuilder();
if (Common.isNotNull(options)) {
options0 = (JSONObject) options.get(0);
for (int i = 0; i < options.size(); i++) {
options0 = (JSONObject) options.get(i);
if (Common.isNotNull(options0)) {
return options0.getString("name");
if (i > 0) {
deptName.append(";");
}
deptName.append(options0.getString("name"));
}
}
if (Common.isNotNull(deptName)) {
if (deptName.length() > 200) {
return deptName.substring(0, 200);
} else {
return deptName.toString();
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment