<?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.project.mapper.BaseAnnextypeMapper">
|
|
<resultMap type="com.ruoyi.project.domain.BaseAnnextype" id="BaseAnnextypeResult">
|
<result property="id" column="ID" />
|
<result property="donationcategory" column="donationcategory" />
|
<result property="annextype" column="annextype" />
|
<result property="annexname" column="annexname" />
|
<result property="need" column="need" />
|
<result property="seqno" column="seqno" />
|
<result property="remark" column="remark" />
|
<result property="del_flag" column="del_flag" />
|
<result property="createBy" column="create_by" />
|
<result property="createTime" column="create_time" />
|
<result property="updateBy" column="update_by" />
|
<result property="updateTime" column="update_time" />
|
</resultMap>
|
|
<sql id="selectBaseAnnextypeVo">
|
select ID, donationcategory, annextype, annexname, need, seqno, remark, del_flag, create_by, create_time, update_by, update_time from base_annextype
|
</sql>
|
|
<select id="selectBaseAnnextypeList" parameterType="com.ruoyi.project.domain.BaseAnnextype" resultMap="BaseAnnextypeResult">
|
<include refid="selectBaseAnnextypeVo"/>
|
<where>
|
<if test="donationcategory != null and donationcategory != ''"> and donationcategory = #{donationcategory}</if>
|
<if test="annextype != null and annextype != ''"> and annextype = #{annextype}</if>
|
<if test="annexname != null and annexname != ''"> and annexname like concat('%', #{annexname}, '%')</if>
|
<if test="need != null "> and need = #{need}</if>
|
<if test="seqno != null "> and seqno = #{seqno}</if>
|
</where>
|
</select>
|
|
</mapper>
|