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
568bc0f9
Commit
568bc0f9
authored
Dec 08, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
2c6dd821
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
CustomerTaskModule.cs
Edu.Module.Customer/CustomerTaskModule.cs
+22
-0
B2BCustomerController.cs
Edu.WebApi/Controllers/Customer/B2BCustomerController.cs
+13
-0
No files found.
Edu.Module.Customer/CustomerTaskModule.cs
View file @
568bc0f9
...
...
@@ -327,5 +327,27 @@ namespace Edu.Module.Customer
var
list
=
customer_FinishdetailsRepository
.
GetCustomerFinishdetailsPageRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
return
list
;
}
/// <summary>
/// 客户兑换奖品
/// </summary>
/// <returns></returns>
public
virtual
bool
ExchangeKudoModule
(
int
customerId
,
string
exchangeCode
,
out
string
message
)
{
message
=
""
;
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Customer_Finishtask_Extend
.
ExchangeStatus
),
2
}
,
{
nameof
(
RB_Customer_Finishtask_Extend
.
ExchangeTime
),
DateTime
.
Now
},
};
List
<
WhereHelper
>
where
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(
nameof
(
RB_Customer_Finishtask_Extend
.
ExchangeCode
),
exchangeCode
),
new
WhereHelper
(
nameof
(
RB_Customer_Finishtask_Extend
.
CustomerId
),
customerId
),
};
flag
=
customer_FinishtaskRepository
.
Update
(
fileds
,
where
);
return
flag
;
}
}
}
Edu.WebApi/Controllers/Customer/B2BCustomerController.cs
View file @
568bc0f9
...
...
@@ -417,5 +417,18 @@ namespace Edu.WebApi.Controllers.Customer
return
ApiResult
.
Success
(
data
:
pageModel
);
}
#
endregion
/// <summary>
/// 兑换奖品
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
ExchangeKudo
()
{
string
exchangeCode
=
base
.
ParmJObj
.
GetStringValue
(
"ExchangeCode"
);
var
CustomerId
=
base
.
ParmJObj
.
GetInt
(
"CustomerId"
);
bool
flag
=
taskModule
.
ExchangeKudoModule
(
CustomerId
,
exchangeCode
,
out
string
message
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
(
message
:
message
);
}
}
}
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