feat(wms): 添加钢卷待操作记录恢复功能

- 在restoreAction方法中添加actionId参数非空验证
- 添加updateDelFlag自定义SQL方法绕过@TableLogic注解限制
- 修改restoreAction逻辑使用新的updateDelFlag方法更新删除标志
- 优化异常处理使用ServiceException替换RuntimeException
- 修正查询条件将del_flag检查从2改为1表示已删除状态
This commit is contained in:
2026-03-12 16:48:16 +08:00
parent 2b213f7475
commit db8696f9e7
3 changed files with 23 additions and 10 deletions

View File

@@ -88,5 +88,14 @@
${ew.customSqlSegment}
</select>
<!-- 更新删除标志(绕过@TableLogic注解限制) -->
<update id="updateDelFlag">
UPDATE wms_coil_pending_action
SET del_flag = #{delFlag}
WHERE action_id = #{actionId}
</update>
</mapper>