Ver código fonte

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

hanzhiwei 2 anos atrás
pai
commit
6701d0c86f

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