|
@@ -137,7 +137,7 @@ public class ImGroupController extends BaseController {
|
|
|
try {
|
|
|
List<ImHistoryMessage> info;
|
|
|
//计算总数据量
|
|
|
- double count = imGroupService.queryCount();
|
|
|
+ int count = imGroupService.queryCount();
|
|
|
//计算调用次数
|
|
|
// int num = (int) Math.ceil(count / 100);
|
|
|
// for (int i = 1; i <=num ; i++) {
|
|
@@ -149,7 +149,7 @@ public class ImGroupController extends BaseController {
|
|
|
// //IM导入
|
|
|
// imGroupService.importInfo(info);
|
|
|
// }
|
|
|
- info = imGroupService.getRongYunInfo(1,Integer.parseInt(String.valueOf(count)));
|
|
|
+ info = imGroupService.getRongYunInfo(1,count);
|
|
|
//IM导入
|
|
|
imGroupService.importInfo(info);
|
|
|
} catch (Exception e) {
|