remove 移除海宁消费代码

This commit is contained in:
2024-10-18 11:50:17 +08:00
parent 5d97795cfe
commit 323b7c3f5d
3 changed files with 2 additions and 166 deletions

View File

@@ -23,12 +23,10 @@ namespace Dlhis.Canteen.Order.Controllers;
public class BalancesController : ControllerBase
{
private readonly IBalanceService _balanceService;
private readonly IHainingBalanceService _hainingBalanceService;
public BalancesController(IBalanceService balanceService, IHainingBalanceService hainingBalanceService)
public BalancesController(IBalanceService balanceService)
{
_balanceService = balanceService;
_hainingBalanceService = hainingBalanceService;
}
/// <summary>
@@ -63,7 +61,7 @@ public class BalancesController : ControllerBase
[Transactional(IsolationLevel.ReadCommitted)]
public async Task RefundAsync(BalanceRecordRefundRequest request)
{
await _balanceService.RefundAsync(request.No);
await _balanceService.RefundAsync(request.No);
}
@@ -157,30 +155,6 @@ public class BalancesController : ControllerBase
return await _balanceService.AverageDailyAsync(request);
}
/// <summary>
/// 海宁餐补数据写入
/// </summary>
/// <param name="request"></param>
[Transactional]
[IgnoreTenant]
[HttpPost("haining/import")]
public async Task Import(BalanceHainingImportRequest request)
{
await _hainingBalanceService.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 _hainingBalanceService.HainingDownloadAsync(userCode);
}
/// <summary>
/// 手动处理余额
/// </summary>