订单列表
This commit is contained in:
parent
8b8c4e6ba4
commit
9f84f7cbc4
|
@ -276,7 +276,7 @@ public class AiServiceImpl implements IAiService {
|
|||
list = orderInfoService.selectBusZpsOrderInfoListToAi(busStoreInfo.getStoreCode(), time);
|
||||
}
|
||||
if (list.size() == 0) continue;
|
||||
list.forEach(System.out::println);
|
||||
// list.forEach(System.out::println);
|
||||
//代理账分不足,跳出 取最小值
|
||||
BusAgentInfo agentInfo = new BusAgentInfo();
|
||||
agentInfo.setAgentAccount(busStoreInfo.getBindUser());
|
||||
|
|
|
@ -77,6 +77,8 @@ public class MeituanServiceImpl implements IMeituanService {
|
|||
@Autowired
|
||||
private BusStoreConfigInfoMapper busStoreConfigInfoMapper;
|
||||
|
||||
private static CloseableHttpClient client1 = HttpClientBuilder.create().build();
|
||||
|
||||
/**
|
||||
* 获取cookie
|
||||
*
|
||||
|
@ -218,7 +220,7 @@ public class MeituanServiceImpl implements IMeituanService {
|
|||
public String orderInfoList() {
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
BusStoreInfo busStoreInfo = new BusStoreInfo();
|
||||
busStoreInfo.setGrantStatus("1");
|
||||
// busStoreInfo.setGrantStatus("1");
|
||||
List<BusStoreInfo> busStoreInfoList = busStoreInfoMapper.selectBusStoreInfoList(busStoreInfo);
|
||||
for (BusStoreInfo store : busStoreInfoList) {
|
||||
R flag = orderInfo(store.getStoreCode(),now.format(DateTimeFormatter.ofPattern("yyyy-MM-dd")),store.getStoreCookie());
|
||||
|
@ -412,7 +414,7 @@ public class MeituanServiceImpl implements IMeituanService {
|
|||
builder.addTextBody("startDate", date);
|
||||
builder.addTextBody("endDate", date);
|
||||
builder.addTextBody("pageNum", String.valueOf(pageNum));
|
||||
builder.addTextBody("pageSize", "10");
|
||||
builder.addTextBody("pageSize", "20");
|
||||
builder.addTextBody("pageGray", "1");
|
||||
|
||||
HttpPost httpPost = new HttpPost(url);
|
||||
|
@ -420,8 +422,11 @@ public class MeituanServiceImpl implements IMeituanService {
|
|||
httpPost.setEntity(entity);
|
||||
httpPost.setHeader("Cookie", cookie);
|
||||
|
||||
// CloseableHttpClient client = proxyHttpClient();
|
||||
CloseableHttpClient client = HttpClientBuilder.create().build();
|
||||
CloseableHttpClient client = proxyHttpClient();
|
||||
// if(client1 == null){
|
||||
// client1 = proxyHttpClient();
|
||||
// }
|
||||
// CloseableHttpClient client = HttpClientBuilder.create().build();
|
||||
HttpEntity responseEntity;
|
||||
String resp = null;
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
|
|
Loading…
Reference in New Issue