Browse Source

caidan

feature/teamB_zz_wgh
jianjun 3 years ago
parent
commit
a63aae6650
  1. 4
      epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/redis/RedisKeys.java
  2. 31
      epmet-module/gov-access/gov-access-client/src/main/java/com/epmet/dto/GovMenuDTO.java
  3. 4
      epmet-module/gov-access/gov-access-server/src/main/resources/mapper/GovMenuDao.xml

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

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

31
epmet-module/gov-access/gov-access-client/src/main/java/com/epmet/dto/GovMenuDTO.java

@ -22,7 +22,6 @@ import com.epmet.dto.result.MenuResourceDTO;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
@ -77,36 +76,6 @@ public class GovMenuDTO extends TreeStringNode<GovMenuDTO> implements Serializab
*/
private Integer sort;
/**
* 删除标识0.未删除 1.已删除
*/
private Integer delFlag;
/**
* 乐观锁
*/
private Integer revision;
/**
* 创建人
*/
private String createdBy;
/**
* 创建时间
*/
private Date createdTime;
/**
* 更新人
*/
private String updatedBy;
/**
* 更新时间
*/
private Date updatedTime;
/**
* 菜单资源
*/

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

@ -47,8 +47,8 @@
select t1.*,
lang.field_value name
from gov_menu t1
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
INNER join gov_language lang on lang.table_name=#{tableName} and lang.field_name='name' and lang.table_id=t1.id and lang.language=#{language}
RIGHT 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