模板、设备排序

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

@@ -85,6 +85,11 @@
where status = 0 and worker_id is null
limit 1
</select>
<select id="selectAllNotRunning" resultType="com.ycwl.basic.model.pc.task.entity.TaskEntity">
select *
from task
where status = 0 and worker_id is null
</select>
<select id="countTask" resultType="java.lang.Integer">
select count(1) from task
<where>
@@ -123,4 +128,9 @@
<if test="endTime!= null">and create_time &lt;= #{endTime} </if>
</where>
</select>
<select id="selectAllRunning" resultType="com.ycwl.basic.model.pc.task.entity.TaskEntity">
select *
from task
where status = 2
</select>
</mapper>