ソースを参照

2022-09-30 修改疏散硬件查询条件过滤

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

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

@@ -91,7 +91,7 @@
             <if test="name != null  and name != ''">and name like t.concat('%', #{name}, '%')</if>
             <if test="type != null ">and t.type = #{type}</if>
             <if test="floorId != null ">and t.floor_id = #{floorId}</if>
-            <if test="buildId != null ">and t.build_id = #{buildId}</if>
+            <if test="buildId != null ">and (t.build_id = #{buildId} or s.build_id = #{buildId})</if>
             <if test="operate != null ">and t.operate = #{operate}</if>
             <if test="functionStatus != null  and functionStatus != ''">and t.function_status = #{functionStatus}</if>
             <if test="deptId != null  and deptId != ''">and t.dept_id = #{deptId}</if>