feat(工单管理): 添加工单审批通知和滞留库存查询功能
- 在工单服务中新增获取审批通知列表和滞留库存列表的接口 - 添加对应的DTO定义用于查询和响应 - 在控制器中暴露相关API端点 - 修改物料类型字段注释为快速识别标号 - 在工单查询结果中添加物料标号字段
This commit is contained in:
@@ -149,9 +149,9 @@ namespace DOAN.Admin.WebApi.Controllers
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
return ToResponse(new ApiResult(500,ex.Message));
|
||||
return ToResponse(new ApiResult(500, ex.Message));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
///// <summary>
|
||||
@@ -766,5 +766,45 @@ namespace DOAN.Admin.WebApi.Controllers
|
||||
return ToResponse(new ApiResult(500, ex.Message));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取审批通知列表
|
||||
/// </summary>
|
||||
/// <param name="parm">查询参数</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("getApprovalList")]
|
||||
[ActionPermissionFilter(Permission = "productManagement:proworkorder:query")]
|
||||
public IActionResult GetApprovalList([FromBody] ProWorkorderApprovalQueryDto parm)
|
||||
{
|
||||
try
|
||||
{
|
||||
var response = _ProWorkorderService.GetApprovalList(parm);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, ex.Message));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取滞留库存列表
|
||||
/// </summary>
|
||||
/// <param name="parm">查询参数</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("getStockList")]
|
||||
[ActionPermissionFilter(Permission = "productManagement:proworkorder:query")]
|
||||
public IActionResult GetStockList([FromBody] ProWorkorderStockQueryDto parm)
|
||||
{
|
||||
try
|
||||
{
|
||||
var response = _ProWorkorderService.GetStockList(parm);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, ex.Message));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user