浏览代码

处方分析(新都)- 根据疾病证型西医疾病ID搜索

guowei 2 年之前
父节点
当前提交
e2ee9bde5f
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      cbkj_web_api/src/main/resources/mappers/statistics/PrescriptionStatisticsMapper.xml

+ 9 - 0
cbkj_web_api/src/main/resources/mappers/statistics/PrescriptionStatisticsMapper.xml

@@ -156,15 +156,24 @@
             <if test="preNo != null and preNo != ''">
                 and p.PRE_NO = #{preNo}
             </if>
+            <if test="disId != null and disId != ''">
+                and r.DIS_ID = #{disId}
+            </if>
             <if test="disName != null and disName != ''">
                 and r.DIS_NAME like CONCAT('%', #{disName}, '%')
             </if>
+            <if test="symId != null and symId != ''">
+                and r.SYM_ID = #{symId}
+            </if>
             <if test="symName != null and symName != ''">
                 and r.SYM_NAME like CONCAT('%', #{symName}, '%')
             </if>
             <if test="theNames != null and theNames != ''">
                 and r.THE_NAMES like CONCAT('%', #{theNames}, '%')
             </if>
+            <if test="westernDiseaseId != null and westernDiseaseId != ''">
+                and r.WESTERN_DISEASEID = #{westernDiseaseId}
+            </if>
             <if test="westernDisease != null and westernDisease != ''">
                 and r.WESTERN_DISEASE like CONCAT('%', #{westernDisease}, '%')
             </if>