From 4f72d9703936eb504485b71c362ca25d443f3b25 Mon Sep 17 00:00:00 2001
From: he <109787524@qq.com>
Date: Mon, 11 Nov 2024 10:37:49 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Service/Doctor/DTO/EducationModel.cs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/IRaCIS.Core.Application/Service/Doctor/DTO/EducationModel.cs b/IRaCIS.Core.Application/Service/Doctor/DTO/EducationModel.cs
index 30f41bd07..734c4cbb4 100644
--- a/IRaCIS.Core.Application/Service/Doctor/DTO/EducationModel.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/DTO/EducationModel.cs
@@ -31,8 +31,8 @@
{
public DateTime? CreateTime { get; set; }
- public string BeginDateStr => BeginDate?.ToString("yyyy-MM");
- public string EndDateStr => EndDate?.ToString("yyyy-MM");
+ public string BeginDateStr => BeginDate?.ToString("yyyy/MM");
+ public string EndDateStr => EndDate?.ToString("yyyy/MM");
}
public class PostgraduateCommand
@@ -81,9 +81,9 @@
{
public DateTime? CreateTime { get; set; }
- public string BeginDateStr => BeginDate?.ToString("yyyy-MM");
+ public string BeginDateStr => BeginDate?.ToString("yyyy/MM");
- public string EndDateStr => EndDate?.ToString("yyyy-MM");
+ public string EndDateStr => EndDate?.ToString("yyyy/MM");
}
public class DoctorEducationExperienceDTO
{
From 5e889b15298e5405939b9a34382d37ac411db1ca Mon Sep 17 00:00:00 2001
From: he <109787524@qq.com>
Date: Mon, 11 Nov 2024 11:01:26 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../IRaCIS.Core.Application.xml | 7 +++++
.../Service/Doctor/DTO/HolidayModel.cs | 11 +++++++
.../Service/Doctor/VacationService.cs | 30 +++++++++++++++++++
3 files changed, 48 insertions(+)
diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
index 22f7a4401..ec3b62da9 100644
--- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
+++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
@@ -1310,6 +1310,13 @@
+
+
+ 获取是否休假
+
+
+
+
TrialEmailNoticeConfigService
diff --git a/IRaCIS.Core.Application/Service/Doctor/DTO/HolidayModel.cs b/IRaCIS.Core.Application/Service/Doctor/DTO/HolidayModel.cs
index 6c6a372ea..d422a605c 100644
--- a/IRaCIS.Core.Application/Service/Doctor/DTO/HolidayModel.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/DTO/HolidayModel.cs
@@ -8,4 +8,15 @@
public DateTime EndDate { get; set; }
public int Status { get; set; } = 1;
}
+
+ public class GetIsVacationInDto
+ {
+ public Guid DoctorId { get; set; }
+ }
+
+
+ public class GetIsVacationOutDto
+ {
+ public bool IsVacation { get; set; }
+ }
}
diff --git a/IRaCIS.Core.Application/Service/Doctor/VacationService.cs b/IRaCIS.Core.Application/Service/Doctor/VacationService.cs
index 879bbf542..ed128144e 100644
--- a/IRaCIS.Core.Application/Service/Doctor/VacationService.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/VacationService.cs
@@ -70,6 +70,36 @@ namespace IRaCIS.Core.Application.Service
}
+ ///
+ /// 获取是否休假
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task GetIsVacation(GetIsVacationInDto inDto)
+ {
+ var query = await _vacationRepository.Where(u => u.DoctorId == inDto.DoctorId).ToListAsync();
+
+ bool isVacation = false;
+
+ var now = DateTime.Now;
+ foreach (var item in query)
+ {
+ if (item.StartDate <= now && now <= item.EndDate)
+ {
+ isVacation = true;
+ break;
+ }
+ }
+
+
+ return new GetIsVacationOutDto() {
+
+ IsVacation= isVacation
+ };
+
+ }
+
[NonDynamicMethod]
public async Task OnVacation(Guid doctorId)
{
From 78c707a01818c3f311a5205b593f4e771a82f232 Mon Sep 17 00:00:00 2001
From: he <109787524@qq.com>
Date: Mon, 11 Nov 2024 11:34:42 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Reading/ReadingCriterion/ReadingQuestionService.cs | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingCriterion/ReadingQuestionService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingCriterion/ReadingQuestionService.cs
index fa89dc852..59e746a5e 100644
--- a/IRaCIS.Core.Application/Service/Reading/ReadingCriterion/ReadingQuestionService.cs
+++ b/IRaCIS.Core.Application/Service/Reading/ReadingCriterion/ReadingQuestionService.cs
@@ -578,7 +578,8 @@ namespace IRaCIS.Core.Application.Service
"select","radio","class",
};
var questionList = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.ReadingQuestionCriterionTrialId)
- .Where(x => types.Contains(x.Type))
+ .Where(x => types.Contains(x.Type)||(x.Type=="number"&&x.TypeValue!=string.Empty))
+
.WhereIf(inDto.Id != null, x => x.Id != inDto.Id && x.ParentId != inDto.Id)
.Where(x => x.ReadingCriterionPageId == inDto.ReadingCriterionPageId)
@@ -672,10 +673,10 @@ namespace IRaCIS.Core.Application.Service
var types = new List()
{
- "select","radio"
+ "select","radio","class"
};
var questionList = await _readingTableQuestionTrialRepository.Where(x => x.ReadingQuestionId == inDto.ReadingQuestionId)
- .Where(x => types.Contains(x.Type))
+ .Where(x => types.Contains(x.Type) || (x.Type == "number" && x.TypeValue != string.Empty))
.WhereIf(inDto.Id != null, x => x.Id != inDto.Id && x.ParentId != inDto.Id)
.Select(x => new CriterionOtherQuestionOutDto()