暂降治理一期工作内容
This commit is contained in:
@@ -27,6 +27,18 @@
|
||||
<artifactId>common-web</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</dependency>
|
||||
|
||||
<!--oracle驱动-->
|
||||
<dependency>
|
||||
<groupId>com.oracle.database.jdbc</groupId>
|
||||
<artifactId>ojdbc8</artifactId>
|
||||
</dependency>
|
||||
<!-- 不支持的字符集 (在类路径中添加 orai18n.jar): ZHS16GBK -->
|
||||
<dependency>
|
||||
<groupId>com.oracle.database.nls</groupId>
|
||||
<artifactId>orai18n</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- mybatis-plus自动生成代码 -->
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
|
||||
@@ -19,9 +19,10 @@ import java.util.stream.Stream;
|
||||
*/
|
||||
public class GenerateCode {
|
||||
|
||||
private static final String TARGET_DIR = "C://code";
|
||||
private static final String TARGET_DIR = "D://code";
|
||||
|
||||
private static final String DB_URL = "jdbc:mysql://192.168.1.16:13306/pqsinfo";
|
||||
private static final String DB_URL = "jdbc:mysql://192.168.1.24:13306/pqsinfo_hn";
|
||||
// private static final String DB_URL = "jdbc:oracle:thin:@192.168.1.170:1521:pqsbase";
|
||||
|
||||
private static final String USERNAME = "root";
|
||||
|
||||
@@ -29,8 +30,8 @@ public class GenerateCode {
|
||||
|
||||
public static void main(String[] args) {
|
||||
List<Module> modules = Stream.of(
|
||||
new Module("xuyang", "1", "1", Stream.of(
|
||||
"pqs_top_msg"
|
||||
new Module("hongawen", "com.njcn.advance.govern", "voltage", Stream.of(
|
||||
"sg_harmonic_file"
|
||||
).collect(Collectors.toList()), "")
|
||||
).collect(Collectors.toList());
|
||||
generateJavaFile(modules);
|
||||
|
||||
Reference in New Issue
Block a user