feat: 更新项目配置,升级Java版本至21,添加Lombok注解处理器,优化设备状态解析和任务更新逻辑
This commit is contained in:
@@ -82,6 +82,14 @@
|
||||
WHERE id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 仅当新点数更大时更新,减少写冲突和无效更新 -->
|
||||
<update id="updatePointsIfGreater">
|
||||
UPDATE link_task
|
||||
SET completed_points = #{newPoints}, updated_at = NOW()
|
||||
WHERE id = #{id}
|
||||
AND (completed_points IS NULL OR completed_points < #{newPoints})
|
||||
</update>
|
||||
|
||||
<select id="findByAgentId" resultMap="LinkTaskMap">
|
||||
SELECT id, batch_id, agent_id, code_no, token_hash, expire_at, status, region, machine_id, login_at, refund_at, revoked_at, created_at, updated_at, need_refresh, refresh_time, qr_created_at, qr_expire_at, first_region_select_at, completed_points, completion_images
|
||||
FROM link_task
|
||||
|
||||
Reference in New Issue
Block a user