You've already forked FrameTour-BE
refactor(task): 优化任务获取逻辑
- 在 TaskTaskServiceImpl 中添加 limit(1) 以限制获取的任务数量为 1 - 在 TaskMapper.xml 中移除 selectNotRunning 查询中的 limit 1条件
This commit is contained in:
@@ -84,7 +84,6 @@
|
||||
from task
|
||||
where status = 0
|
||||
and worker_id is null
|
||||
limit 1
|
||||
</select>
|
||||
<select id="selectAllNotRunning" resultType="com.ycwl.basic.model.pc.task.entity.TaskEntity">
|
||||
select *
|
||||
|
Reference in New Issue
Block a user