模板、设备排序

This commit is contained in:
2025-02-20 18:37:23 +08:00
parent 7b40ae85d0
commit 240706c11c
19 changed files with 177 additions and 1 deletions

View File

@@ -54,6 +54,11 @@
</set>
where id = #{id}
</update>
<update id="updateSort">
update template
set sort = #{sort}
where id = #{templateId}
</update>
<delete id="deleteById">
delete from template where id = #{id}
</delete>
@@ -84,6 +89,7 @@
<if test="startTime!= null">and t.create_time &gt;= #{startTime} </if>
<if test="endTime!= null">and t.create_time &lt;= #{endTime} </if>
</where>
order by scenic_id, sort
</select>
<select id="getById" resultType="com.ycwl.basic.model.pc.template.resp.TemplateRespVO">
select t.*, s.name as scenic_name
@@ -127,4 +133,10 @@
from template
where status = 1 and pid = 0
</select>
<select id="listAllTemplateIdByScenicId" resultType="java.lang.Long">
select t.id
from template t
where t.scenic_id = #{scenicId} and t.pid = 0
order by sort
</select>
</mapper>