liusheng
5 天以前 0bbbd746e8c39d91ad7b47a4e36e29ab972dc98c
smartor/src/main/resources/mapper/smartor/PatMedInspectionMapper.xml
@@ -98,7 +98,7 @@
    <select id="selectPatMedInspectionList" parameterType="com.smartor.domain.PatMedInspection"
            resultMap="PatMedInspectionResult">
        <include refid="selectPatMedInspectionVo"/>
        <where>
        where 1=1
            <if test="projecttype != null">and projecttype = #{projecttype}</if>
            <if test="inhospno != null">and inhospno = #{inhospno}</if>
            <if test="patidHis != null">and patid_his = #{patidHis}</if>
@@ -131,7 +131,10 @@
            <if test="partId != null">and part_id = #{partId}</if>
            <if test="partName != null">and part_name = #{partName}</if>
            <if test="typeId != null">and type_id = #{typeId}</if>
            <if test="typeName != null">and type_name = #{type}</if>
            <!-- 原为 `#{type}`:实体上只有 typeName(test 里用的也是 typeName),
                 `type` 不存在 —— 该分支一走到就抛
                 ReflectionException: no getter for 'type'。 -->
            <if test="typeName != null">and type_name = #{typeName}</if>
            <if test="filmFlag != null">and film_flag = #{filmFlag}</if>
            <if test="bedFlag != null">and bed_flag = #{bedFlag}</if>
            <if test="pushFlag != null">and push_flag = #{pushFlag}</if>
@@ -140,7 +143,6 @@
            <if test="pguid != null">and pguid = #{pguid}</if>
            <if test="guid != null">and guid = #{guid}</if>
            <if test="pid != null">and pid = #{pid}</if>
        </where>
--         order by update_time desc
    </select>