新增权限模块代码 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 @Override
public List<SysPermissionVo> findListPage(SysPermissionVo vo) { public List<SysPermissionVo> findListPage(SysPermissionVo vo) {
return null; return sysPermissionDao.findListPage(vo);
} }
@Override @Override
public int count(SysPermissionVo vo) { public int count(SysPermissionVo vo) {
return 0; return sysPermissionDao.count(vo);
} }
@Override @Override

@ -20,7 +20,13 @@
WHERE status = 1 WHERE status = 1
</select> </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) SELECT count(id)
FROM sys_permission FROM sys_permission
WHERE status = 1 WHERE status = 1

Loading…
Cancel
Save