陈昶聿
7 天以前 9bd00d48acd7b80468b7eca0f6d8ec03a82191a9
smartor/src/main/resources/mapper/smartor/SvyTaskSingleMapper.xml
@@ -12,7 +12,7 @@
        <result property="age" column="age"/>
        <result property="sfzh" column="sfzh"/>
        <result property="addr" column="addr"/>
        <result property="senderdetail" column="senderdetail"/>
        <result property="hospitaldistrictname" column="hospitaldistrictname"/>
        <result property="type" column="type"/>
        <result property="taskid" column="taskid"/>
        <result property="templateid" column="templateid"/>
@@ -81,7 +81,7 @@
               age,
               sfzh,
               addr,
               senderdetail,
               hospitaldistrictname,
               type,
               taskid,
               templateid,
@@ -144,14 +144,14 @@
    <select id="selectSvyTaskSingleList" parameterType="com.smartor.domain.SvyTaskSingle"
            resultMap="SvyTaskSingleResult">
        <include refid="selectSvyTaskSingleVo"/>
        <where>
        where 1=1
            <if test="sendname != null  and sendname != ''">and sendname like concat('%', #{sendname}, '%')</if>
            <if test="phone != null  and phone != ''">and phone = #{phone}</if>
            <if test="sex != null  and sex != ''">and sex = #{sex}</if>
            <if test="age != null ">and age = #{age}</if>
            <if test="sfzh != null  and sfzh != ''">and sfzh = #{sfzh}</if>
            <if test="addr != null  and addr != ''">and addr = #{addr}</if>
            <if test="senderdetail != null  and senderdetail != ''">and senderdetail = #{senderdetail}</if>
            <if test="hospitaldistrictname != null  and hospitaldistrictname != ''">and hospitaldistrictname = #{hospitaldistrictname}</if>
            <if test="type != null  and type != ''">and type = #{type}</if>
            <if test="taskid != null ">and taskid = #{taskid}</if>
            <if test="templateid != null  and templateid != ''">and templateid = #{templateid}</if>
@@ -207,7 +207,6 @@
            <if test="roomno != null  and roomno != ''">and roomno = #{roomno}</if>
            <if test="bedno != null  and bedno != ''">and bedno = #{bedno}</if>
            <if test="patid != null ">and patid = #{patid}</if>
        </where>
    </select>
    <select id="selectSvyTaskSingleById" parameterType="Long" resultMap="SvyTaskSingleResult">
@@ -225,7 +224,7 @@
            <if test="age != null">age,</if>
            <if test="sfzh != null">sfzh,</if>
            <if test="addr != null">addr,</if>
            <if test="senderdetail != null">senderdetail,</if>
            <if test="hospitaldistrictname != null">hospitaldistrictname,</if>
            <if test="type != null">type,</if>
            <if test="taskid != null">taskid,</if>
            <if test="templateid != null">templateid,</if>
@@ -291,7 +290,7 @@
            <if test="age != null">#{age},</if>
            <if test="sfzh != null">#{sfzh},</if>
            <if test="addr != null">#{addr},</if>
            <if test="senderdetail != null">#{senderdetail},</if>
            <if test="hospitaldistrictname != null">#{hospitaldistrictname},</if>
            <if test="type != null">#{type},</if>
            <if test="taskid != null">#{taskid},</if>
            <if test="templateid != null">#{templateid},</if>
@@ -361,7 +360,7 @@
            <if test="age != null">age = #{age},</if>
            <if test="sfzh != null">sfzh = #{sfzh},</if>
            <if test="addr != null">addr = #{addr},</if>
            <if test="senderdetail != null">senderdetail = #{senderdetail},</if>
            <if test="hospitaldistrictname != null">hospitaldistrictname = #{hospitaldistrictname},</if>
            <if test="type != null">type = #{type},</if>
            <if test="taskid != null">taskid = #{taskid},</if>
            <if test="templateid != null">templateid = #{templateid},</if>