|
@@ -30,11 +30,11 @@ public class KuaishouInterfaceServiceImpl2 implements IKuaishouInterfaceService2
|
|
Long days = DateUtils.getDiscrepantDays(startDate, endDate);
|
|
Long days = DateUtils.getDiscrepantDays(startDate, endDate);
|
|
String start = null;
|
|
String start = null;
|
|
String end = null;
|
|
String end = null;
|
|
- for (int i = 0; i <= days; i++) {
|
|
|
|
- start = DateUtils.addDay(startDate, i);
|
|
|
|
- end = start;
|
|
|
|
- getOperationRecordByPage(advertiserId, accessToken,1, 500, operationTarget, start, end);
|
|
|
|
- }
|
|
|
|
|
|
+ //for (int i = 0; i <= days; i++) {
|
|
|
|
+ // start = DateUtils.addDay(startDate, i);
|
|
|
|
+ // end = start;
|
|
|
|
+ getOperationRecordByPage(advertiserId, accessToken,1, 500, operationTarget, startDate, endDate);
|
|
|
|
+ //}
|
|
}
|
|
}
|
|
|
|
|
|
private void getOperationRecordByPage(Long advertiserId, String accessToken, Integer page, Integer pageSize, Integer operationTarget, String startDate, String endDate) {
|
|
private void getOperationRecordByPage(Long advertiserId, String accessToken, Integer page, Integer pageSize, Integer operationTarget, String startDate, String endDate) {
|
|
@@ -67,6 +67,7 @@ public class KuaishouInterfaceServiceImpl2 implements IKuaishouInterfaceService2
|
|
if (!Check.isNull(dataJson)) {
|
|
if (!Check.isNull(dataJson)) {
|
|
|
|
|
|
Date operationTime = dataJson.getDate("operation_time");
|
|
Date operationTime = dataJson.getDate("operation_time");
|
|
|
|
+ //Date operationDate = DateUtils.parseDate()
|
|
Integer operationType = dataJson.getInteger("operation_type");
|
|
Integer operationType = dataJson.getInteger("operation_type");
|
|
operationTarget = dataJson.getInteger("operation_target");
|
|
operationTarget = dataJson.getInteger("operation_target");
|
|
Integer roleType = dataJson.getInteger("role_type");
|
|
Integer roleType = dataJson.getInteger("role_type");
|
|
@@ -94,7 +95,7 @@ public class KuaishouInterfaceServiceImpl2 implements IKuaishouInterfaceService2
|
|
|
|
|
|
KuaishouOperationRecord record = new KuaishouOperationRecord();
|
|
KuaishouOperationRecord record = new KuaishouOperationRecord();
|
|
record.setAccountId(advertiserId);
|
|
record.setAccountId(advertiserId);
|
|
- record.setStatDate(startDate);
|
|
|
|
|
|
+ record.setStatDate(DateUtils.formatDate(operationTime));
|
|
record.setOperationTime(operationTime);
|
|
record.setOperationTime(operationTime);
|
|
record.setOperationType(operationType);
|
|
record.setOperationType(operationType);
|
|
record.setRoleType(roleType);
|
|
record.setRoleType(roleType);
|