Commit f8257dba by 程裕兵

feat:settle

parent 47260490
package com.jiejing.bff.crontab.server.finance; package com.jiejing.bff.crontab.server.finance;
import com.jiejing.fitness.finance.api.task.FitFinanceTaskApi;
import com.jiejing.fitness.finance.api.task.request.CheckSettleRequest;
import javax.annotation.Resource;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
...@@ -10,12 +13,15 @@ import org.springframework.stereotype.Component; ...@@ -10,12 +13,15 @@ import org.springframework.stereotype.Component;
@Component @Component
public class FitFinanceJob { public class FitFinanceJob {
@Resource
private FitFinanceTaskApi fitFinanceTaskApi;
/** /**
* 对账 * 对账
*/ */
@Scheduled(cron = "0 0 3 * * ?") @Scheduled(cron = "0 0 3 * * ?")
public void checkBill() { public void checkSettle() {
// payCenterTaskApi.syncSettle(); fitFinanceTaskApi.checkSettle(CheckSettleRequest.builder().build());
} }
} }
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