提交 68cdcf29 编写于 作者: JEECG低代码平台's avatar JEECG低代码平台

解决bug; demo redis测试功能,对象未序列号

上级 a8a9df5c
......@@ -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
......
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,8 +166,10 @@ public class SysPermissionServiceImpl extends ServiceImpl<SysPermissionMapper, S
//b.判断老的菜单下是否还有其他子菜单,没有的话则设置为叶子节点
int cc = this.count(new QueryWrapper<SysPermission>().lambda().eq(SysPermission::getParentId, p.getParentId()));
if(cc==0) {
if(oConvertUtils.isNotEmpty(p.getParentId())) {
this.sysPermissionMapper.setMenuLeaf(p.getParentId(), 1);
}
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册