<?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.ServiceDonorchargeMapper">
|
|
<resultMap type="com.ruoyi.project.domain.ServiceDonorcharge" id="ServiceDonorchargeResult">
|
<result property="id" column="id"/>
|
<result property="infoid" column="infoid"/>
|
<result property="donateno" column="donateno"/>
|
<result property="donatetime" column="donatetime"/>
|
<result property="name" column="name"/>
|
<result property="borthdate" column="borthdate"/>
|
<result property="sex" column="sex"/>
|
<result property="age" column="age"/>
|
<result property="donationcategory" column="DonationCategory"/>
|
<result property="donateorgan" column="donateorgan"/>
|
<result property="chargeamount" column="chargeamount"/>
|
<result property="chargeamounted" column="chargeamounted"/>
|
<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="selectServiceDonorchargeVo">
|
select id,
|
infoid,
|
donateno,
|
donatetime,
|
name,
|
borthdate,
|
sex,
|
age,
|
DonationCategory,
|
donateorgan,
|
chargeamount,
|
chargeamounted,
|
remark,
|
del_flag,
|
create_by,
|
create_time,
|
update_by,
|
update_time
|
from service_donorcharge
|
</sql>
|
|
<select id="selectServiceDonorchargeList" parameterType="com.ruoyi.project.domain.ServiceDonorcharge"
|
resultMap="ServiceDonorchargeResult">
|
<include refid="selectServiceDonorchargeVo"/>
|
<where>
|
<if test="infoid != null ">and infoid = #{infoid}</if>
|
<if test="donateno != null and donateno != ''">and donateno = #{donateno}</if>
|
<if test="donatetime != null ">and donatetime = #{donatetime}</if>
|
<if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if>
|
<if test="borthdate != null ">and borthdate = #{borthdate}</if>
|
<if test="sex != null and sex != ''">and sex = #{sex}</if>
|
<if test="age != null and age != ''">and age = #{age}</if>
|
<if test="donationcategory != null and donationcategory != ''">and DonationCategory = #{donationcategory}
|
</if>
|
<if test="donateorgan != null and donateorgan != ''">and donateorgan = #{donateorgan}</if>
|
<if test="chargeamount != null ">and chargeamount = #{chargeamount}</if>
|
<if test="chargeamounted != null ">and chargeamounted = #{chargeamounted}</if>
|
</where>
|
</select>
|
|
</mapper>
|