|
@ -1,5 +1,6 @@ |
|
|
package com.epmet.controller; |
|
|
package com.epmet.controller; |
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
|
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
@ -63,9 +64,6 @@ import java.math.BigDecimal; |
|
|
import java.time.LocalDate; |
|
|
import java.time.LocalDate; |
|
|
import java.time.LocalDateTime; |
|
|
import java.time.LocalDateTime; |
|
|
import java.util.*; |
|
|
import java.util.*; |
|
|
import java.util.ArrayList; |
|
|
|
|
|
import java.util.Date; |
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
import java.util.concurrent.ExecutionException; |
|
|
import java.util.concurrent.ExecutionException; |
|
|
import java.util.concurrent.ExecutorService; |
|
|
import java.util.concurrent.ExecutorService; |
|
|
import java.util.concurrent.Future; |
|
|
import java.util.concurrent.Future; |
|
@ -896,7 +894,15 @@ public class DemoController { |
|
|
if (StringUtils.isNotBlank(param.getCustomerId())) { |
|
|
if (StringUtils.isNotBlank(param.getCustomerId())) { |
|
|
customerIds.add(param.getCustomerId()); |
|
|
customerIds.add(param.getCustomerId()); |
|
|
} else { |
|
|
} else { |
|
|
customerIds = dimCustomerService.selectCustomerIdPage(1, 100); |
|
|
int pageNo = NumConstant.ONE; |
|
|
|
|
|
int pageSize = NumConstant.ONE_HUNDRED; |
|
|
|
|
|
List<String> customerIdList = null; |
|
|
|
|
|
do { |
|
|
|
|
|
customerIdList = dimCustomerService.selectCustomerIdPage(pageNo++, pageSize); |
|
|
|
|
|
if (!CollectionUtils.isEmpty(customerIdList)){ |
|
|
|
|
|
customerIds.addAll(customerIdList); |
|
|
|
|
|
} |
|
|
|
|
|
} while (!CollectionUtil.isEmpty(customerIdList) && customerIdList.size() == pageSize); |
|
|
} |
|
|
} |
|
|
for (String customerId : customerIds) { |
|
|
for (String customerId : customerIds) { |
|
|
dateIds.forEach(dateId -> { |
|
|
dateIds.forEach(dateId -> { |
|
@ -943,7 +949,15 @@ public class DemoController { |
|
|
if (StringUtils.isNotBlank(formDTO.getCustomerId())) { |
|
|
if (StringUtils.isNotBlank(formDTO.getCustomerId())) { |
|
|
customerIds.add(formDTO.getCustomerId()); |
|
|
customerIds.add(formDTO.getCustomerId()); |
|
|
} else { |
|
|
} else { |
|
|
customerIds = dimCustomerService.selectCustomerIdPage(1, 100); |
|
|
int pageNo = NumConstant.ONE; |
|
|
|
|
|
int pageSize = NumConstant.ONE_HUNDRED; |
|
|
|
|
|
List<String> customerIdList = null; |
|
|
|
|
|
do { |
|
|
|
|
|
customerIdList = dimCustomerService.selectCustomerIdPage(pageNo++, pageSize); |
|
|
|
|
|
if (!CollectionUtils.isEmpty(customerIdList)){ |
|
|
|
|
|
customerIds.addAll(customerIdList); |
|
|
|
|
|
} |
|
|
|
|
|
} while (!CollectionUtil.isEmpty(customerIdList) && customerIdList.size() == pageSize); |
|
|
} |
|
|
} |
|
|
for (String customerId : customerIds) { |
|
|
for (String customerId : customerIds) { |
|
|
ExtractOriginFormDTO paramDTO = new ExtractOriginFormDTO(); |
|
|
ExtractOriginFormDTO paramDTO = new ExtractOriginFormDTO(); |
|
|