修改项目增加接口
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
8b44900931
commit
e84b8c25f1
|
@ -51,30 +51,30 @@ namespace IRaCIS.Core.API.Controllers.Special
|
|||
[TrialGlobalLimit( "AddOrUpdateTrial", "BeforeOngoingCantOpt", "AfterStopCannNotOpt" )]
|
||||
public async Task<IResponseOutput<Trial>> AddOrUpdateTrial(TrialCommand param)
|
||||
{
|
||||
var userId = Guid.Parse(User.FindFirst("id").Value);
|
||||
//var userId = Guid.Parse(User.FindFirst("id").Value);
|
||||
var result = await _trialService.AddOrUpdateTrial(param);
|
||||
|
||||
if (_trialService.TrialExpeditedChange)
|
||||
{
|
||||
var needCalReviewerIds = await _trialService.GetTrialEnrollmentReviewerIds(param.Id.Value);
|
||||
var calcList = await _calculateService.GetNeedCalculateReviewerList(Guid.Empty, string.Empty);
|
||||
//if (_trialService.TrialExpeditedChange)
|
||||
//{
|
||||
// var needCalReviewerIds = await _trialService.GetTrialEnrollmentReviewerIds(param.Id.Value);
|
||||
// var calcList = await _calculateService.GetNeedCalculateReviewerList(Guid.Empty, string.Empty);
|
||||
|
||||
calcList.ForEach(t =>
|
||||
{
|
||||
if (needCalReviewerIds.Contains(t.DoctorId))
|
||||
{
|
||||
_calculateService.CalculateMonthlyPayment(new CalculateDoctorAndMonthDTO()
|
||||
{
|
||||
NeedCalculateReviewers = new List<Guid>()
|
||||
{
|
||||
t.DoctorId
|
||||
},
|
||||
CalculateMonth = DateTime.Parse(t.YearMonth)
|
||||
}, User.FindFirst("id").Value);
|
||||
// calcList.ForEach(t =>
|
||||
// {
|
||||
// if (needCalReviewerIds.Contains(t.DoctorId))
|
||||
// {
|
||||
// _calculateService.CalculateMonthlyPayment(new CalculateDoctorAndMonthDTO()
|
||||
// {
|
||||
// NeedCalculateReviewers = new List<Guid>()
|
||||
// {
|
||||
// t.DoctorId
|
||||
// },
|
||||
// CalculateMonth = DateTime.Parse(t.YearMonth)
|
||||
// }, User.FindFirst("id").Value);
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
// }
|
||||
// });
|
||||
//}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -1136,7 +1136,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
UserTypeShortName = t.UserTypeRole.UserTypeShortName,
|
||||
}).FirstOrDefaultAsync();
|
||||
|
||||
await _userLogRepository.AddAsync(new UserLog() { IP = _userInfo.IP, ActionIdentityUserId = userTokenInfo.IdentityUserId, ActionUserName = $"{userTokenInfo.UserName + (userTokenInfo.UserTypeShortName)}", OptType = UserOptType.LoginSelectRole }, true);
|
||||
await _userLogRepository.AddAsync(new UserLog() { IP = _userInfo.IP, ActionIdentityUserId = userTokenInfo.IdentityUserId, ActionUserName = $"{userTokenInfo.UserName } ({userTokenInfo.UserTypeShortName})", OptType = UserOptType.LoginSelectRole }, true);
|
||||
|
||||
if (userTokenInfo != null)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue