|
@@ -110,9 +110,17 @@ public class TestController {
|
|
list.add(7883032L);
|
|
list.add(7883032L);
|
|
list.add(7922257L);*/
|
|
list.add(7922257L);*/
|
|
|
|
|
|
|
|
+
|
|
list.add(9556344L);
|
|
list.add(9556344L);
|
|
- list.add(9743738L);
|
|
|
|
|
|
+ list.add(9556274L);
|
|
|
|
+ list.add(9767055L);
|
|
list.add(9743727L);
|
|
list.add(9743727L);
|
|
|
|
+ list.add(9743746L);
|
|
|
|
+ list.add(9792538L);
|
|
|
|
+ list.add(9767096L);
|
|
|
|
+ list.add(9743738L);
|
|
|
|
+ list.add(9812671L);
|
|
|
|
+ list.add(9838554L);
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < list.size(); i++) {
|
|
for (int i = 0; i < list.size(); i++) {
|
|
@@ -164,14 +172,24 @@ public class TestController {
|
|
@GetMapping(value = "/updateUnit")
|
|
@GetMapping(value = "/updateUnit")
|
|
public void updateUnit() throws Exception {
|
|
public void updateUnit() throws Exception {
|
|
List<Long> list = new ArrayList();
|
|
List<Long> list = new ArrayList();
|
|
|
|
+
|
|
list.add(9556344L);
|
|
list.add(9556344L);
|
|
- list.add(9743738L);
|
|
|
|
|
|
+ list.add(9556274L);
|
|
|
|
+ list.add(9767055L);
|
|
list.add(9743727L);
|
|
list.add(9743727L);
|
|
|
|
+ list.add(9743746L);
|
|
|
|
+ list.add(9792538L);
|
|
|
|
+ list.add(9767096L);
|
|
|
|
+ list.add(9743738L);
|
|
|
|
+ list.add(9812671L);
|
|
|
|
+ list.add(9838554L);
|
|
|
|
+
|
|
for (int i = 0; i < list.size(); i++) {
|
|
for (int i = 0; i < list.size(); i++) {
|
|
Long accountId = list.get(i);
|
|
Long accountId = list.get(i);
|
|
CtopOauthToken oauthToken = oauthTokenService.getTokenByAccountId(accountId);
|
|
CtopOauthToken oauthToken = oauthTokenService.getTokenByAccountId(accountId);
|
|
QueryWrapper<KuaiShouGroup> groupQueryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<KuaiShouGroup> groupQueryWrapper = new QueryWrapper<>();
|
|
groupQueryWrapper.eq("account_id", accountId);
|
|
groupQueryWrapper.eq("account_id", accountId);
|
|
|
|
+ // groupQueryWrapper.ne("cpa_bid", 24000);
|
|
// groupQueryWrapper.ne("schedule_time","000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111");
|
|
// groupQueryWrapper.ne("schedule_time","000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111");
|
|
// groupQueryWrapper.eq("use_app_market", 1);
|
|
// groupQueryWrapper.eq("use_app_market", 1);
|
|
|
|
|
|
@@ -194,7 +212,7 @@ public class TestController {
|
|
try {
|
|
try {
|
|
JSONObject json = new JSONObject();
|
|
JSONObject json = new JSONObject();
|
|
json.put("unitId", group.getUnitId());
|
|
json.put("unitId", group.getUnitId());
|
|
- json.put("cpaBid", 25 * 1000);
|
|
|
|
|
|
+ json.put("cpaBid", 24 * 1000);
|
|
// json.put("gender", "2");
|
|
// json.put("gender", "2");
|
|
batchService.updateUnit(json, oauthToken);
|
|
batchService.updateUnit(json, oauthToken);
|
|
Thread.sleep(1000);
|
|
Thread.sleep(1000);
|