|
@@ -3,6 +3,7 @@ package com.jkcredit.invoice.hub.task;
|
|
|
import com.jkcredit.invoice.hub.model.po.carFreeCarrierBillStart.CarFreeCarrierBillStartPo;
|
|
|
import com.jkcredit.invoice.hub.service.apiCarFree.ApiCarFreeChargeService;
|
|
|
import com.jkcredit.invoice.hub.service.carFreeCarrierBillStart.CarFreeCarrierBillStartService;
|
|
|
+import com.xxl.job.core.biz.model.ReturnT;
|
|
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -17,7 +18,7 @@ import java.util.List;
|
|
|
* @create: 2020/1/18 15:49
|
|
|
* @version: V1.0
|
|
|
**/
|
|
|
-
|
|
|
+@Component
|
|
|
@Slf4j
|
|
|
public class WayBillTask {
|
|
|
@Autowired
|
|
@@ -28,7 +29,7 @@ public class WayBillTask {
|
|
|
|
|
|
|
|
|
@XxlJob("realTimeWayBillHandler")
|
|
|
- public void realTimeWayBill() {
|
|
|
+ public ReturnT<String> realTimeWayBill(String param) {
|
|
|
log.info("实时运单定时处理开始");
|
|
|
|
|
|
|
|
@@ -40,13 +41,14 @@ public class WayBillTask {
|
|
|
for (CarFreeCarrierBillStartPo po : startPoList) {
|
|
|
chargeService.charge(po);
|
|
|
}
|
|
|
+ return ReturnT.SUCCESS;
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@XxlJob("historyWayBillHandler")
|
|
|
- public void historyWayBill() {
|
|
|
+ public ReturnT<String> historyWayBill(String param) {
|
|
|
log.info("历史运单定时处理开始");
|
|
|
|
|
|
|
|
@@ -58,13 +60,14 @@ public class WayBillTask {
|
|
|
for (CarFreeCarrierBillStartPo po : startPoList) {
|
|
|
chargeService.charge(po);
|
|
|
}
|
|
|
+ return ReturnT.SUCCESS;
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@XxlJob("billsWithoutIsHistoryFlagHandler")
|
|
|
- public void billsWithoutIsHistoryFlag() {
|
|
|
+ public ReturnT<String> billsWithoutIsHistoryFlag(String param) {
|
|
|
|
|
|
|
|
|
|
|
@@ -75,5 +78,6 @@ public class WayBillTask {
|
|
|
for (CarFreeCarrierBillStartPo po : startPoList) {
|
|
|
chargeService.charge(po);
|
|
|
}
|
|
|
+ return ReturnT.SUCCESS;
|
|
|
}
|
|
|
}
|