|
@@ -259,14 +259,13 @@ public class WeComStaffDataJob {
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(res)) {
|
|
|
JSONObject jsonObject = JSONObject.parseObject(res);
|
|
|
- System.out.println("jsonObject = " + jsonObject);
|
|
|
Integer errcode = jsonObject.getInteger("errcode");
|
|
|
if (errcode == 0) {
|
|
|
- JSONArray jsonArray = jsonObject.getJSONArray("behavior_data");
|
|
|
+ JSONArray jsonArray = jsonObject.getJSONArray("items");
|
|
|
if (!jsonArray.isEmpty()) {
|
|
|
- JSONObject data = jsonArray.getJSONObject(0);
|
|
|
StaffGroupStatisticsTotal statisticsTotal = new StaffGroupStatisticsTotal();
|
|
|
- statisticsTotal.setStatTime(data.getLong("stat_time"));
|
|
|
+ JSONObject data = jsonArray.getJSONObject(0).getJSONObject("data");
|
|
|
+ statisticsTotal.setStatTime(jsonArray.getJSONObject(0).getLong("stat_time"));
|
|
|
statisticsTotal.setNewChatCnt(data.getInteger("new_chat_cnt"));
|
|
|
statisticsTotal.setChatTotal(data.getInteger("chat_total"));
|
|
|
statisticsTotal.setChatHasMsg(data.getInteger("chat_has_msg"));
|