|
|
@@ -15,6 +15,8 @@ import org.redisson.api.RedissonClient;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.boot.context.event.ApplicationReadyEvent;
|
|
|
+import org.springframework.context.event.EventListener;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
@@ -87,6 +89,7 @@ public class BalanceRollbackErrorServiceImpl extends ServiceImpl<BalanceRollback
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @EventListener(ApplicationReadyEvent.class)
|
|
|
public void initCompanyBalance() {
|
|
|
|
|
|
// 查询公司表 Company
|