|
|
@ -1,5 +1,4 @@ |
|
|
|
using MongoDB.Driver.Linq; |
|
|
|
using MongoDB.Driver.Linq; |
|
|
|
using System.Drawing.Drawing2D; |
|
|
|
|
|
|
|
using static Tiobon.Core.Model.Consts; |
|
|
|
using static Tiobon.Core.Model.Consts; |
|
|
|
|
|
|
|
|
|
|
|
namespace Tiobon.Core.Services; |
|
|
|
namespace Tiobon.Core.Services; |
|
|
@ -458,7 +457,7 @@ public class Ghre_ExamServices : BaseServices<Ghre_Exam, Ghre_ExamDto, InsertGhr |
|
|
|
public async Task<ServicePageResult<Ghre_ExamDto>> QueryFilterPage1(QueryBody filter, string status = null, List<long> ids = null) |
|
|
|
public async Task<ServicePageResult<Ghre_ExamDto>> QueryFilterPage1(QueryBody filter, string status = null, List<long> ids = null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
RefAsync<int> totalCount = 0; |
|
|
|
RefAsync<int> totalCount = 0; |
|
|
|
string sql = @"SELECT *
|
|
|
|
string sql = @$"SELECT *
|
|
|
|
FROM (SELECT A.*, |
|
|
|
FROM (SELECT A.*, |
|
|
|
CASE |
|
|
|
CASE |
|
|
|
WHEN A.LinkType = 'CourseId' THEN B.CourseName |
|
|
|
WHEN A.LinkType = 'CourseId' THEN B.CourseName |
|
|
@ -473,7 +472,7 @@ public class Ghre_ExamServices : BaseServices<Ghre_Exam, Ghre_ExamDto, InsertGhr |
|
|
|
LEFT JOIN Ghre_Course B ON A.CourseId = B.Id |
|
|
|
LEFT JOIN Ghre_Course B ON A.CourseId = B.Id |
|
|
|
LEFT JOIN Ghre_CourseScene D ON A.CourseSceneId = D.Id |
|
|
|
LEFT JOIN Ghre_CourseScene D ON A.CourseSceneId = D.Id |
|
|
|
LEFT JOIN Ghre_ExamPaper E ON A.ExamPaperId = E.Id |
|
|
|
LEFT JOIN Ghre_ExamPaper E ON A.ExamPaperId = E.Id |
|
|
|
WHERE A.IsEnable = 1) A";
|
|
|
|
WHERE A.IsEnable = 1 AND dbo.FUserDataBelongPriv ({App.User.ID}, A.DataBelongID, NULL) = 1) A";
|
|
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrWhiteSpace(filter.orderBy)) |
|
|
|
if (string.IsNullOrWhiteSpace(filter.orderBy)) |
|
|
|
filter.orderBy = "CreateTime1 DESC"; |
|
|
|
filter.orderBy = "CreateTime1 DESC"; |
|
|
@ -998,6 +997,17 @@ public class Ghre_ExamServices : BaseServices<Ghre_Exam, Ghre_ExamDto, InsertGhr |
|
|
|
required = true, |
|
|
|
required = true, |
|
|
|
multipleSelect = false, |
|
|
|
multipleSelect = false, |
|
|
|
editable = true |
|
|
|
editable = true |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
new DefaultGhre_ExamColumn() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label = "集团数据归属", |
|
|
|
|
|
|
|
field = "DataBelongID", |
|
|
|
|
|
|
|
elementType = "ApiSelect", |
|
|
|
|
|
|
|
required = false, |
|
|
|
|
|
|
|
multipleSelect = false, |
|
|
|
|
|
|
|
editable = true, |
|
|
|
|
|
|
|
dataSource = "CommonList_DataBelongAll", |
|
|
|
|
|
|
|
placeholder = "" |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|