Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
5dcaa356
Commit
5dcaa356
authored
Jul 13, 2021
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/education
parents
defd6cee
fdec787f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
3 deletions
+28
-3
RB_Education_Record_ViewModel.cs
Edu.Model/ViewModel/EduTask/RB_Education_Record_ViewModel.cs
+5
-0
EducationReceiptModule.cs
Edu.Module.EduTask/EducationReceiptModule.cs
+22
-2
RB_Education_RecordRepository.cs
Edu.Repository/EduTask/RB_Education_RecordRepository.cs
+1
-1
No files found.
Edu.Model/ViewModel/EduTask/RB_Education_Record_ViewModel.cs
View file @
5dcaa356
...
...
@@ -21,6 +21,11 @@ namespace Edu.Model.ViewModel.EduTask
/// </summary>
public
string
AuditNode
{
get
;
set
;
}
/// <summary>
/// 审核人姓名
/// </summary>
public
string
AuditManName
{
get
;
set
;
}
/// <summary>
/// 新审核人员编号
/// </summary>
...
...
Edu.Module.EduTask/EducationReceiptModule.cs
View file @
5dcaa356
...
...
@@ -84,9 +84,10 @@ namespace Edu.Module.EduTask
List
<
RB_Class_Room_ViewModel
>
roomList
=
new
List
<
RB_Class_Room_ViewModel
>();
var
groupList
=
list
.
GroupBy
(
qitem
=>
new
{
qitem
.
ReceiptType
}).
Select
(
qitem
=>
new
{
qitem
.
Key
.
ReceiptType
});
string
Ids
=
string
.
Join
(
","
,
list
.
Select
(
qitem
=>
qitem
.
Id
));
var
re
levanceList
=
education_RelevanceRepository
.
GetEducationRelevanceListRepository
(
new
RB_Education_Relevance
_ViewModel
()
var
re
cordList
=
education_RecordRepository
.
GetEducationRecordListRepository
(
new
RB_Education_Record
_ViewModel
()
{
QConditionIds
=
Ids
QConditionIds
=
Ids
,
AuditStatus
=
WFRrocessStatus
.
NotAudit
});
foreach
(
var
subItem
in
groupList
)
{
...
...
@@ -181,6 +182,7 @@ namespace Edu.Module.EduTask
}
}
}
foreach
(
var
item
in
list
)
{
object
DataObj
=
new
object
();
...
...
@@ -216,6 +218,23 @@ namespace Edu.Module.EduTask
}
DataObj
=
tempModel
;
}
object
AuditObj
=
new
object
();
if
(
item
.
VerifyStatus
==
WFRrocessStatus
.
NotAudit
)
{
var
tempRecordList
=
recordList
?.
Where
(
qitem
=>
qitem
.
ConditionId
==
item
.
Id
)?.
ToList
();
if
(
tempRecordList
!=
null
&&
tempRecordList
.
Count
>
0
)
{
foreach
(
var
rItem
in
tempRecordList
)
{
rItem
.
AuditManName
=
UserReidsCache
.
GetUserLoginInfo
(
rItem
.
AuditEmId
)?.
AccountName
??
""
;
}
AuditObj
=
new
{
tempRecordList
[
0
].
AuditNode
,
AuditManList
=
tempRecordList
.
Select
(
qitem
=>
new
{
qitem
.
AuditEmId
,
qitem
.
AuditManName
})
};
}
}
var
obj
=
new
{
item
.
Id
,
...
...
@@ -234,6 +253,7 @@ namespace Edu.Module.EduTask
item
.
TeacherName
,
item
.
SchoolName
,
item
.
CourseName
,
AuditObj
,
AuditStatusName
=
item
.
VerifyStatus
==
Common
.
Enum
.
User
.
WFRrocessStatus
.
NotAudit
?
"审核中"
:
item
.
VerifyStatus
.
ToName
(),
};
result
.
Add
(
obj
);
...
...
Edu.Repository/EduTask/RB_Education_RecordRepository.cs
View file @
5dcaa356
...
...
@@ -37,7 +37,7 @@ WHERE 1=1
}
if
(
query
.
AuditStatus
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Education_Record_ViewModel
.
AuditStatus
),
query
.
AuditStatus
);
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Education_Record_ViewModel
.
AuditStatus
),
(
int
)
query
.
AuditStatus
);
}
}
return
Get
<
RB_Education_Record_ViewModel
>(
builder
.
ToString
()).
ToList
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment