瀏覽代碼

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

zhuchangxue 3 年之前
父節點
當前提交
cb9c0f83a2

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