mirror of https://github.com/jeecgboot/jeecg-boot
解决bug; demo redis测试功能,对象未序列号
parent
a8a9df5cd4
commit
68cdcf299d
|
@ -125,7 +125,7 @@ Jeecg-Boot快速开发平台,可以应用在任何J2EE项目的开发中,尤
|
|||
|
||||
- 依赖管理:Maven
|
||||
|
||||
- 数据库:MySQL5.0+ & Oracle 11g & Sqlserver2008
|
||||
- 数据库:MySQL5.0 & Oracle 11g & Sqlserver2005
|
||||
|
||||
- 缓存:Redis
|
||||
|
||||
|
|
|
@ -68,6 +68,8 @@ public class ShiroConfig {
|
|||
filterChainDefinitionMap.put("/actuator/metrics/**", "anon");
|
||||
filterChainDefinitionMap.put("/actuator/httptrace/**", "anon");
|
||||
filterChainDefinitionMap.put("/actuator/redis/**", "anon");
|
||||
filterChainDefinitionMap.put("/test/jeecgDemo/demo3", "anon"); //模板测试
|
||||
filterChainDefinitionMap.put("/test/jeecgDemo/redisDemo/**", "anon"); //redis测试
|
||||
|
||||
|
||||
// 添加自己的过滤器并且取名为jwt
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package org.jeecg.modules.demo.test.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.jeecg.common.system.base.entity.JeecgEntity;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
@ -24,8 +26,8 @@ import lombok.experimental.Accessors;
|
|||
@Accessors(chain = true)
|
||||
@ApiModel(value="测试DEMO对象", description="测试DEMO")
|
||||
@TableName("demo")
|
||||
public class JeecgDemo extends JeecgEntity {
|
||||
|
||||
public class JeecgDemo extends JeecgEntity implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
/** 部门编码 */
|
||||
@Excel(name="部门编码",width=25)
|
||||
@ApiModelProperty(value = "部门编码")
|
||||
|
|
|
@ -166,7 +166,9 @@ public class SysPermissionServiceImpl extends ServiceImpl<SysPermissionMapper, S
|
|||
//b.判断老的菜单下是否还有其他子菜单,没有的话则设置为叶子节点
|
||||
int cc = this.count(new QueryWrapper<SysPermission>().lambda().eq(SysPermission::getParentId, p.getParentId()));
|
||||
if(cc==0) {
|
||||
this.sysPermissionMapper.setMenuLeaf(p.getParentId(), 1);
|
||||
if(oConvertUtils.isNotEmpty(p.getParentId())) {
|
||||
this.sysPermissionMapper.setMenuLeaf(p.getParentId(), 1);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue