<?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.ruoyi.other.mapper.TEvaluationTagMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="BaseResultMap" type="com.ruoyi.other.api.domain.TEvaluationTag">
|
<id column="id" property="id" />
|
<result column="`name`" property="name" />
|
<result column="`type`" property="type" />
|
<result column="create_time" property="createTime" />
|
<result column="del_flag" property="delFlag" />
|
</resultMap>
|
|
<!-- 通用查询结果列 -->
|
<sql id="Base_Column_List">
|
id, `name`, `type`, create_time, del_flag
|
</sql>
|
<select id="getTagList" resultType="com.ruoyi.other.api.vo.TEvaluationTagVO">
|
select <include refid="Base_Column_List"></include>
|
from t_evaluation_tag where del_flag = ${@com.ruoyi.common.core.enums.DelFlagEnum@NO.getCode()}
|
<if test="null != type">
|
and `type` = #{type}
|
</if>
|
ORDER BY `type`
|
</select>
|
|
|
|
<select id="pageList" resultType="com.ruoyi.other.api.domain.TEvaluationTag">
|
select * from t_evaluation_tag where del_flag = 0
|
<if test="null != name and '' != name">
|
and name like CONCAT('%', #{name}, '%')
|
</if>
|
order by create_time desc
|
</select>
|
<select id="getList" resultType="com.ruoyi.other.api.vo.TEvaluationTagVO">
|
select <include refid="Base_Column_List"></include>
|
from t_evaluation_tag where del_flag = ${@com.ruoyi.common.core.enums.DelFlagEnum@NO.getCode()}
|
</select>
|
</mapper>
|