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
60cc3d4e
Commit
60cc3d4e
authored
Nov 24, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
23580fd1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
CustomerTaskModule.cs
Edu.Module.Customer/CustomerTaskModule.cs
+10
-2
RB_Customer_TaskDetailsRepository.cs
Edu.Repository/Customer/RB_Customer_TaskDetailsRepository.cs
+2
-2
No files found.
Edu.Module.Customer/CustomerTaskModule.cs
View file @
60cc3d4e
...
@@ -47,8 +47,15 @@ namespace Edu.Module.Customer
...
@@ -47,8 +47,15 @@ namespace Edu.Module.Customer
QTaskIds
=
Ids
QTaskIds
=
Ids
});
});
if
(
detailsList
!=
null
&&
detailsList
.
Count
>
0
)
if
(
detailsList
!=
null
&&
detailsList
.
Count
>
0
)
{
{
var
groupList
=
detailsList
.
GroupBy
(
qitem
=>
new
{
qitem
.
TaskType
}).
Select
(
qitem
=>
new
{
qitem
.
Key
.
TaskType
});
foreach
(
var
item
in
groupList
)
{
if
(
item
.
TaskType
==
Common
.
Enum
.
Customer
.
TaskTypeEnum
.
Course
)
{
string
courseIds
=
string
.
Join
(
","
,
detailsList
.
Where
(
qitem
=>
qitem
.
TaskType
==
item
.
TaskType
).
Select
(
qitem
=>
qitem
.
TargetId
));
}
}
}
}
}
}
foreach
(
var
item
in
list
)
foreach
(
var
item
in
list
)
...
@@ -127,6 +134,7 @@ namespace Edu.Module.Customer
...
@@ -127,6 +134,7 @@ namespace Edu.Module.Customer
}
}
foreach
(
var
item
in
model
.
DetailsList
)
foreach
(
var
item
in
model
.
DetailsList
)
{
{
item
.
TaskId
=
model
.
Id
;
if
(
item
.
DetailId
==
0
)
if
(
item
.
DetailId
==
0
)
{
{
detailsRepository
.
Insert
(
item
);
detailsRepository
.
Insert
(
item
);
...
...
Edu.Repository/Customer/RB_Customer_TaskDetailsRepository.cs
View file @
60cc3d4e
...
@@ -21,8 +21,8 @@ namespace Edu.Repository.Customer
...
@@ -21,8 +21,8 @@ namespace Edu.Repository.Customer
{
{
StringBuilder
builder
=
new
StringBuilder
();
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
builder
.
AppendFormat
(
@"
SELECT A.*
,IFNULL(B.CourseName,'') AS TargetName
SELECT A.*
FROM RB_Customer_TaskDetails AS A
LEFT JOIN rb_course AS B ON (A.TargetId=B.CourseId AND A.TaskType=1)
FROM RB_Customer_TaskDetails AS A
WHERE 1=1
WHERE 1=1
"
);
"
);
if
(
query
!=
null
)
if
(
query
!=
null
)
...
...
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