فهرست منبع

新增分类ID

周浩 9 سال پیش
والد
کامیت
785df5db36

+ 11 - 0
hsweb-web-bean/src/main/java/org/hsweb/web/bean/po/config/Config.java

@@ -30,6 +30,9 @@ public class Config extends GenericPo<String> {
     //配置类型: properties,json
     private String type;
 
+    //配置分类ID
+    private String classifiedId;
+
     /**
      * 获取 备注
      *
@@ -106,6 +109,14 @@ public class Config extends GenericPo<String> {
         this.type = type;
     }
 
+    public String getClassifiedId() {
+        return classifiedId;
+    }
+
+    public void setClassifiedId(String classifiedId) {
+        this.classifiedId = classifiedId;
+    }
+
     public Map<Object, Object> toMap() {
         switch (type) {
             case "properties":

+ 2 - 0
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/dao/impl/mybatis/mapper/mysql/config/ConfigMapper.xml

@@ -10,6 +10,7 @@
         <result property="content" column="content" javaType="String" jdbcType="VARCHAR"/>
         <result property="createDate" column="create_date" javaType="java.util.Date" jdbcType="TIMESTAMP"/>
         <result property="type" column="type" javaType="String" jdbcType="VARCHAR"/>
+        <result property="classifiedId" column="classified_id" javaType="String" jdbcType="VARCHAR"/>
     </resultMap>
 
     <!--字段信息配置-->
@@ -22,6 +23,7 @@
                     ,'create_date':#{'property':'createDate','jdbcType':'TIMESTAMP','javaType':'date'}
                     ,'update_date':#{'property':'updateDate','jdbcType':'TIMESTAMP','javaType':'date'}
                      ,'type':#{'jdbcType':'VARCHAR','javaType':'string'}
+                     ,classified_id':#{'property':'classifiedId','jdbcType':'VARCHAR','javaType':'string'}
                     }"/>
 
         <bind name="$fields" value="$fieldsInfo.keySet()"/>

+ 2 - 1
hsweb-web-dao-impl-mybatis/src/main/resources/org/hsweb/web/dao/impl/mybatis/mapper/oracle/config/ConfigMapper.xml

@@ -10,6 +10,7 @@
         <result property="content" column="content" javaType="String" jdbcType="VARCHAR"/>
         <result property="createDate" column="create_date" javaType="java.util.Date" jdbcType="TIMESTAMP"/>
         <result property="type" column="type" javaType="String" jdbcType="VARCHAR"/>
+        <result property="classifiedId" column="classified_id" javaType="String" jdbcType="VARCHAR"/>
     </resultMap>
 
     <!--字段信息配置-->
@@ -22,8 +23,8 @@
                     ,'create_date':#{'property':'createDate','jdbcType':'TIMESTAMP','javaType':'date'}
                     ,'update_date':#{'property':'updateDate','jdbcType':'TIMESTAMP','javaType':'date'}
                      ,'type':#{'jdbcType':'VARCHAR','javaType':'string'}
+                     ,classified_id':#{'property':'classifiedId','jdbcType':'VARCHAR','javaType':'string'}
                     }"/>
-
         <bind name="$fields" value="$fieldsInfo.keySet()"/>
     </sql>
     <!--表名-->