新增权限模块代码 2.0

master
星期八 5 years ago
parent ff44e19af9
commit dd2d440845
  1. 4
      src/main/java/com/lq/cms/service/impl/SysPermissionServiceImpl.java
  2. 8
      src/main/resources/mybatis/mapping/SysPermissionDao.xml

@ -24,12 +24,12 @@ public class SysPermissionServiceImpl extends BaseServiceImpl<SysPermission> imp
@Override
public List<SysPermissionVo> findListPage(SysPermissionVo vo) {
return null;
return sysPermissionDao.findListPage(vo);
}
@Override
public int count(SysPermissionVo vo) {
return 0;
return sysPermissionDao.count(vo);
}
@Override

@ -20,7 +20,13 @@
WHERE status = 1
</select>
<select id="count" resultType="int">
<select id="findListPage" resultType="SysPermissionVo" parameterType="SysPermissionVo">
SELECT <include refid="column_list"/>
FROM sys_permission
WHERE status = 1
</select>
<select id="count" resultType="int" parameterType="SysPermissionVo">
SELECT count(id)
FROM sys_permission
WHERE status = 1

Loading…
Cancel
Save