Przeglądaj źródła

fix(wechat): 处理微信公众号菜单无法保存及获取问题

KingMo 3 lat temu
rodzic
commit
1e943f4add

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

@@ -11,9 +11,9 @@
     <!-- 保存微信菜单信息 add by wuxw 2018-07-03 -->
     <insert id="saveWechatMenuInfo" parameterType="Map">
         insert into wechat_menu(
-pagepath,parent_menu_id,app_id,menu_level,menu_name,menu_type,menu_value,seq,wechat_menu_id
+pagepath,parent_menu_id,app_id,menu_level,menu_name,menu_type,menu_value,seq,wechat_menu_id,community_id
 ) values (
-#{pagepath},#{parentMenuId},#{appId},#{menuLevel},#{menuName},#{menuType},#{menuValue},#{seq},#{wechatMenuId}
+#{pagepath},#{parentMenuId},#{appId},#{menuLevel},#{menuName},#{menuType},#{menuValue},#{seq},#{wechatMenuId},#{communityId}
 )
     </insert>
 
@@ -51,7 +51,7 @@ where 1 =1
 <if test="wechatMenuId !=null and wechatMenuId != ''">
    and t.wechat_menu_id= #{wechatMenuId}
 </if> 
-order by t.create_time desc
+order by t.seq asc
 <if test="page != -1 and page != null ">
    limit #{page}, #{row}
 </if>