Commit b0757d62 by 李小龙

fix: 设备列表增加空间查询和字段

parent 98534179
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<where> <where>
pd.del_flag = 0 pd.del_flag = 0
<if test="param.spaceId != null and param.spaceId != ''"> <if test="param.spaceId != null and param.spaceId != ''">
and FIND_IN_SET(#{spaceId},ps.parent_path) and ( FIND_IN_SET(#{param.spaceId},ps.parent_path) or ps.id = #{param.spaceId} )
</if> </if>
<if test="param.oriDeviceId != null and param.oriDeviceId != ''"> <if test="param.oriDeviceId != null and param.oriDeviceId != ''">
and pd.ori_device_id like concat('%',#{param.oriDeviceId},'%') and pd.ori_device_id like concat('%',#{param.oriDeviceId},'%')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment