Commit 0176e48c authored by 郑建's avatar 郑建

增加初始页数

parent 543d87e1
......@@ -25,13 +25,13 @@ public class RepairController {
* pageNo 从0开始
*/
@RequestMapping("/repair")
public String mainLoanInfoSend(){
public String mainLoanInfoSend(int startPage){
try{
Stopwatch stopwatch = Stopwatch.createStarted();
repairService.doRepair("normal_lh");
repairService.doRepair("overdue_lh");
repairService.doRepair("normal");
repairService.doRepair("overdue");
repairService.doRepair("normal_lh",startPage);
repairService.doRepair("overdue_lh",startPage);
repairService.doRepair("normal",startPage);
repairService.doRepair("overdue",startPage);
log.info("本次测试总耗时 {}",stopwatch.elapsed(TimeUnit.MILLISECONDS));
log.info("数据补报成功");
return "数据补报成功";
......
......@@ -64,11 +64,11 @@ public class RepairService implements CommonSuperService {
public static final String errorLog = "/home/quant_group/baihang-report/data/baihang/error.txt";
public void doRepair(String type) {
public void doRepair(String type,int startPage) {
Stopwatch stopwatch = Stopwatch.createStarted();
log.info("开始报送 {}",type);
boolean flag = true;
int i=0;
int i=startPage;
while (flag){
try {
flag = doRepair(i,type);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment