ソースを参照

2230 预案执行记录 应只展示已结束预案

hanzhiwei 3 年 前
コミット
6701d0c86f
共有1 個のファイルを変更した2 個の追加1 個の削除を含む
  1. 2 1
      zd-modules/zd-modules-laboratory/src/main/resources/mapper/laboratory/LabRiskPlanAbnormalGroupMapper.xml

+ 2 - 1
zd-modules/zd-modules-laboratory/src/main/resources/mapper/laboratory/LabRiskPlanAbnormalGroupMapper.xml

@@ -163,12 +163,13 @@
         FROM lab_risk_plan_abnormal_group g
         LEFT JOIN lab_subject s ON s.id = g.subject_id
         <where>
+            g.STATUS = 0
             <if test="searchValue != null and searchValue!='' ">and (
                 g.group_name like concat('%', #{searchValue}, '%')
                 or s.name like concat('%', #{searchValue}, '%')
                 )
             </if>
-            <if test="riskAttribute != null ">and risk_attribute = #{riskAttribute}</if>
+            <if test="riskAttribute != null ">and g.risk_attribute = #{riskAttribute}</if>
         </where>
         ORDER  BY g.create_time DESC
     </select>