Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
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
黄奎
mall.oytour.com
Commits
881ceb4d
Commit
881ceb4d
authored
Jul 14, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
163224f5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
+19
-4
ActivityModule.cs
Mall.Module.Education/ActivityModule.cs
+7
-1
AppletEducationController.cs
...WebApi/Controllers/Education/AppletEducationController.cs
+1
-1
EducationController.cs
Mall.WebApi/Controllers/Education/EducationController.cs
+11
-2
No files found.
Mall.Module.Education/ActivityModule.cs
View file @
881ceb4d
...
@@ -239,7 +239,7 @@ namespace Mall.Module.Education
...
@@ -239,7 +239,7 @@ namespace Mall.Module.Education
List
<
RB_Education_Consult_Extend
>
joinList
=
new
List
<
RB_Education_Consult_Extend
>();
List
<
RB_Education_Consult_Extend
>
joinList
=
new
List
<
RB_Education_Consult_Extend
>();
if
(!
string
.
IsNullOrEmpty
(
ids
))
if
(!
string
.
IsNullOrEmpty
(
ids
))
{
{
joinList
=
education_ConsultRepository
.
GetCommerceConsultListRepository
(
new
RB_Education_Consult_Extend
()
{
QActivityIds
=
ids
,
OrderStatus
=
1
,
EnrollState
=
1
});
joinList
=
education_ConsultRepository
.
GetCommerceConsultListRepository
_V2
(
new
RB_Education_Consult_Extend
()
{
QActivityIds
=
ids
,
OrderStatus
=
1
,
EnrollState
=
1
});
}
}
foreach
(
var
item
in
list
)
foreach
(
var
item
in
list
)
{
{
...
@@ -687,6 +687,12 @@ namespace Mall.Module.Education
...
@@ -687,6 +687,12 @@ namespace Mall.Module.Education
var
list
=
education_ConsultRepository
.
GetCommerceConsultListRepository_V2
(
query
);
var
list
=
education_ConsultRepository
.
GetCommerceConsultListRepository_V2
(
query
);
if
(
list
.
Any
()
&&
list
.
Any
())
if
(
list
.
Any
()
&&
list
.
Any
())
{
{
if
(
list
.
Any
(
x
=>
x
.
EduUserId
>
0
))
{
string
qIds
=
string
.
Join
(
","
,
list
.
Where
(
x
=>
x
.
EduUserId
>
0
).
Distinct
().
Select
(
x
=>
x
.
EduUserId
));
var
employeeList
=
RB_AccountRepository
.
GetEmployeeListRepository
(
new
Employee_ViewModel
{
QIds
=
qIds
}).
ToList
();
list
.
ForEach
(
x
=>
x
.
EduSellName
=
x
.
EduUserId
>
0
?
employeeList
.
Where
(
y
=>
y
.
Id
==
x
.
EduUserId
).
FirstOrDefault
()?.
EmployeeName
:
""
);
}
List
<
RB_Finance_Extend
>
flist
=
new
List
<
RB_Finance_Extend
>();
List
<
RB_Finance_Extend
>
flist
=
new
List
<
RB_Finance_Extend
>();
string
orderIds
=
string
.
Join
(
","
,
list
.
Select
(
x
=>
x
.
Id
));
string
orderIds
=
string
.
Join
(
","
,
list
.
Select
(
x
=>
x
.
Id
));
flist
=
financeRepository
.
GetListJH
(
new
RB_Finance_Extend
()
{
ReFinanceIds2
=
orderIds
});
flist
=
financeRepository
.
GetListJH
(
new
RB_Finance_Extend
()
{
ReFinanceIds2
=
orderIds
});
...
...
Mall.WebApi/Controllers/Education/AppletEducationController.cs
View file @
881ceb4d
...
@@ -1856,7 +1856,7 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -1856,7 +1856,7 @@ namespace Mall.WebApi.Controllers.Education
if
(
model
!=
null
)
if
(
model
!=
null
)
{
{
model
.
EducationConsultList
=
new
List
<
RB_Education_Consult_Extend
>();
model
.
EducationConsultList
=
new
List
<
RB_Education_Consult_Extend
>();
model
.
EducationConsultList
=
activityModule
.
GetCommerceConsultListRepository
(
new
RB_Education_Consult_Extend
{
ActivityId
=
Id
,
TenantId
=
userInfo
.
TenantId
,
MallBaseId
=
userInfo
.
MallBaseId
,
EnrollState
=
1
,
OrderStatus
=
1
});
model
.
EducationConsultList
=
activityModule
.
GetCommerceConsultListRepository
_V2
(
new
RB_Education_Consult_Extend
{
ActivityId
=
Id
,
TenantId
=
userInfo
.
TenantId
,
MallBaseId
=
userInfo
.
MallBaseId
,
EnrollState
=
1
,
OrderStatus
=
1
});
var
group
=
activityModule
.
GetActivitySummaryGroupList
(
new
RB_Education_ActivitySummaryGroup_Extend
{
ActivityId
=
model
.
Id
}).
OrderByDescending
(
x
=>
x
.
Type
);
var
group
=
activityModule
.
GetActivitySummaryGroupList
(
new
RB_Education_ActivitySummaryGroup_Extend
{
ActivityId
=
model
.
Id
}).
OrderByDescending
(
x
=>
x
.
Type
);
var
fileList
=
activityModule
.
GetActivitySummaryFileList
(
new
RB_Education_ActivitySummaryFile_Extend
{
ActivityId
=
model
.
Id
});
var
fileList
=
activityModule
.
GetActivitySummaryFileList
(
new
RB_Education_ActivitySummaryFile_Extend
{
ActivityId
=
model
.
Id
});
...
...
Mall.WebApi/Controllers/Education/EducationController.cs
View file @
881ceb4d
...
@@ -2281,6 +2281,15 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2281,6 +2281,15 @@ namespace Mall.WebApi.Controllers.Education
EndTime
=
x
.
EndTime
.
HasValue
?
x
.
EndTime
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
:
""
,
EndTime
=
x
.
EndTime
.
HasValue
?
x
.
EndTime
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
:
""
,
StartTime
=
x
.
StartTime
.
HasValue
?
x
.
StartTime
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
:
""
,
StartTime
=
x
.
StartTime
.
HasValue
?
x
.
StartTime
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
:
""
,
x
.
CoverImg
,
x
.
CoverImg
,
x
.
Income
,
x
.
RefundPrice
,
PlatformTax
=
x
.
PlatformTax
,
//(x.PaymentWay == OrderPaymentTypeEnum.OnlinePayment ? ((x.Status == 0 && x.OrderStatus == 1) ? (Math.Round((Convert.ToDecimal(Config.SettlementRate) / 100) * (Convert.ToDecimal(x.Money)), 2, MidpointRounding.AwayFromZero)) : 0) : x.PlatformTax),
DueInMoney
=
x
.
Money
-
x
.
Income
-
x
.
PlatformTax
-
x
.
RefundPrice
,
PaymentWay
=
x
.
PaymentWay
.
HasValue
?
(
int
)
x
.
PaymentWay
:
0
,
PaymentWayName
=
(
x
.
Money
==
0
&&
x
.
TotalPoint
==
0
)?
"免费"
:(
x
.
PaymentWay
.
HasValue
?
EnumHelper
.
GetEnumName
(
x
.
PaymentWay
)
:
""
),
x
.
EduSellName
,
x
.
EduUserId
,
CreateTime
=
x
.
CreateTime
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
),
IncomeFinanceList
=
(
x
.
FinanceList
!=
null
&&
x
.
FinanceList
.
Any
())
?
x
.
FinanceList
.
Where
(
x
=>
x
.
Type
==
WFTempLateClassEnum
.
IN
&&
x
.
ReFinanceId2
>
0
).
ToList
()
:
new
List
<
Model
.
Extend
.
Finance
.
RB_Finance_Extend
>(),
IncomeFinanceList
=
(
x
.
FinanceList
!=
null
&&
x
.
FinanceList
.
Any
())
?
x
.
FinanceList
.
Where
(
x
=>
x
.
Type
==
WFTempLateClassEnum
.
IN
&&
x
.
ReFinanceId2
>
0
).
ToList
()
:
new
List
<
Model
.
Extend
.
Finance
.
RB_Finance_Extend
>(),
ExpendFinanceList
=
(
x
.
FinanceList
!=
null
&&
x
.
FinanceList
.
Any
())
?
x
.
FinanceList
.
Where
(
x
=>
x
.
Type
==
WFTempLateClassEnum
.
OUT
&&
x
.
ReFinanceId2
>
0
).
ToList
()
:
new
List
<
Model
.
Extend
.
Finance
.
RB_Finance_Extend
>(),
ExpendFinanceList
=
(
x
.
FinanceList
!=
null
&&
x
.
FinanceList
.
Any
())
?
x
.
FinanceList
.
Where
(
x
=>
x
.
Type
==
WFTempLateClassEnum
.
OUT
&&
x
.
ReFinanceId2
>
0
).
ToList
()
:
new
List
<
Model
.
Extend
.
Finance
.
RB_Finance_Extend
>(),
});
;
});
;
...
@@ -2348,7 +2357,7 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2348,7 +2357,7 @@ namespace Mall.WebApi.Controllers.Education
x
.
Remark
,
x
.
Remark
,
x
.
IsApplyForCancel
,
x
.
IsApplyForCancel
,
PaymentWay
=
x
.
PaymentWay
.
HasValue
?
(
int
)
x
.
PaymentWay
:
0
,
PaymentWay
=
x
.
PaymentWay
.
HasValue
?
(
int
)
x
.
PaymentWay
:
0
,
PaymentWayName
=
x
.
PaymentWay
.
HasValue
?
EnumHelper
.
GetEnumName
(
x
.
PaymentWay
)
:
""
,
PaymentWayName
=
(
x
.
Money
==
0
&&
x
.
TotalPoint
==
0
)
?
"免费"
:
(
x
.
PaymentWay
.
HasValue
?
EnumHelper
.
GetEnumName
(
x
.
PaymentWay
)
:
""
)
,
x
.
OrderStatus
,
x
.
OrderStatus
,
x
.
EduSellName
,
x
.
EduSellName
,
x
.
EduUserId
,
x
.
EduUserId
,
...
@@ -2678,7 +2687,7 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -2678,7 +2687,7 @@ namespace Mall.WebApi.Controllers.Education
List
<
RB_Student
>
result
=
new
List
<
RB_Student
>();
List
<
RB_Student
>
result
=
new
List
<
RB_Student
>();
foreach
(
var
item
in
studentList
)
foreach
(
var
item
in
studentList
)
{
{
if
(!
result
.
Any
(
x
=>
x
.
StuId
==
item
.
StuId
))
if
(!
result
.
Any
(
x
=>
x
.
StuId
==
item
.
StuId
))
{
{
result
.
Add
(
item
);
result
.
Add
(
item
);
}
}
...
...
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