Sfoglia il codice sorgente

微信菜单加入 type

java110 5 anni fa
parent
commit
e1677f562e

+ 9 - 0
java110-bean/src/main/java/com/java110/dto/wechatMenu/WechatMenuDto.java

@@ -27,6 +27,7 @@ public class WechatMenuDto extends PageDto implements Serializable {
     private String wechatMenuId;
     private String parentMenuId;
     private String seq;
+    private String menuTypeName;
 
 
     private Date createTime;
@@ -130,4 +131,12 @@ public class WechatMenuDto extends PageDto implements Serializable {
     public void setSeq(String seq) {
         this.seq = seq;
     }
+
+    public String getMenuTypeName() {
+        return menuTypeName;
+    }
+
+    public void setMenuTypeName(String menuTypeName) {
+        this.menuTypeName = menuTypeName;
+    }
 }

+ 3 - 1
java110-db/src/main/resources/mapper/store/WechatMenuServiceDaoImplMapper.xml

@@ -101,8 +101,9 @@
         select t.pagepath,t.app_id,t.app_id appId,t.menu_level,t.menu_level menuLevel,t.menu_name,t.menu_name
         menuName,t.menu_type,t.menu_type menuType,t.menu_value,t.menu_value menuValue,t.status_cd,t.status_cd
         statusCd,t.b_id,t.b_id bId,t.community_id,t.community_id communityId,t.wechat_menu_id,t.wechat_menu_id
-        wechatMenuId,t.parent_menu_id,t.parent_menu_id parentMenuId,t.seq
+        wechatMenuId,t.parent_menu_id,t.parent_menu_id parentMenuId,t.seq,d.name menuTypeName
         from wechat_menu t
+        left join t_dict d on t.menu_type = d.status_cd and d.table_name = 'wechat_menu' and d.table_columns = 'menu_type'
         where 1 =1
         <if test="pagepath !=null and pagepath != ''">
             and t.pagepath= #{pagepath}
@@ -196,6 +197,7 @@
     <select id="queryWechatMenusCount" parameterType="Map" resultType="Map">
         select count(1) count
         from wechat_menu t
+        left join t_dict d on t.menu_type = d.status_cd and d.table_name = 'wechat_menu' and d.table_columns = 'menu_type'
         where 1 =1
         <if test="pagepath !=null and pagepath != ''">
             and t.pagepath= #{pagepath}