瀏覽代碼

优化医生端处方查询

cgp 1 周之前
父節點
當前提交
7df8be2906
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs-service/src/main/resources/mapper/his/FsPrescribeMapper.xml

+ 1 - 1
fs-service/src/main/resources/mapper/his/FsPrescribeMapper.xml

@@ -325,7 +325,7 @@
             <if test="auditSTime != null ">  and DATE(so.audit_time) &gt;= DATE(#{auditSTime})</if>
             <if test="auditETime != null ">  and DATE(so.audit_time) &lt;= DATE(#{auditETime})</if>
             <if test="auditTime != null "> and so.audit_time = #{auditTime}</if>
-            <if test="orderCode != null "> and fso.order_code = #{orderCode}</if>
+            <if test="orderCode != null  and orderCode != ''"> and fso.order_code = #{orderCode}</if>
             <if test="orderStatus != null "> and fso.`status` = #{orderStatus}</if>
             <if test="storeId != null "> and so.store_id = #{storeId}</if>
         </where>