|
|
@@ -66,7 +66,7 @@ public class FosterwxFlowListController extends BaseController<FosterwxFlowList>
|
|
|
if (fosterwxFlowList.getBusFans() > maxFans / 2.0) {
|
|
|
// 超过
|
|
|
// 更新
|
|
|
- FosterwxFlowList lastPosition = fosterwxFlowListService.getOne(new QueryWrapper<FosterwxFlowList>().eq("pool_id", fosterwxFlowList.getPoolId()));
|
|
|
+ FosterwxFlowList lastPosition = fosterwxFlowListService.getOne(new QueryWrapper<FosterwxFlowList>().eq("pool_id", fosterwxFlowList.getPoolId()).orderByDesc("id").last("Limit 1"));
|
|
|
String position = "";
|
|
|
if (null == lastPosition) {
|
|
|
// 新开账号 需要激活个微池状态
|
|
|
@@ -92,7 +92,7 @@ public class FosterwxFlowListController extends BaseController<FosterwxFlowList>
|
|
|
} else {
|
|
|
// 未超过
|
|
|
// 查找上一个流量位置
|
|
|
- FosterwxFlowList lastPosition = fosterwxFlowListService.getOne(new QueryWrapper<FosterwxFlowList>().eq("pool_id", fosterwxFlowList.getPoolId()));
|
|
|
+ FosterwxFlowList lastPosition = fosterwxFlowListService.getOne(new QueryWrapper<FosterwxFlowList>().eq("pool_id", fosterwxFlowList.getPoolId()).orderByDesc("id").last("Limit 1"));
|
|
|
String position = "";
|
|
|
if (null == lastPosition) {
|
|
|
// 新开账号 需要激活个微池状态
|