feat: 获取当前租户
This commit is contained in:
@@ -52,7 +52,6 @@
|
|||||||
<select id="selectByScenicId" resultMap="BaseResultMap">
|
<select id="selectByScenicId" resultMap="BaseResultMap">
|
||||||
SELECT * FROM boat_route
|
SELECT * FROM boat_route
|
||||||
WHERE scenic_id = #{scenicId}
|
WHERE scenic_id = #{scenicId}
|
||||||
AND tenant_id = #{tenantId}
|
|
||||||
AND deleted = 0
|
AND deleted = 0
|
||||||
ORDER BY create_time DESC
|
ORDER BY create_time DESC
|
||||||
</select>
|
</select>
|
||||||
@@ -61,7 +60,6 @@
|
|||||||
<select id="selectTemplates" resultMap="BaseResultMap">
|
<select id="selectTemplates" resultMap="BaseResultMap">
|
||||||
SELECT * FROM boat_route
|
SELECT * FROM boat_route
|
||||||
WHERE is_template = 1
|
WHERE is_template = 1
|
||||||
AND tenant_id = #{tenantId}
|
|
||||||
AND deleted = 0
|
AND deleted = 0
|
||||||
ORDER BY create_time DESC
|
ORDER BY create_time DESC
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@@ -34,7 +34,6 @@
|
|||||||
<select id="selectByDeviceSn" resultMap="BaseResultMap">
|
<select id="selectByDeviceSn" resultMap="BaseResultMap">
|
||||||
SELECT * FROM water_boundary
|
SELECT * FROM water_boundary
|
||||||
WHERE device_sn = #{deviceSn}
|
WHERE device_sn = #{deviceSn}
|
||||||
AND tenant_id = #{tenantId}
|
|
||||||
AND deleted = 0
|
AND deleted = 0
|
||||||
AND status = 1
|
AND status = 1
|
||||||
ORDER BY create_time DESC
|
ORDER BY create_time DESC
|
||||||
@@ -44,7 +43,6 @@
|
|||||||
<select id="selectByScenicId" resultMap="BaseResultMap">
|
<select id="selectByScenicId" resultMap="BaseResultMap">
|
||||||
SELECT * FROM water_boundary
|
SELECT * FROM water_boundary
|
||||||
WHERE scenic_id = #{scenicId}
|
WHERE scenic_id = #{scenicId}
|
||||||
AND tenant_id = #{tenantId}
|
|
||||||
AND deleted = 0
|
AND deleted = 0
|
||||||
AND status = 1
|
AND status = 1
|
||||||
ORDER BY create_time DESC
|
ORDER BY create_time DESC
|
||||||
@@ -55,7 +53,6 @@
|
|||||||
SELECT * FROM water_boundary
|
SELECT * FROM water_boundary
|
||||||
WHERE scenic_id = #{scenicId}
|
WHERE scenic_id = #{scenicId}
|
||||||
AND boundary_type = #{boundaryType}
|
AND boundary_type = #{boundaryType}
|
||||||
AND tenant_id = #{tenantId}
|
|
||||||
AND deleted = 0
|
AND deleted = 0
|
||||||
AND status = 1
|
AND status = 1
|
||||||
ORDER BY create_time DESC
|
ORDER BY create_time DESC
|
||||||
@@ -75,7 +72,6 @@
|
|||||||
SET show_in_model = 0,
|
SET show_in_model = 0,
|
||||||
update_time = NOW()
|
update_time = NOW()
|
||||||
WHERE device_sn = #{deviceSn}
|
WHERE device_sn = #{deviceSn}
|
||||||
AND tenant_id = #{tenantId}
|
|
||||||
AND deleted = 0
|
AND deleted = 0
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
@@ -85,7 +81,6 @@
|
|||||||
SET show_in_model = 1,
|
SET show_in_model = 1,
|
||||||
update_time = NOW()
|
update_time = NOW()
|
||||||
WHERE device_sn = #{deviceSn}
|
WHERE device_sn = #{deviceSn}
|
||||||
AND tenant_id = #{tenantId}
|
|
||||||
AND deleted = 0
|
AND deleted = 0
|
||||||
AND boundary_id IN
|
AND boundary_id IN
|
||||||
<foreach collection="boundaryIds" item="id" open="(" separator="," close=")">
|
<foreach collection="boundaryIds" item="id" open="(" separator="," close=")">
|
||||||
|
|||||||
Reference in New Issue
Block a user