68 lines
2.7 KiB
XML
68 lines
2.7 KiB
XML
<?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="com.message.api.group.dao.AcActionMapper">
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
<resultMap id="BaseResultMap" type="com.message.api.group.entity.AcAction">
|
|
<id column="id" property="id"/>
|
|
<result column="name" property="name"/>
|
|
<result column="action" property="action"/>
|
|
<result column="show" property="show"/>
|
|
<result column="edit" property="edit"/>
|
|
<result column="moduleid" property="moduleid"/>
|
|
<result column="description" property="description"/>
|
|
<result column="createtime" property="createtime"/>
|
|
<result column="actionnumber" property="actionnumber"/>
|
|
<result column="state" property="state"/>
|
|
<result column="link" property="link"/>
|
|
<result column="icon" property="icon"/>
|
|
</resultMap>
|
|
|
|
<!-- 通用查询结果列 -->
|
|
<sql id="Base_Column_List">
|
|
id, name, action,
|
|
show, edit, moduleid, description, createtime, actionnumber, state, link, icon
|
|
</sql>
|
|
|
|
<select id="findByAction" resultMap="BaseResultMap" parameterType="java.lang.String">
|
|
select
|
|
<include refid="Base_Column_List"/>
|
|
FROM ac_action where action = #{action} and state = '1'
|
|
</select>
|
|
|
|
<select id="findByExample" resultType="com.message.api.group.vo.AcActionVo"
|
|
parameterType="com.message.api.group.vo.AcActionVo">
|
|
select id,
|
|
name,
|
|
action,
|
|
show,
|
|
edit,
|
|
moduleid,
|
|
module_name,
|
|
description,
|
|
createtime,
|
|
actionnumber,
|
|
state,
|
|
link,
|
|
icon
|
|
from (select ac_action.id as id,
|
|
ac_action.name as name,
|
|
ac_action.action as action,
|
|
ac_action.show as show,
|
|
ac_action.edit as edit,
|
|
ac_action.moduleid as moduleid,
|
|
ac_module.name as module_name,
|
|
ac_action.description as description,
|
|
ac_action.createtime as createtime,
|
|
ac_action.actionnumber as actionnumber,
|
|
ac_action.state as state,
|
|
ac_action.link as link,
|
|
ac_action.icon as icon
|
|
FROM ac_action
|
|
left join ac_module on ac_action.moduleid = ac_module.id) t
|
|
${ew.customSqlSegment}
|
|
</select>
|
|
|
|
|
|
</mapper>
|