liusheng
6 天以前 cc479e6a056785103996cc7ea67dbd5faa3e800e
smartor/src/main/resources/mapper/smartor/PatMedInspectionMapper.xml
@@ -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>