|
|
|
@ -52,16 +52,18 @@ public class DataStatsScreencollServiceImpl extends BaseServiceImpl<DataStatsScr |
|
|
|
} |
|
|
|
|
|
|
|
List<List<EventdataResultDTO>> formList = fixedGrouping(list,1000); |
|
|
|
for(int i = 0 ; i < formList.size() ; i++){ |
|
|
|
// 将list转换为json格式
|
|
|
|
EventdataDTO result = new EventdataDTO(); |
|
|
|
result.setDataList(formList.get(i)); |
|
|
|
if(i == 0){ |
|
|
|
result.setIsFirst(true); |
|
|
|
if (formList != null && formList.size()>0) { |
|
|
|
for (int i = 0; i < formList.size(); i++) { |
|
|
|
// 将list转换为json格式
|
|
|
|
EventdataDTO result = new EventdataDTO(); |
|
|
|
result.setDataList(formList.get(i)); |
|
|
|
if (i == 0) { |
|
|
|
result.setIsFirst(true); |
|
|
|
} |
|
|
|
String json = JSONObject.toJSONString(result); |
|
|
|
String body = epmetUtils.httpPost("/data/stats/screencoll/eventdata", json); |
|
|
|
log.info(body); |
|
|
|
} |
|
|
|
String json = JSONObject.toJSONString(result); |
|
|
|
String body = epmetUtils.httpPost("/data/stats/screencoll/eventdata", json); |
|
|
|
log.info(body); |
|
|
|
} |
|
|
|
return null; |
|
|
|
} |
|
|
|
@ -106,17 +108,19 @@ public class DataStatsScreencollServiceImpl extends BaseServiceImpl<DataStatsScr |
|
|
|
public Result meetdata() { |
|
|
|
List<MeetdataResultDTO> list = baseDao.meetdata(); |
|
|
|
List<List<MeetdataResultDTO>> formList = fixedGrouping(list,1000); |
|
|
|
for(int i = 0 ; i < formList.size() ; i++){ |
|
|
|
// 将list转换为json格式
|
|
|
|
MeetdataDTO result = new MeetdataDTO(); |
|
|
|
result.setDataList(formList.get(i)); |
|
|
|
result.setMonthId(formList.get(i).get(0).getMonthId()); |
|
|
|
if(i == 0){ |
|
|
|
result.setIsFirst(true); |
|
|
|
if (formList != null && formList.size()>0) { |
|
|
|
for (int i = 0; i < formList.size(); i++) { |
|
|
|
// 将list转换为json格式
|
|
|
|
MeetdataDTO result = new MeetdataDTO(); |
|
|
|
result.setDataList(formList.get(i)); |
|
|
|
result.setMonthId(formList.get(i).get(0).getMonthId()); |
|
|
|
if (i == 0) { |
|
|
|
result.setIsFirst(true); |
|
|
|
} |
|
|
|
String json = JSONObject.toJSONString(result); |
|
|
|
String body = epmetUtils.httpPost("/data/stats/screencoll/meetdata", json); |
|
|
|
log.info(body); |
|
|
|
} |
|
|
|
String json = JSONObject.toJSONString(result); |
|
|
|
String body = epmetUtils.httpPost("/data/stats/screencoll/meetdata", json); |
|
|
|
log.info(body); |
|
|
|
} |
|
|
|
return null; |
|
|
|
} |
|
|
|
|