mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 22:29:19 +08:00
wip: 新增电商模块
This commit is contained in:
@@ -1,50 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="top.xyquan.ecomdmbbackend.modules.sys.mapper.PermissionMapper">
|
||||
|
||||
<!-- 权限结果映射 -->
|
||||
<resultMap id="PermissionResultMap" type="top.xyquan.ecomdmbbackend.modules.sys.model.po.PermissionPO">
|
||||
<id column="id" property="id"/>
|
||||
<result column="code" property="code"/>
|
||||
<result column="name" property="name"/>
|
||||
<result column="type" property="type"/>
|
||||
<result column="status" property="status"/>
|
||||
<result column="remark" property="remark"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
<result column="create_by" property="createBy"/>
|
||||
<result column="update_by" property="updateBy"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 分页查询权限列表 -->
|
||||
<select id="selectPermissionPage" resultMap="PermissionResultMap">
|
||||
SELECT
|
||||
id,
|
||||
code,
|
||||
name,
|
||||
type,
|
||||
status,
|
||||
remark,
|
||||
create_time,
|
||||
update_time,
|
||||
create_by,
|
||||
update_by
|
||||
FROM sys_permission
|
||||
<where>
|
||||
<if test="code != null and code != ''">
|
||||
AND code LIKE CONCAT('%', #{code}, '%')
|
||||
</if>
|
||||
<if test="name != null and name != ''">
|
||||
AND name LIKE CONCAT('%', #{name}, '%')
|
||||
</if>
|
||||
<if test="type != null and type != ''">
|
||||
AND type = #{type}
|
||||
</if>
|
||||
<if test="status != null">
|
||||
AND status = #{status}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY create_time DESC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user