feat(wms): 添加钢卷待操作记录恢复功能
- 在restoreAction方法中添加actionId参数非空验证 - 添加updateDelFlag自定义SQL方法绕过@TableLogic注解限制 - 修改restoreAction逻辑使用新的updateDelFlag方法更新删除标志 - 优化异常处理使用ServiceException替换RuntimeException - 修正查询条件将del_flag检查从2改为1表示已删除状态
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user