部分内容优化
This commit is contained in:
parent
6c34066c1f
commit
1120b834e5
@ -462,7 +462,7 @@ public class BankInfoController {
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
log.info("当前时间:{}", now);
|
||||
//获取两天前的时间
|
||||
LocalDateTime twoDaysAgo = now.minusDays(30);
|
||||
LocalDateTime twoDaysAgo = now.minusDays(90);
|
||||
|
||||
//将时间转换样式
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
||||
|
29
src/main/java/com/management/task/BankRunner.java
Normal file
29
src/main/java/com/management/task/BankRunner.java
Normal file
@ -0,0 +1,29 @@
|
||||
package com.management.task;
|
||||
|
||||
import com.management.controller.BankInfoController;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.ApplicationArguments;
|
||||
import org.springframework.boot.ApplicationRunner;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 用于批量传输银行数据
|
||||
*
|
||||
* @return null
|
||||
* @Author weiloong_zhang
|
||||
*/
|
||||
//@Component
|
||||
//@Slf4j
|
||||
//public class BankRunner implements ApplicationRunner {
|
||||
//
|
||||
// @Autowired
|
||||
// private BankInfoController bankInfoController;
|
||||
//
|
||||
// @Override
|
||||
// public void run(ApplicationArguments args) throws Exception {
|
||||
// log.info("开始批量传输银行数据");
|
||||
// bankInfoController.bankInfoBatch();
|
||||
// log.info("批量传输银行数据结束");
|
||||
// }
|
||||
//}
|
@ -58,7 +58,7 @@ public class CrmRequestUtil {
|
||||
|
||||
Map searchQueryInfoMap = new HashMap<>();
|
||||
searchQueryInfoMap.put("offset", "0");
|
||||
searchQueryInfoMap.put("limit", "2000");
|
||||
searchQueryInfoMap.put("limit", "500");
|
||||
searchQueryInfoMap.put("orders", Arrays.asList(orderMap));
|
||||
searchQueryInfoMap.put("filters", filters);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user