|
@@ -1,6 +1,7 @@
|
|
package cn.com.ctop.toutiao.modules.agent.service.impl;
|
|
package cn.com.ctop.toutiao.modules.agent.service.impl;
|
|
|
|
|
|
import cn.com.ctop.common.module.entity.CtopOauthToken;
|
|
import cn.com.ctop.common.module.entity.CtopOauthToken;
|
|
|
|
+import cn.com.ctop.common.module.service.IUserAllocationService;
|
|
import cn.com.ctop.common.module.utils.HttpUtils;
|
|
import cn.com.ctop.common.module.utils.HttpUtils;
|
|
import cn.com.ctop.toutiao.modules.agent.entity.TransactionDay;
|
|
import cn.com.ctop.toutiao.modules.agent.entity.TransactionDay;
|
|
import cn.com.ctop.toutiao.modules.agent.entity.TransactionDetails;
|
|
import cn.com.ctop.toutiao.modules.agent.entity.TransactionDetails;
|
|
@@ -21,6 +22,7 @@ import org.apache.http.entity.StringEntity;
|
|
import org.apache.http.impl.client.CloseableHttpClient;
|
|
import org.apache.http.impl.client.CloseableHttpClient;
|
|
import org.apache.http.impl.client.HttpClientBuilder;
|
|
import org.apache.http.impl.client.HttpClientBuilder;
|
|
import org.jeecg.common.api.vo.Result;
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
@@ -261,6 +263,9 @@ public class AgentManagementServiceImpl implements AgentManagementService {
|
|
* @author zzy
|
|
* @author zzy
|
|
* @create: 2021-07-15
|
|
* @create: 2021-07-15
|
|
*/
|
|
*/
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private IUserAllocationService userAllocationService;
|
|
@Override
|
|
@Override
|
|
public Result synchronousAccountTransactionDay(String startDate, String endDate) {
|
|
public Result synchronousAccountTransactionDay(String startDate, String endDate) {
|
|
log.info("开始同步账号日流水---日期{}---{}",startDate,endDate);
|
|
log.info("开始同步账号日流水---日期{}---{}",startDate,endDate);
|
|
@@ -271,7 +276,9 @@ public class AgentManagementServiceImpl implements AgentManagementService {
|
|
ca.add(Calendar.DATE, -1);
|
|
ca.add(Calendar.DATE, -1);
|
|
|
|
|
|
try {
|
|
try {
|
|
- List<String> accountIdList = ctopAgentAccountMapper.getAllAccountId();
|
|
|
|
|
|
+ List<String> accountIdList = userAllocationService.getAccountListByProjectV2(12630885L);
|
|
|
|
+
|
|
|
|
+ // List<String> accountIdList = ctopAgentAccountMapper.getAllAccountId();
|
|
// List<String> accountIdList = new ArrayList<>();
|
|
// List<String> accountIdList = new ArrayList<>();
|
|
//accountIdList.add("1744115510360071");
|
|
//accountIdList.add("1744115510360071");
|
|
if (!accountIdList.isEmpty()) {
|
|
if (!accountIdList.isEmpty()) {
|