feat 根据工号获取海宁消费记录
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user