@@ -102,7 +102,7 @@ public class WechatMchServiceImpl implements WechatMchService { | |||
BigDecimal otherTotalRefundFee = new BigDecimal("0"); | |||
AflMchAmountCategory amountCategory; | |||
for (int j = 0; j < amountCategories.size(); j++) { | |||
amountCategory = amountCategories.get(0); | |||
amountCategory = amountCategories.get(j); | |||
statisticsVo = new WechatStatisticsVo(); | |||
totalAmount = new BigDecimal("0"); | |||
totalRefundFee = new BigDecimal("0"); |
@@ -112,6 +112,13 @@ public class SaleTest { | |||
private AflBydDashboardDetailRepo aflBydDashboardDetailRepo; | |||
@Resource | |||
private WechatPayApplyResultLogRepo wechatPayApplyResultLogRepo; | |||
@Resource | |||
private BydDashboardBatchDataGenerateTask dashboardBatchDataGenerateTask; | |||
@Test | |||
public void generateTask(){ | |||
dashboardBatchDataGenerateTask.dashboardBatchSync(); | |||
} | |||
@Test | |||
public void bydDashboardSync() throws ServiceHandleException { |