liusheng
3 天以前 38e0cad3107b0a43e9afac4e5e55cf769e84d01c
smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml
@@ -393,12 +393,13 @@
        a.leavehospitaldistrictcode,
        a.leavehospitaldistrictname,
        a.diagname
        <if test="serviceType != null  and serviceType != ''and serviceType != '2'and serviceType != '3'">order by
            a.long_send_time desc
        order by a.visit_time desc
        <if test="serviceType != null  and serviceType != ''and serviceType != '2'and serviceType != '3'">
            ,a.long_send_time desc
        </if>
        <if test="serviceType != null  and serviceType != ''and serviceType == '2'">order by a.endtime desc</if>
        <if test="serviceType != null  and serviceType != ''and serviceType == '3'">order by a.admindate desc</if>
        -- order by update_time desc,id desc
        <if test="serviceType != null  and serviceType != ''and serviceType == '2'">,a.endtime desc</if>
        <if test="serviceType != null  and serviceType != ''and serviceType == '3'">,a.admindate desc</if>
    </select>
@@ -715,6 +716,7 @@
            <if test="suggest != null ">suggest=#{suggest},</if>
            <if test="inhospid != null ">inhospid=#{inhospid},</if>
            <if test="visitTime != null ">visitTime=#{visitTime},</if>
            <if test="delFlag != null ">del_flag=#{delFlag},</if>
        </trim>
        <where>
            <if test="patid != null ">patid=#{patid}</if>