This commit is contained in:
2026-08-19 09:55:29 +08:00
parent a381d443da
commit 80527fa15f
10 changed files with 82 additions and 31 deletions
@@ -1,5 +1,6 @@
package com.baiyue.finance.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
@@ -22,6 +23,7 @@ public class FinanceDocumentNumberGenerator {
private final JdbcTemplate jdbc;
private final Clock clock;
@Autowired
public FinanceDocumentNumberGenerator(JdbcTemplate jdbc) {
this(jdbc, Clock.system(BUSINESS_ZONE));
}