feat: 获取当前租户

This commit is contained in:
2026-01-09 21:34:29 +08:00
parent d8d0e4fc9f
commit d0f00d1504
2 changed files with 0 additions and 7 deletions
@@ -52,7 +52,6 @@
<select id="selectByScenicId" resultMap="BaseResultMap">
SELECT * FROM boat_route
WHERE scenic_id = #{scenicId}
AND tenant_id = #{tenantId}
AND deleted = 0
ORDER BY create_time DESC
</select>
@@ -61,7 +60,6 @@
<select id="selectTemplates" resultMap="BaseResultMap">
SELECT * FROM boat_route
WHERE is_template = 1
AND tenant_id = #{tenantId}
AND deleted = 0
ORDER BY create_time DESC
</select>
@@ -34,7 +34,6 @@
<select id="selectByDeviceSn" resultMap="BaseResultMap">
SELECT * FROM water_boundary
WHERE device_sn = #{deviceSn}
AND tenant_id = #{tenantId}
AND deleted = 0
AND status = 1
ORDER BY create_time DESC
@@ -44,7 +43,6 @@
<select id="selectByScenicId" resultMap="BaseResultMap">
SELECT * FROM water_boundary
WHERE scenic_id = #{scenicId}
AND tenant_id = #{tenantId}
AND deleted = 0
AND status = 1
ORDER BY create_time DESC
@@ -55,7 +53,6 @@
SELECT * FROM water_boundary
WHERE scenic_id = #{scenicId}
AND boundary_type = #{boundaryType}
AND tenant_id = #{tenantId}
AND deleted = 0
AND status = 1
ORDER BY create_time DESC
@@ -75,7 +72,6 @@
SET show_in_model = 0,
update_time = NOW()
WHERE device_sn = #{deviceSn}
AND tenant_id = #{tenantId}
AND deleted = 0
</update>
@@ -85,7 +81,6 @@
SET show_in_model = 1,
update_time = NOW()
WHERE device_sn = #{deviceSn}
AND tenant_id = #{tenantId}
AND deleted = 0
AND boundary_id IN
<foreach collection="boundaryIds" item="id" open="(" separator="," close=")">