xyc
9 小时以前 1c9505d00bd076898cdc5a7d916106e175a91119
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.trafficaudit.auditengine.service;
 
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
 
import javax.annotation.Resource;
 
/** Ensures the city track source rule table exists and contains the initial Xiaogan rule. */
@Component
@Order(110)
public class TrackMileageCitySourceRuleInitializer implements ApplicationRunner {
 
    @Resource
    private TrackMileageCitySourceRuleService ruleService;
 
    @Override
    public void run(ApplicationArguments args) {
        ruleService.ensureTableAndSeed();
    }
}