修改小程序接口
This commit is contained in:
parent
677eb54be6
commit
7be8cf9ccc
|
@ -115,13 +115,14 @@ public class WechatController extends BaseController {
|
|||
for (Map.Entry<String, List<TAmentPartyAffairs>> entry : targetMap.entrySet())
|
||||
{
|
||||
JSONObject object = new JSONObject();
|
||||
object.put("name",entry.getKey());
|
||||
object.put("text",entry.getKey());
|
||||
// 同一target
|
||||
List<TAmentPartyAffairs> list1 = entry.getValue();
|
||||
JSONArray array1 = new JSONArray();
|
||||
list1.forEach(l->{
|
||||
JSONObject object1 = new JSONObject();
|
||||
object1.put("name",l.getDemand());
|
||||
object1.put("text",l.getDemand());
|
||||
object1.put("id",l.getId());
|
||||
array1.add(object1);
|
||||
});
|
||||
object.put("children",array1);
|
||||
|
|
Loading…
Reference in New Issue