生产模块完成任务接口加幂等:重复点击“完成”不应重复生成回执

优化页面体验
任务允许重复但要合并
This commit is contained in:
朱昊天
2026-06-01 13:56:39 +08:00
parent 303092e637
commit 9f4e1c39ad
5 changed files with 117 additions and 26 deletions

View File

@@ -13,7 +13,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
t.plan_start_time AS planStartTime,
t.plan_end_time AS planEndTime,
t.remark AS remark,
t.create_by AS createBy,
t.create_time AS createTime,
t.update_by AS updateBy,
t.update_time AS updateTime,
IFNULL(SUM(p.plan_qty), 0) AS planQty,
IFNULL(SUM(p.finished_qty), 0) AS finishedQty,
@@ -29,7 +31,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="beginTime != null"> AND t.plan_start_time <![CDATA[>=]]> #{beginTime}</if>
<if test="endTime != null"> AND t.plan_start_time <![CDATA[<=]]> #{endTime}</if>
</where>
GROUP BY t.task_id
GROUP BY
t.task_id,
t.task_code,
t.task_name,
t.status,
t.plan_start_time,
t.plan_end_time,
t.remark,
t.create_by,
t.create_time,
t.update_by,
t.update_time
ORDER BY t.update_time DESC, t.create_time DESC
</select>
@@ -105,6 +118,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
update_time = #{updateTime}
WHERE task_id = #{taskId}
AND del_flag = '0'
AND status <![CDATA[<>]]> #{status}
</update>
</mapper>