申购车摄像头sql

This commit is contained in:
wangliwen 2022-07-04 17:40:25 +08:00
parent 02cad2750c
commit 0f25b9414e
1 changed files with 3 additions and 3 deletions

View File

@ -104,7 +104,7 @@
AND car.user_id = #{userId}
AND res.dept_id = #{deptId}
AND car.del_flag = 0
UNION
UNION (
SELECT
car.id AS "id",
res.id AS "resourceId",
@ -123,8 +123,8 @@
AND car.resource_id = res.id
AND car.resource_id = 8888888880000000001
AND car.user_id = #{userId}
AND res.dept_id = #{deptId}
AND car.del_flag = 0
AND res.dept_id = 1067246875800000066
AND car.del_flag = 0)
LIMIT ${pageNum}, ${pageSize}
</select>