Browse Source

【CHG】修改错误查询脚本

ZhaoMn 3 years ago
parent
commit
62f2b9584a

+ 1 - 2
railway-business/src/main/resources/mapper/safetool/BaseSafetyToolMapper.xml

@@ -458,9 +458,8 @@
     <include refid="Base_Column_List"/>, t1.isok, #{experimentId} as exp_id
     FROM base_safety_tool t
     left join sec_experiment_tool t1 on t.tool_id = t1.tool_id
-    where t1.exp_id=#{experimentId}
     <where>
-      t.del_flag='0'
+      t.del_flag='0' and t1.exp_id=#{experimentId}
       <if test="deptId!=null and deptId!=''">
         and t.dept_id=#{deptId}
       </if>