feat(M08-B): 补保洁统计趋势
This commit is contained in:
@@ -188,6 +188,15 @@ const app = await buildApp({
|
||||
taskCount: 3,
|
||||
pendingSettlementCents: 1200,
|
||||
settledRewardCents: 600
|
||||
}],
|
||||
trend: [{
|
||||
date: '2026-06-30',
|
||||
taskTotal: 5,
|
||||
pendingReview: 2,
|
||||
completed: 1,
|
||||
rejected: 1,
|
||||
rewardCents: 3000,
|
||||
paidSettlementCents: 600
|
||||
}]
|
||||
};
|
||||
}
|
||||
@@ -291,6 +300,7 @@ assert.equal(managerStats.statusCode, 200);
|
||||
assert.equal(calls.at(-1)[0], 'managerStatistics');
|
||||
assert.equal(calls.at(-1)[1].storeId, '11');
|
||||
assert.equal(managerStats.json().data.summary.pendingSettlementCents, 1200);
|
||||
assert.equal(managerStats.json().data.trend[0].paidSettlementCents, 600);
|
||||
|
||||
const claim = await app.inject({
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user