feat: 更新项目配置,升级Java版本至21,添加Lombok注解处理器,优化设备状态解析和任务更新逻辑

This commit is contained in:
yahaozhang
2025-09-16 01:21:24 +08:00
parent cb69777499
commit b14573bb88
22 changed files with 988 additions and 73 deletions

View File

@@ -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 &lt; #{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