修改一版

This commit is contained in:
he
2022-04-25 09:59:06 +08:00
parent da45898e02
commit e4590c3bdf
9 changed files with 88 additions and 60 deletions
@@ -8,6 +8,9 @@ using IRaCIS.Core.Infrastructure.Extention;
using Microsoft.AspNetCore.Authorization;
using System.Threading.Tasks;
using IRaCIS.Application.Services;
using IRaCIS.Core.Application.Service.Inspection.DTO;
using IRaCIS.Core.Infra.EFCore;
using IRaCIS.Core.Application.Service.Inspection.Interface;
namespace IRaCIS.Core.API.Controllers.Special
{
@@ -18,19 +21,36 @@ namespace IRaCIS.Core.API.Controllers.Special
{
private readonly ITrialService _trialService;
private readonly ICalculateService _calculateService;
private readonly IInspectionService _inspectionService;
public FinancialChangeController(ITrialService trialService, ICalculateService calculateService)
public FinancialChangeController(ITrialService trialService, ICalculateService calculateService,
IInspectionService inspectionService
)
{
_trialService = trialService;
_calculateService = calculateService;
this._inspectionService = inspectionService;
}
//[TrialAudit(AuditType.TrialAudit, AuditOptType.AddOrUpdateTrial)]
/// <summary> 添加实验项目-返回新增Id[AUTH]</summary>
/// <param name="param"></param>
/// <returns>新记录Id</returns>
//[TrialAudit(AuditType.TrialAudit, AuditOptType.AddOrUpdateTrial)]
[HttpPost, Route("Inspection/trial/addOrUpdateTrial")]
[UnitOfWork]
public async Task<IResponseOutput> AddOrUpdateTrialInspection(DataInspectionDto<TrialCommand> opt)
{
var fun = AddOrUpdateTrial;
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, fun);
}
/// <summary> 添加实验项目-返回新增Id[AUTH]</summary>
/// <param name="param"></param>
/// <returns>新记录Id</returns>
[HttpPost, Route("trial/addOrUpdateTrial")]
public async Task<IResponseOutput> AddOrUpdateTrial(TrialCommand param)