|
|
|
@ -51,7 +51,7 @@ namespace DS.WMS.FeeApi.Controllers
|
|
|
|
|
/// <param name="request">查询条件</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpPost, Route("GetStat")]
|
|
|
|
|
public async Task<DataResult<FeeAuditStatistics>> GetStatAsync(FeeStatisticsRequestV2 request)
|
|
|
|
|
public async Task<DataResult<FeeAuditStatistics>> GetStatAsync(FeeStatisticsRequestV2 request)
|
|
|
|
|
{
|
|
|
|
|
return await _auditService.GetStatAsync(request.Id, request.BusinessType, request.FeeId);
|
|
|
|
|
}
|
|
|
|
@ -96,18 +96,17 @@ namespace DS.WMS.FeeApi.Controllers
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 本票审核(一键审核当前登录用户的所有待审核项)
|
|
|
|
|
/// 一键审核当前登录用户的所有待审核项
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="status">审批结果: 1=通过 2=驳回</param>
|
|
|
|
|
/// <param name="remark">审批备注</param>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpPost, Route("OneClickAudit")]
|
|
|
|
|
public async Task<DataResult> OneClickAuditAsync(int status, string remark)
|
|
|
|
|
public async Task<DataResult> OneClickAuditAsync(AuditConditionRequest request)
|
|
|
|
|
{
|
|
|
|
|
if (status != 1 && status != 2)
|
|
|
|
|
if (request.Result != 1 && request.Result != 2)
|
|
|
|
|
return DataResult.Failed("参数无效", MultiLanguageConst.IllegalRequest);
|
|
|
|
|
|
|
|
|
|
return await _auditService.AuditAsync(status, remark);
|
|
|
|
|
return await _auditService.AuditAsync(request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|