feat: 1:二维码统计明细 2:航线规划
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
<id column="id" property="id" />
|
||||
<result column="boundary_id" property="boundaryId" />
|
||||
<result column="boundary_name" property="boundaryName" />
|
||||
<result column="device_sn" property="deviceSn" />
|
||||
<result column="scenic_id" property="scenicId" />
|
||||
<result column="tenant_id" property="tenantId" />
|
||||
<result column="boundary_type" property="boundaryType" />
|
||||
@@ -15,6 +16,7 @@
|
||||
<result column="area" property="area" />
|
||||
<result column="source_type" property="sourceType" />
|
||||
<result column="model_id" property="modelId" />
|
||||
<result column="show_in_model" property="showInModel" />
|
||||
<result column="status" property="status" />
|
||||
<result column="create_time" property="createTime" />
|
||||
<result column="update_time" property="updateTime" />
|
||||
@@ -28,6 +30,16 @@
|
||||
AND deleted = 0
|
||||
</select>
|
||||
|
||||
<!-- 根据设备SN查询边界列表 -->
|
||||
<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
|
||||
</select>
|
||||
|
||||
<!-- 根据景区ID查询边界列表 -->
|
||||
<select id="selectByScenicId" resultMap="BaseResultMap">
|
||||
SELECT * FROM water_boundary
|
||||
@@ -57,6 +69,30 @@
|
||||
WHERE boundary_id = #{boundaryId}
|
||||
</update>
|
||||
|
||||
<!-- 根据设备SN重置显示标绘状态(全部不显示) -->
|
||||
<update id="resetShowInModelByDeviceSn">
|
||||
UPDATE water_boundary
|
||||
SET show_in_model = 0,
|
||||
update_time = NOW()
|
||||
WHERE device_sn = #{deviceSn}
|
||||
AND tenant_id = #{tenantId}
|
||||
AND deleted = 0
|
||||
</update>
|
||||
|
||||
<!-- 根据设备SN批量设置显示标绘状态(指定ID集合显示) -->
|
||||
<update id="setShowInModelByBoundaryIds">
|
||||
UPDATE water_boundary
|
||||
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=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<!-- 根据3D模型ID查询关联边界 -->
|
||||
<select id="selectByModelId" resultMap="BaseResultMap">
|
||||
SELECT * FROM water_boundary
|
||||
|
||||
Reference in New Issue
Block a user