This commit is contained in:
2026-10-30 13:48:20 +08:00
parent e1bfcfc8f5
commit ac013c265b
2 changed files with 9 additions and 2 deletions
@@ -133,6 +133,11 @@ class ProcurementWorkflowPersistenceTest {
assertThat(resubmitted.receipts().get(0).fileIds()).containsExactly(101L);
assertThat(resubmitted.receipts().get(1).fileIds()).containsExactly(104L);
assertThat(resubmitted.stockQuantity()).isEqualTo(10);
// 重新查询数据库及详情,避免仅内存对象清空而刷新后旧原因又出现。
var persisted = orders.findNo("9", "CG-1");
assertThat(persisted.getCustomerRejectionReason()).isNull();
assertThat(persisted.getRejectedPhotoIds()).isNull();
assertThat(tx.execute(s -> service.read("9", "CG-1")).rejectionReason()).isNull();
assertThat(tx.execute(s -> service.requestConfirmation("9", "CG-1", "7", command)).version()).isEqualTo(5);
}