防止生成sql生成GETDATE() 时区导致的问题
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-07-24 09:54:43 +08:00
parent 3cdfd3a771
commit 8021d6a860
7 changed files with 35 additions and 16 deletions
@@ -1248,7 +1248,8 @@ namespace IRaCIS.Core.Application
//}
//防止生成sql生成GETDATE() 时区导致的问题
var appDateTimeNow = DateTime.Now;
var record = new UserToBeDoneRecord()
{
@@ -1264,7 +1265,7 @@ namespace IRaCIS.Core.Application
SysNoticeUnReadCount= await _systemNoticeRepository.Where(t => t.NoticeUserTypeList.Any(t => t.UserTypeId == _userInfo.UserTypeId) && t.NoticeStateEnum == Domain.Share.Management.SystemNotice_NoticeStateEnum.HavePublished
&& !t.NoticeUserReadList.Any(t => t.CreateUserId == _userInfo.Id))
.Where(t => t.EndDate == null || t.EndDate != null && t.EndDate > DateTime.Now)
.Where(t => t.EndDate == null || t.EndDate != null && t.EndDate > appDateTimeNow)
.CountAsync(),
#region PM
@@ -29,7 +29,7 @@ namespace IRaCIS.Core.Application.Service
_trialRepository = trialRepository;
_dicomAERepository = dicomAERepository;
}
[HttpPost]
public async Task<IResponseOutput<PageOutput<DicomAEView>>> GetDicomAEList(DicomAEQuery inQuery)
{