Browse Source

获取菜单时 使用inner 过滤掉名字

feature/teamB_zz_wgh
jianjun 3 years ago
parent
commit
aeba5fdd24
  1. 2
      epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/redis/RedisKeys.java
  2. 7
      epmet-module/gov-access/gov-access-server/src/main/resources/mapper/GovMenuDao.xml

2
epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/redis/RedisKeys.java

@ -753,7 +753,7 @@ public class RedisKeys {
* @return
*/
public static String getCustomerMenuListPrefix() {
return rootPrefix.concat("oper:access:nav:customerId:");
return rootPrefix.concat("gov:access:nav:customerId:");
}
/**

7
epmet-module/gov-access/gov-access-server/src/main/resources/mapper/GovMenuDao.xml

@ -44,10 +44,11 @@
</select>
<select id="getCustomerMenuList" resultType="com.epmet.entity.GovMenuEntity">
select t1.*, (select lang.field_value from gov_language lang where lang.table_name=#{tableName} and lang.field_name='name'
and lang.table_id=t1.id and lang.language=#{language}) as name
select t1.*,
lang.field_value name
from gov_menu t1
RIGHT JOIN gov_customer_menu m ON t1.id = m.TABLE_ID
inner join gov_language lang on lang.table_name=#{tableName} and lang.field_name='name'
INNER JOIN gov_customer_menu m ON t1.id = m.TABLE_ID
where t1.del_flag = 0 AND m.del_flag = 0
<if test="type != null">
and t1.type = #{type}

Loading…
Cancel
Save