Explorar o código

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

guowei %!s(int64=2) %!d(string=hai) anos
pai
achega
e2ee9bde5f

+ 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>