소스 검색

【CHG】修改错误查询脚本

ZhaoMn 3 년 전
부모
커밋
62f2b9584a
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      railway-business/src/main/resources/mapper/safetool/BaseSafetyToolMapper.xml

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