Commit 8368acd6 authored by hongguangwu's avatar hongguangwu

MVP1.6.9-企微部门

parent c5c730ba
...@@ -1025,10 +1025,23 @@ public class QiWeiServiceImpl extends ServiceImpl<EkpQiweiChuchaiMapper, EkpQiwi ...@@ -1025,10 +1025,23 @@ public class QiWeiServiceImpl extends ServiceImpl<EkpQiweiChuchaiMapper, EkpQiwi
JSONArray options; JSONArray options;
if (Common.isNotNull(value)) { if (Common.isNotNull(value)) {
options = (JSONArray) value.get("departments"); options = (JSONArray) value.get("departments");
StringBuilder deptName = new StringBuilder();
if (Common.isNotNull(options)) { if (Common.isNotNull(options)) {
options0 = (JSONObject) options.get(0); for (int i = 0; i < options.size(); i++) {
if (Common.isNotNull(options0)) { options0 = (JSONObject) options.get(i);
return options0.getString("name"); if (Common.isNotNull(options0)) {
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