From 733b9e6837365d2817d7e8a0005b2c167c18f77e Mon Sep 17 00:00:00 2001 From: liding <756868258@qq.com> Date: 星期四, 19 六月 2025 17:58:48 +0800 Subject: [PATCH] 1.生产加工 2.煤种id优化 --- ruoyi-admin/src/main/java/com/ruoyi/PlusCodeGenerator.java | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/PlusCodeGenerator.java b/ruoyi-admin/src/main/java/com/ruoyi/PlusCodeGenerator.java index ffd4834..064730b 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/PlusCodeGenerator.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/PlusCodeGenerator.java @@ -28,18 +28,19 @@ public class PlusCodeGenerator { // 鏁版嵁搴撻厤缃� - private static final String DB_URL = "jdbc:postgresql://localhost:5432/ruoyi-zd"; + private static final String DB_URL = "jdbc:postgresql://192.168.1.35:5432/ruoyi-zd"; private static final String DB_USERNAME = "postgres"; private static final String DB_PASSWORD = "123456"; // 椤圭洰鍩虹閰嶇疆 private static final String BASE_PACKAGE = "com.ruoyi"; - private static final String MODULE_NAME = "basic"; // 妯″潡鍚� + private static final String MODULE_NAME = "business"; // 妯″潡鍚� public static void main(String[] args) { String projectPath = System.getProperty("user.dir"); // 鑾峰彇椤圭洰鏍硅矾寰� - String path = "basic-server"; // 妯″潡鍚嶇О - String table = "coal_info"; // 琛ㄥ悕锛屽涓〃閫楀彿闅斿紑 + String path = "main-business"; // 妯″潡鍚嶇О + String table = "input_inventory_record,output_inventory_record,inventory_summary"; // 琛ㄥ悕锛屽涓〃閫楀彿闅斿紑 + String author = "chenhj"; // 浠g爜杈撳嚭璺緞閰嶇疆 String outputBasePath = Paths.get(projectPath, path, "src", "main", "java").toString(); @@ -48,7 +49,7 @@ // 浠g爜鐢熸垚鏍稿績閰嶇疆 FastAutoGenerator.create(DB_URL, DB_USERNAME, DB_PASSWORD) .globalConfig(builder -> { - builder.author("ld") // 浣滆�呬俊鎭� + builder.author(author) // 浣滆�呬俊鎭� .outputDir(outputBasePath) // 浠g爜杈撳嚭鐩綍 .dateType(DateType.ONLY_DATE) // 鏃ユ湡绫诲瀷 .commentDate("yyyy-MM-dd") // 娉ㄩ噴鏃ユ湡鏍煎紡 @@ -128,7 +129,7 @@ )); // 鍩虹被瀛楁 customMap.put("idType", "AUTO"); // 涓婚敭绫诲瀷 customMap.put("superEntityClass", "com.ruoyi.common.core.domain.MyBaseEntity"); // 鍩虹被鍏ㄨ矾寰� - customMap.put("author", "ruoyi"); // 浣滆�呬俊鎭� + customMap.put("author", author); // 浣滆�呬俊鎭� customMap.put("packageName", BASE_PACKAGE + "." + MODULE_NAME); // 鍖呭悕 customMap.put("tableName", table); // 琛ㄥ悕 -- Gitblit v1.9.3