java110 лет назад: 5
Родитель
Сommit
2be6ee5826

+ 9 - 0
java110-bean/src/main/java/com/java110/dto/menuGroup/MenuGroupDto.java

@@ -13,6 +13,7 @@ public class MenuGroupDto extends PageDto implements Serializable {
     private String seq;
     private String description;
     private String statusCd;
+    private String groupType;
 
     public String getGId() {
         return gId;
@@ -77,4 +78,12 @@ public class MenuGroupDto extends PageDto implements Serializable {
     public void setgId(String gId) {
         this.gId = gId;
     }
+
+    public String getGroupType() {
+        return groupType;
+    }
+
+    public void setGroupType(String groupType) {
+        this.groupType = groupType;
+    }
 }

+ 7 - 1
java110-bean/src/main/java/com/java110/vo/api/menuGroup/ApiMenuGroupDataVo.java

@@ -1,7 +1,6 @@
 package com.java110.vo.api.menuGroup;
 
 import java.io.Serializable;
-import java.util.Date;
 
 public class ApiMenuGroupDataVo implements Serializable {
 
@@ -11,6 +10,7 @@ public class ApiMenuGroupDataVo implements Serializable {
     private String label;
     private String seq;
     private String description;
+    private String groupType;
 
     public String getGId() {
         return gId;
@@ -68,5 +68,11 @@ public class ApiMenuGroupDataVo implements Serializable {
         this.gId = gId;
     }
 
+    public String getGroupType() {
+        return groupType;
+    }
 
+    public void setGroupType(String groupType) {
+        this.groupType = groupType;
+    }
 }

+ 13 - 3
java110-db/src/main/resources/mapper/community/MenuServiceDaoImplMapper.xml

@@ -8,9 +8,9 @@
     <!-- 保存路由信息至 instance表中 add by wuxw 2018-07-03 -->
     <insert id="saveMenuGroupInfo" parameterType="Map">
         insert into m_menu_group(
-        g_id,name,icon,label,seq,description
+        g_id,name,icon,label,seq,description,group_type
         ) values (
-        #{gId},#{name},#{icon},#{label},#{seq},#{description}
+        #{gId},#{name},#{icon},#{label},#{seq},#{description},#{groupType}
         )
 
     </insert>
@@ -18,7 +18,7 @@
 
     <!-- 查询路由信息 add by wuxw 2018-07-03 -->
     <select id="getMenuGroupInfo" parameterType="Map" resultType="Map">
-        select t.g_id,t.name,t.icon,t.label,t.seq,t.description,t.g_id gId
+        select t.g_id,t.name,t.icon,t.label,t.seq,t.description,t.g_id gId,t.group_type groupType
         from m_menu_group t
         where t.status_cd= '0'
         <if test="gId !=null and gId != ''">
@@ -33,9 +33,13 @@
         <if test="label !=null and label != ''">
             and t.label= #{label}
         </if>
+        <if test="groupType !=null and groupType != ''">
+            and t.group_type= #{groupType}
+        </if>
         <if test="seq !=null">
             and t.seq= #{seq}
         </if>
+
         <if test="description !=null and description != ''">
             and t.description= #{description}
         </if>
@@ -60,6 +64,9 @@
             <if test="icon !=null and icon != ''">
                 t.icon= #{icon},
             </if>
+            <if test="groupType !=null and groupType != ''">
+                t.group_type= #{groupType},
+            </if>
             <if test="label !=null ">
                 t.label= #{label},
             </if>
@@ -88,6 +95,9 @@
         <if test="icon !=null and icon != ''">
             and t.icon= #{icon}
         </if>
+        <if test="groupType !=null and groupType != ''">
+            and t.group_type= #{groupType}
+        </if>
         <if test="statusCd !=null and statusCd != ''">
             and t.status_cd= #{statusCd}
         </if>