feat(wms): 添加钢卷待操作记录恢复功能
- 在restoreAction方法中添加actionId参数非空验证 - 添加updateDelFlag自定义SQL方法绕过@TableLogic注解限制 - 修改restoreAction逻辑使用新的updateDelFlag方法更新删除标志 - 优化异常处理使用ServiceException替换RuntimeException - 修正查询条件将del_flag检查从2改为1表示已删除状态
This commit is contained in:
@@ -106,7 +106,7 @@ public class WmsCoilPendingActionController extends BaseController {
|
||||
*/
|
||||
@Log(title = "钢卷待操作", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/status/{actionId}/{status}")
|
||||
public R<Void> updateStatus(@PathVariable("actionId") Long actionId,
|
||||
public R<Void> updateStatus(@PathVariable("actionId") Long actionId,
|
||||
@PathVariable("status") Integer status) {
|
||||
return toAjax(iWmsCoilPendingActionService.updateStatus(actionId, status));
|
||||
}
|
||||
@@ -143,7 +143,7 @@ public class WmsCoilPendingActionController extends BaseController {
|
||||
*/
|
||||
@Log(title = "钢卷待操作", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/restore/{actionId}")
|
||||
public R<Void> restoreAction(@PathVariable("actionId") Long actionId) {
|
||||
public R<Void> restoreAction(@PathVariable("actionId")@NotNull Long actionId) {
|
||||
return toAjax(iWmsCoilPendingActionService.restoreAction(actionId));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user