feat: 1:二维码统计明细 2:航线规划

This commit is contained in:
2026-01-08 23:12:25 +08:00
parent a9f1e1f4d4
commit 2b61492b15
61 changed files with 7639 additions and 1065 deletions
@@ -16,6 +16,7 @@
<result column="total_duration" property="totalDuration" />
<result column="cruise_speed" property="cruiseSpeed" />
<result column="boundary_polygon" property="boundaryPolygon" />
<result column="boundary_id" property="boundaryId" />
<result column="start_point" property="startPoint" />
<result column="end_point" property="endPoint" />
<result column="loop_enabled" property="loopEnabled" />
@@ -24,6 +25,7 @@
<result column="safe_distance" property="safeDistance" />
<result column="status" property="status" />
<result column="is_template" property="isTemplate" />
<result column="show_in_model" property="showInModel" />
<result column="remark" property="remark" />
<result column="create_time" property="createTime" />
<result column="update_time" property="updateTime" />
@@ -108,4 +110,28 @@
WHERE route_id = #{routeId}
</update>
<!-- 根据设备SN重置“模型中显示航线”状态(全部不显示) -->
<update id="resetShowInModelByDeviceSn">
UPDATE boat_route
SET show_in_model = 0,
update_time = NOW()
WHERE device_sn = #{deviceSn}
AND tenant_id = #{tenantId}
AND deleted = 0
</update>
<!-- 根据设备SN批量设置“模型中显示航线”状态(指定ID集合显示) -->
<update id="setShowInModelByRouteIds">
UPDATE boat_route
SET show_in_model = 1,
update_time = NOW()
WHERE device_sn = #{deviceSn}
AND tenant_id = #{tenantId}
AND deleted = 0
AND route_id IN
<foreach collection="routeIds" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</update>
</mapper>