代码提交
This commit is contained in:
@@ -19,9 +19,9 @@ import java.util.stream.Stream;
|
||||
*/
|
||||
public class GenerateCode {
|
||||
|
||||
private static final String TARGET_DIR = "D://code";
|
||||
private static final String TARGET_DIR = "C://code";
|
||||
|
||||
private static final String DB_URL = "jdbc:mysql://192.168.1.18:13306/pqsinfo_pms";
|
||||
private static final String DB_URL = "jdbc:mysql://192.168.1.18:13306/pqsinfo_test";
|
||||
|
||||
private static final String USERNAME = "root";
|
||||
|
||||
@@ -30,24 +30,9 @@ public class GenerateCode {
|
||||
|
||||
public static void main(String[] args) {
|
||||
List<Module> modules = Stream.of(
|
||||
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_")
|
||||
new Module("xuyang", "com.njcn.access", "zl", Stream.of(
|
||||
"ele_epd_pqd"
|
||||
).collect(Collectors.toList()), "")
|
||||
).collect(Collectors.toList());
|
||||
generateJavaFile(modules);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user