From 96eef805a3727639794ea90bfa82b3883f9f3d9c Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期六, 31 五月 2025 10:48:45 +0800
Subject: [PATCH] 省市区处理

---
 ruoyi-admin/src/main/java/com/ruoyi/PlusCodeGenerator.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/PlusCodeGenerator.java b/ruoyi-admin/src/main/java/com/ruoyi/PlusCodeGenerator.java
index 196735f..3b33d93 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/PlusCodeGenerator.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/PlusCodeGenerator.java
@@ -28,9 +28,9 @@
 public class PlusCodeGenerator {
 
     // 鏁版嵁搴撻厤缃�
-    private static final String DB_URL = "jdbc:postgresql://lunor.cn:5431/ruoyi-java";
-    private static final String DB_USERNAME = "test";
-    private static final String DB_PASSWORD = "chj123456";
+    private static final String DB_URL = "jdbc:postgresql://localhost:5432/ruoyi-java";
+    private static final String DB_USERNAME = "postgres";
+    private static final String DB_PASSWORD = "root";
 
     // 椤圭洰鍩虹閰嶇疆
     private static final String BASE_PACKAGE = "com.ruoyi";
@@ -38,8 +38,8 @@
 
     public static void main(String[] args) {
         String projectPath = System.getProperty("user.dir"); // 鑾峰彇椤圭洰鏍硅矾寰�
-        String path = "basic-server"; // 妯″潡鍚嶇О
-        String table = "test"; // 琛ㄥ悕锛屽涓〃閫楀彿闅斿紑
+        String path = "ruoyi-system"; // 妯″潡鍚嶇О
+        String table = "province,city,district"; // 琛ㄥ悕锛屽涓〃閫楀彿闅斿紑
 
         // 浠g爜杈撳嚭璺緞閰嶇疆
         String outputBasePath = Paths.get(projectPath, path, "src", "main", "java").toString();
@@ -48,7 +48,7 @@
         // 浠g爜鐢熸垚鏍稿績閰嶇疆
         FastAutoGenerator.create(DB_URL, DB_USERNAME, DB_PASSWORD)
                 .globalConfig(builder -> {
-                    builder.author("ruoyi") // 浣滆�呬俊鎭�
+                    builder.author("chenhj") // 浣滆�呬俊鎭�
                             .outputDir(outputBasePath) // 浠g爜杈撳嚭鐩綍
                             .dateType(DateType.ONLY_DATE) // 鏃ユ湡绫诲瀷
                             .commentDate("yyyy-MM-dd") // 娉ㄩ噴鏃ユ湡鏍煎紡
@@ -56,7 +56,7 @@
                 })
                 .packageConfig(builder -> {
                     builder.parent(BASE_PACKAGE) // 鍩虹鍖呭悕
-                            .moduleName(MODULE_NAME) // 妯″潡鍚�
+                            .moduleName(MODULE_NAME) // 妯″潡鍚嶏紙鏍规嵁鍏蜂綋淇敼锛�
                             .entity("entity") // Entity鍖呭悕
                             .mapper("mapper") // Mapper鍖呭悕
                             .service("service") // Service鍖呭悕

--
Gitblit v1.9.3