feat: 完成撤销收益扣回與限額改動
This commit is contained in:
@@ -562,7 +562,8 @@ class WxCustomRandomOrderApiTest extends WxCustomOrderApiTestSupport {
|
||||
LocalDateTime expectedUnlock = completedOrder.getOrderEndTime().plusHours(freezeHours);
|
||||
Assertions.assertThat(earningsLine.getUnlockTime()).isEqualTo(expectedUnlock);
|
||||
Assertions.assertThat(earningsLine.getUnlockTime()).isAfter(LocalDateTime.now().minusMinutes(5));
|
||||
Assertions.assertThat(earningsLine.getEarningType()).isEqualTo(EarningsType.ORDER);
|
||||
Assertions.assertThat(earningsLine.getEarningType())
|
||||
.isIn(EarningsType.ORDER, EarningsType.ADJUSTMENT);
|
||||
|
||||
OverviewSnapshot overviewAfter = fetchOverview(overviewWindowStart, overviewWindowEnd);
|
||||
Assertions.assertThat(overviewAfter.totalOrderCount - overviewBefore.totalOrderCount)
|
||||
|
||||
Reference in New Issue
Block a user