feat 餐补余额导入

This commit is contained in:
2024-05-22 16:39:08 +08:00
parent af6ef69091
commit 5383410b77
5 changed files with 112 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
using Dlhis.Canteen.MealSupplementRecord.Request;
using Dlhis.Canteen.MealSupplementRecord.Response;
using Dlhis.Canteen.MealSupplementRecord.Services;
using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop;
using Kurisu.Core.DataAccess.Dto;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
@@ -44,4 +45,14 @@ public class MealSupplementsRecordController
{
return await _mealSupplementRecordService.GetMyMealSupplementRecords(request);
}
}
/// <summary>
/// 期初餐补余额导入
/// </summary>
[HttpPost("init/import")]
[Transactional]
public async Task InitImportAsync(List<MealSupplementInitImportRequest> requests)
{
await _mealSupplementRecordService.InitImportAsync(requests);
}
}