You've already forked FrameTour-BE
模板、设备排序
This commit is contained in:
@@ -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 >= #{startTime} </if>
|
||||
<if test="endTime!= null">and t.create_time <= #{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>
|
||||
|
Reference in New Issue
Block a user