feat 根据工号获取海宁消费记录

This commit is contained in:
2024-06-10 21:46:49 +08:00
parent f74b0ba43e
commit 00fd009ce0
4 changed files with 89 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
using Dlhis.Canteen.Order.Request;
using System.ComponentModel.DataAnnotations;
using Dlhis.Canteen.Order.Request;
using Dlhis.Canteen.Order.Response;
using Dlhis.Canteen.Order.Services;
using Kurisu.AspNetCore.DataAccess.Dto;
@@ -148,6 +149,18 @@ public class BalancesController : ControllerBase
[HttpPost("haining/import")]
public async Task Import(BalanceHainingImportRequest request)
{
await _balanceService.Import(request);
await _balanceService.HainingImportAsync(request);
}
/// <summary>
/// 根据工号海宁餐补数据获取
/// </summary>
/// <param name="userCode">工号</param>
/// <returns></returns>
[IgnoreTenant]
[HttpGet("haining/list")]
public async Task<List<BalanceHainingDownloadResponse>> HainingDownloadAsync([Required(ErrorMessage = "工号不能为空")] string userCode)
{
return await _balanceService.HainingDownloadAsync(userCode);
}
}