|
|
@ -56,7 +56,7 @@ namespace DS.WMS.FeeApi.Controllers
|
|
|
|
/// <param name="request">查询条件</param>
|
|
|
|
/// <param name="request">查询条件</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost, Route("GetStat")]
|
|
|
|
[HttpPost, Route("GetStat")]
|
|
|
|
public async Task<DataResult<FeeAuditStatistics>> GetStatAsync(FeeStatisticsRequestV2 request)
|
|
|
|
public async Task<DataResult<FeeAuditStatistics>> GetStatAsync([FromBody] FeeStatisticsRequestV2 request)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return await _auditService.GetStatAsync(request.Id, request.BusinessType, request.FeeId);
|
|
|
|
return await _auditService.GetStatAsync(request.Id, request.BusinessType, request.FeeId);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -78,7 +78,7 @@ namespace DS.WMS.FeeApi.Controllers
|
|
|
|
/// <param name="request"></param>
|
|
|
|
/// <param name="request"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost, Route("Audit")]
|
|
|
|
[HttpPost, Route("Audit")]
|
|
|
|
public async Task<DataResult> AuditAsync(AuditRequest request)
|
|
|
|
public async Task<DataResult> AuditAsync([FromBody] AuditRequest request)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (request == null || request.Ids.Length == 0 || (request.Result != 1 && request.Result != 2))
|
|
|
|
if (request == null || request.Ids.Length == 0 || (request.Result != 1 && request.Result != 2))
|
|
|
|
return DataResult.Failed("参数无效", MultiLanguageConst.IllegalRequest);
|
|
|
|
return DataResult.Failed("参数无效", MultiLanguageConst.IllegalRequest);
|
|
|
@ -92,7 +92,7 @@ namespace DS.WMS.FeeApi.Controllers
|
|
|
|
/// <param name="request"></param>
|
|
|
|
/// <param name="request"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost, Route("AuditByBiz")]
|
|
|
|
[HttpPost, Route("AuditByBiz")]
|
|
|
|
public async Task<DataResult> AuditAsync(BizAuditRequest request)
|
|
|
|
public async Task<DataResult> AuditAsync([FromBody] BizAuditRequest request)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (request == null || (request.Result != 1 && request.Result != 2) || request.Items == null || request.Items.Count == 0)
|
|
|
|
if (request == null || (request.Result != 1 && request.Result != 2) || request.Items == null || request.Items.Count == 0)
|
|
|
|
return DataResult.Failed("参数无效", MultiLanguageConst.IllegalRequest);
|
|
|
|
return DataResult.Failed("参数无效", MultiLanguageConst.IllegalRequest);
|
|
|
@ -106,7 +106,7 @@ namespace DS.WMS.FeeApi.Controllers
|
|
|
|
/// <param name="request"></param>
|
|
|
|
/// <param name="request"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost, Route("OneClickAudit")]
|
|
|
|
[HttpPost, Route("OneClickAudit")]
|
|
|
|
public async Task<DataResult> OneClickAuditAsync(AuditConditionRequest request)
|
|
|
|
public async Task<DataResult> OneClickAuditAsync([FromBody] AuditConditionRequest request)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (request.Result != 1 && request.Result != 2)
|
|
|
|
if (request.Result != 1 && request.Result != 2)
|
|
|
|
return DataResult.Failed("参数无效", MultiLanguageConst.IllegalRequest);
|
|
|
|
return DataResult.Failed("参数无效", MultiLanguageConst.IllegalRequest);
|
|
|
@ -120,7 +120,7 @@ namespace DS.WMS.FeeApi.Controllers
|
|
|
|
/// <param name="request"></param>
|
|
|
|
/// <param name="request"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost, Route("BusinessAudit")]
|
|
|
|
[HttpPost, Route("BusinessAudit")]
|
|
|
|
public async Task<DataResult> AuditBillAsync(TaskAuditRequest request)
|
|
|
|
public async Task<DataResult> AuditBillAsync([FromBody] TaskAuditRequest request)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (request == null || (request.Result != 1 && request.Result != 2))
|
|
|
|
if (request == null || (request.Result != 1 && request.Result != 2))
|
|
|
|
return DataResult.Failed("参数无效", MultiLanguageConst.IllegalRequest);
|
|
|
|
return DataResult.Failed("参数无效", MultiLanguageConst.IllegalRequest);
|
|
|
@ -128,13 +128,28 @@ namespace DS.WMS.FeeApi.Controllers
|
|
|
|
return await _auditService.AuditBillAsync(request);
|
|
|
|
return await _auditService.AuditBillAsync(request);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 锁单审核
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <param name="service"></param>
|
|
|
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
[HttpPost, Route("BusinessLockAudit")]
|
|
|
|
|
|
|
|
public async Task<DataResult> AuditBillLockAsync([FromServices] IFeeBillTaskService service, [FromBody] TaskAuditRequest request)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (request == null || (request.Result != 1 && request.Result != 2))
|
|
|
|
|
|
|
|
return DataResult.Failed("参数无效", MultiLanguageConst.IllegalRequest);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return await service.AuditAsync(request);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 设置业务锁定状态
|
|
|
|
/// 设置业务锁定状态
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="operation">请求信息</param>
|
|
|
|
/// <param name="operation">请求信息</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost, Route("SetLocking")]
|
|
|
|
[HttpPost, Route("SetLocking")]
|
|
|
|
public async Task<DataResult> SetLockingAsync(BizOperation operation)
|
|
|
|
public async Task<DataResult> SetLockingAsync([FromBody] BizOperation operation)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
bool? isLocked = null;
|
|
|
|
bool? isLocked = null;
|
|
|
|
try
|
|
|
|
try
|
|
|
@ -160,7 +175,7 @@ namespace DS.WMS.FeeApi.Controllers
|
|
|
|
/// <param name="idModel"></param>
|
|
|
|
/// <param name="idModel"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost, Route("SetFeeStatus")]
|
|
|
|
[HttpPost, Route("SetFeeStatus")]
|
|
|
|
public async Task<DataResult> SetFeeStatusAsync(IdModel<FeeStatus> idModel)
|
|
|
|
public async Task<DataResult> SetFeeStatusAsync([FromBody] IdModel<FeeStatus> idModel)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return await _auditService.SetFeeStatusAsync(idModel.Value, idModel.Ids);
|
|
|
|
return await _auditService.SetFeeStatusAsync(idModel.Value, idModel.Ids);
|
|
|
|
}
|
|
|
|
}
|
|
|
|