调整influxDB的常量池,并提供工具类

This commit is contained in:
2022-10-14 15:44:32 +08:00
parent cb1569cffd
commit 1efdfa5cd6
5 changed files with 538 additions and 24 deletions

View File

@@ -21,7 +21,7 @@ public class GenerateCode {
private static final String TARGET_DIR = "D://code";
private static final String DB_URL = "jdbc:mysql://192.168.1.14:13306/pqsinfo";
private static final String DB_URL = "jdbc:mysql://192.168.1.18:13306/pqsinfo_pms";
private static final String USERNAME = "root";
@@ -30,29 +30,24 @@ public class GenerateCode {
public static void main(String[] args) {
List<Module> modules = Stream.of(
new Module("hongawen", "com.njcn", "user", Stream.of(
"sys_component"
,"sys_dept"
,"sys_function"
,"sys_home_page"
,"sys_role"
,"sys_role_component"
,"sys_role_function"
,"sys_user"
,"sys_user_role"
,"sys_user_set"
,"sys_auth_client"
,"sys_user_strategy"
).collect(Collectors.toList()), "sys_")
, new Module("hongawen", "com.njcn", "system", Stream.of(
"sys_dict_data"
,"sys_area"
,"sys_config"
,"sys_dict_type"
,"sys_task"
,"sys_resource"
,"sys_theme"
).collect(Collectors.toList()), "sys_")
new Module("hongawen", "com.njcn.device", "pms", Stream.of(
"pms_monitor"
,"pms_distribution_monitor"
,"pms_harmonic_general_management"
,"pms_harmonic_general_management_data"
,"pms_power_client"
,"pms_power_distributionarea"
,"pms_power_generation_user"
,"pms_power_quality_matter"
,"pms_source_management"
,"pms_statation_stat"
,"pms_statistics_run_monitor"
,"pms_terminal"
,"pms_terminal_eliminate_data"
,"pms_traction_station"
,"pms_transient_stastic_data"
,"pms_treat_transient_detail_data"
).collect(Collectors.toList()), "pms_")
).collect(Collectors.toList());
generateJavaFile(modules);
}