|
|
@ -53,7 +53,7 @@ class MarketService
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$count = M('spend', 'tab_')->where($map)->count();
|
|
|
|
$count = M('spend', 'tab_')->where($map)->count();
|
|
|
|
$limit = 50;
|
|
|
|
$limit = 500;
|
|
|
|
$pageCount = ceil($count/$limit);
|
|
|
|
$pageCount = ceil($count/$limit);
|
|
|
|
for ($page = 0; $page <= $pageCount; $page ++) {
|
|
|
|
for ($page = 0; $page <= $pageCount; $page ++) {
|
|
|
|
M('spend', 'tab_')->where($map)->limit($limit)->save(['market_admin_id' => $toId]);
|
|
|
|
M('spend', 'tab_')->where($map)->limit($limit)->save(['market_admin_id' => $toId]);
|
|
|
@ -71,7 +71,7 @@ class MarketService
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$count = M('deposit', 'tab_')->where($map)->count();
|
|
|
|
$count = M('deposit', 'tab_')->where($map)->count();
|
|
|
|
$limit = 50;
|
|
|
|
$limit = 500;
|
|
|
|
$pageCount = ceil($count/$limit);
|
|
|
|
$pageCount = ceil($count/$limit);
|
|
|
|
for ($page = 0; $page <= $pageCount; $page ++) {
|
|
|
|
for ($page = 0; $page <= $pageCount; $page ++) {
|
|
|
|
M('deposit', 'tab_')->where($map)->limit($limit)->save(['market_admin_id' => $toId]);
|
|
|
|
M('deposit', 'tab_')->where($map)->limit($limit)->save(['market_admin_id' => $toId]);
|
|
|
|