<?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.ServiceDonateorganstaticsMapper">
|
|
<resultMap type="com.ruoyi.project.domain.ServiceDonateorganstatics" id="ServiceDonateorganstaticsResult">
|
<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="hospitalC22" column="hospital_C22"/>
|
<result property="feeC22" column="fee_C22"/>
|
<result property="hospitalC22l" column="hospital_C22L"/>
|
<result property="feeC22l" column="fee_C22L"/>
|
<result property="hospitalC22le" column="hospital_C22LE"/>
|
<result property="feeC22le" column="fee_C22LE"/>
|
<result property="hospitalC22r" column="hospital_C22R"/>
|
<result property="feeC22r" column="fee_C22R"/>
|
<result property="hospitalC64l" column="hospital_C64L"/>
|
<result property="feeC64l" column="fee_C64L"/>
|
<result property="hospitalC64r" column="hospital_C64R"/>
|
<result property="feeC64r" column="fee_C64R"/>
|
<result property="hospitalC38" column="hospital_C38"/>
|
<result property="feeC38" column="fee_C38"/>
|
<result property="hospitalC34" column="hospital_C34"/>
|
<result property="feeC34" column="fee_C34"/>
|
<result property="hospitalC34l" column="hospital_C34L"/>
|
<result property="feeC34l" column="fee_C34L"/>
|
<result property="hospitalC34r" column="hospital_C34R"/>
|
<result property="feeC34r" column="fee_C34R"/>
|
<result property="hospitalC17" column="hospital_C17"/>
|
<result property="feeC17" column="fee_C17"/>
|
<result property="hospitalC69l" column="hospital_C69L"/>
|
<result property="feeC69l" column="fee_C69L"/>
|
<result property="hospitalC69r" column="hospital_C69R"/>
|
<result property="feeC69r" column="fee_C69R"/>
|
<result property="hospitalC01" column="hospital_C01"/>
|
<result property="feeC01" column="fee_C01"/>
|
<result property="unitBody" column="unit_body"/>
|
<result property="feeCount" column="fee_count"/>
|
</resultMap>
|
|
<sql id="selectServiceDonateorganstaticsVo">
|
select id,
|
infoid,
|
donateno,
|
donatetime,
|
name,
|
borthdate,
|
sex,
|
age,
|
DonationCategory,
|
hospital_C22,
|
fee_C22,
|
hospital_C22L,
|
fee_C22L,
|
hospital_C22LE,
|
fee_C22LE,
|
hospital_C22R,
|
fee_C22R,
|
hospital_C64L,
|
fee_C64L,
|
hospital_C64R,
|
fee_C64R,
|
hospital_C38,
|
fee_C38,
|
hospital_C34,
|
fee_C34,
|
hospital_C34L,
|
fee_C34L,
|
hospital_C34R,
|
fee_C34R,
|
hospital_C17,
|
fee_C17,
|
hospital_C69L,
|
fee_C69L,
|
hospital_C69R,
|
fee_C69R,
|
hospital_C01,
|
fee_C01,
|
unit_body,
|
fee_count
|
from service_donateorganstatics
|
</sql>
|
|
<select id="selectServiceDonateorganstaticsList" parameterType="com.ruoyi.project.domain.ServiceDonateorganstatics"
|
resultMap="ServiceDonateorganstaticsResult">
|
<include refid="selectServiceDonateorganstaticsVo"/>
|
<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="hospitalC22 != null and hospitalC22 != ''">and hospital_C22 = #{hospitalC22}</if>
|
<if test="feeC22 != null ">and fee_C22 = #{feeC22}</if>
|
<if test="hospitalC22l != null and hospitalC22l != ''">and hospital_C22L = #{hospitalC22l}</if>
|
<if test="feeC22l != null ">and fee_C22L = #{feeC22l}</if>
|
<if test="hospitalC22le != null and hospitalC22le != ''">and hospital_C22LE = #{hospitalC22le}</if>
|
<if test="feeC22le != null ">and fee_C22LE = #{feeC22le}</if>
|
<if test="hospitalC22r != null and hospitalC22r != ''">and hospital_C22R = #{hospitalC22r}</if>
|
<if test="feeC22r != null ">and fee_C22R = #{feeC22r}</if>
|
<if test="hospitalC64l != null and hospitalC64l != ''">and hospital_C64L = #{hospitalC64l}</if>
|
<if test="feeC64l != null ">and fee_C64L = #{feeC64l}</if>
|
<if test="hospitalC64r != null and hospitalC64r != ''">and hospital_C64R = #{hospitalC64r}</if>
|
<if test="feeC64r != null ">and fee_C64R = #{feeC64r}</if>
|
<if test="hospitalC38 != null and hospitalC38 != ''">and hospital_C38 = #{hospitalC38}</if>
|
<if test="feeC38 != null ">and fee_C38 = #{feeC38}</if>
|
<if test="hospitalC34 != null and hospitalC34 != ''">and hospital_C34 = #{hospitalC34}</if>
|
<if test="feeC34 != null ">and fee_C34 = #{feeC34}</if>
|
<if test="hospitalC34l != null and hospitalC34l != ''">and hospital_C34L = #{hospitalC34l}</if>
|
<if test="feeC34l != null ">and fee_C34L = #{feeC34l}</if>
|
<if test="hospitalC34r != null and hospitalC34r != ''">and hospital_C34R = #{hospitalC34r}</if>
|
<if test="feeC34r != null ">and fee_C34R = #{feeC34r}</if>
|
<if test="hospitalC17 != null and hospitalC17 != ''">and hospital_C17 = #{hospitalC17}</if>
|
<if test="feeC17 != null ">and fee_C17 = #{feeC17}</if>
|
<if test="hospitalC69l != null and hospitalC69l != ''">and hospital_C69L = #{hospitalC69l}</if>
|
<if test="feeC69l != null ">and fee_C69L = #{feeC69l}</if>
|
<if test="hospitalC69r != null and hospitalC69r != ''">and hospital_C69R = #{hospitalC69r}</if>
|
<if test="feeC69r != null ">and fee_C69R = #{feeC69r}</if>
|
<if test="hospitalC01 != null and hospitalC01 != ''">and hospital_C01 = #{hospitalC01}</if>
|
<if test="feeC01 != null ">and fee_C01 = #{feeC01}</if>
|
<if test="unitBody != null and unitBody != ''">and unit_body = #{unitBody}</if>
|
<if test="feeCount != null ">and fee_count = #{feeCount}</if>
|
</where>
|
</select>
|
|
</mapper>
|