Просмотр исходного кода

fix: 事后科室稽核列表的违反规则编号查询

Scott 1 год назад
Родитель
Сommit
18e6abc500

+ 6 - 3
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/medical/mapper/xml/AfterwardsAuditMapper.xml

@@ -34,13 +34,16 @@
         <where>
                       1=1
             <if test="ew.medicalDeptName != null and ew.medicalDeptName != ''">
-                AND medical_dept_name like concat(concat('%',#{ew.medicalDeptName}),'%')
+                AND m.medical_dept_name like concat(concat('%',#{ew.medicalDeptName}),'%')
+            </if>
+            <if test="ew.medicalDeptCode != null and ew.medicalDeptCode != ''" >
+                AND m.medical_dept_code = #{ew.medicalDeptCode}
             </if>
             <if test="ew.startTime != null and ew.startTime != ''">
-                AND <![CDATA[ create_time >= #{ew.startTime,jdbcType=VARCHAR} ]]>
+                AND <![CDATA[ m.create_time >= #{ew.startTime,jdbcType=VARCHAR} ]]>
             </if>
             <if test="ew.endTime != null and ew.endTime != ''">
-                AND <![CDATA[ create_time <= #{ew.endTime,jdbcType=VARCHAR} ]]>
+                AND <![CDATA[ m.create_time <= #{ew.endTime,jdbcType=VARCHAR} ]]>
             </if>
         </where>
         GROUP BY m.medical_dept_code