liusheng
10 天以前 44bb8eae303c8e92931925f82ff80a643e2072f2
smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml
@@ -928,6 +928,12 @@
            <if test="endtime != null">
                AND d.endtime = #{endtime}
            </if>
            <if test="drname != null and drname != ''">
                AND d.drname LIKE concat('%',#{drname}, '%')
            </if>
            <if test="drcode != null">
                AND d.drcode = #{drcode}
            </if>
            <if test="cry != null and cry == 0 ">and d.endtime is null</if>
            <if test="cry != null and cry == 1 ">and d.endtime is not null</if>
            <if test="visitno != null and visitno != ''">
@@ -1059,6 +1065,9 @@
            <if test="drname != null and drname != ''">
                AND d.drname LIKE concat('%',#{drname}, '%')
            </if>
            <if test="drcode != null">
                AND d.drcode = #{drcode}
            </if>
            <if test="pids != null">
                AND a.id NOT IN
                <foreach collection="pids" item="pid" open="(" separator="," close=")">