|
@@ -109,8 +109,7 @@ public class TestController {
|
|
list.add(7882996L);
|
|
list.add(7882996L);
|
|
list.add(7883032L);
|
|
list.add(7883032L);
|
|
list.add(7922257L);*/
|
|
list.add(7922257L);*/
|
|
- list.add(8042807L);
|
|
|
|
- list.add(8042794L);
|
|
|
|
|
|
+ list.add(8159827L);
|
|
|
|
|
|
// list.add(8159827L);
|
|
// list.add(8159827L);
|
|
|
|
|
|
@@ -163,14 +162,13 @@ 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(8042807L);
|
|
|
|
- list.add(8042794L);
|
|
|
|
|
|
+ list.add(8159827L);
|
|
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("schedule_time","000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111");
|
|
|
|
|
|
+ // groupQueryWrapper.ne("schedule_time","000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111");
|
|
// groupQueryWrapper.eq("use_app_market", 1);
|
|
// groupQueryWrapper.eq("use_app_market", 1);
|
|
|
|
|
|
|
|
|
|
@@ -186,21 +184,21 @@ public class TestController {
|
|
|
|
|
|
|
|
|
|
for (KuaiShouGroup group : list1) {
|
|
for (KuaiShouGroup group : list1) {
|
|
- executorService.submit(new Runnable() {
|
|
|
|
|
|
+ /* executorService.submit(new Runnable() {
|
|
@Override
|
|
@Override
|
|
- public void run() {
|
|
|
|
|
|
+ public void run() {*/
|
|
try {
|
|
try {
|
|
JSONObject json = new JSONObject();
|
|
JSONObject json = new JSONObject();
|
|
json.put("unitId", group.getUnitId());
|
|
json.put("unitId", group.getUnitId());
|
|
// json.put("cpaBid", 8500);
|
|
// json.put("cpaBid", 8500);
|
|
- json.put("scheduleTime", "000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111");
|
|
|
|
|
|
+ json.put("gender", "2");
|
|
batchService.updateUnit(json, oauthToken);
|
|
batchService.updateUnit(json, oauthToken);
|
|
Thread.sleep(1000);
|
|
Thread.sleep(1000);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ /* }
|
|
|
|
+ });*/
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|