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
6a7ead0c
Commit
6a7ead0c
authored
Feb 24, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询修改
parent
1c292bd5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
1 deletion
+27
-1
RB_Commerce_Activity_Extend.cs
...Model/Extend/TradePavilion/RB_Commerce_Activity_Extend.cs
+10
-0
RB_Commerce_News_Extend.cs
Mall.Model/Extend/TradePavilion/RB_Commerce_News_Extend.cs
+1
-1
RB_Commerce_ActivityRepository.cs
...epository/TradePavilion/RB_Commerce_ActivityRepository.cs
+1
-0
AppletTradeController.cs
...WebApi/Controllers/TradePavilion/AppletTradeController.cs
+15
-0
No files found.
Mall.Model/Extend/TradePavilion/RB_Commerce_Activity_Extend.cs
View file @
6a7ead0c
...
...
@@ -86,5 +86,15 @@ namespace Mall.Model.Extend.TradePavilion
/// 报名人数
/// </summary>
public
int
JoinNum
{
get
;
set
;
}
/// <summary>
/// 创建人
/// </summary>
public
string
CreateByName
{
get
;
set
;
}
/// <summary>
/// 是否报名(0-未报名,1-已报名)
/// </summary>
public
int
IsJoinActivity
{
get
;
set
;
}
}
}
Mall.Model/Extend/TradePavilion/RB_Commerce_News_Extend.cs
View file @
6a7ead0c
...
...
@@ -13,6 +13,6 @@ namespace Mall.Model.Extend.TradePavilion
/// <summary>
/// 发布时间
/// </summary>
public
string
PublishTimeStr
{
get
{
return
Common
.
ConvertHelper
.
Format
Tim
e
(
this
.
PublishTime
);
}
}
public
string
PublishTimeStr
{
get
{
return
Common
.
ConvertHelper
.
Format
Dat
e
(
this
.
PublishTime
);
}
}
}
}
Mall.Repository/TradePavilion/RB_Commerce_ActivityRepository.cs
View file @
6a7ead0c
...
...
@@ -111,6 +111,7 @@ WHERE 1=1
builder
.
AppendFormat
(
" AND D.{0}={1} "
,
nameof
(
RB_Commerce_Consult_Extend
.
UserId
),
query
.
CreateBy
);
}
}
builder
.
AppendFormat
(
" ORDER BY A.{0} DESC "
,
nameof
(
RB_Commerce_Activity_Extend
.
Id
));
return
GetPage
<
RB_Commerce_Activity_Extend
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
(),
parameters
).
ToList
();
}
}
...
...
Mall.WebApi/Controllers/TradePavilion/AppletTradeController.cs
View file @
6a7ead0c
...
...
@@ -2,6 +2,7 @@
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
using
Mall.CacheManager.User
;
using
Mall.Common.API
;
using
Mall.Common.Plugin
;
using
Mall.Model.Extend.TradePavilion
;
...
...
@@ -205,6 +206,20 @@ namespace Mall.WebApi.Controllers.TradePavilion
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
Id
=
parms
.
GetInt
(
"Id"
,
0
);
var
extModel
=
activityModule
.
GetCommerceActivityModule
(
Id
);
var
userInfo
=
AppletUserInfo
;
if
(
extModel
!=
null
&&
extModel
.
CreateBy
>
0
)
{
extModel
.
CreateByName
=
UserReidsCache
.
GetUserLoginInfo
(
extModel
.
CreateBy
)?.
Name
??
""
;
var
list
=
consultModule
.
GetCommerceConsultListModule
(
new
RB_Commerce_Consult_Extend
()
{
ActivityId
=
Id
,
UserId
=
userInfo
.
UserId
});
if
(
list
!=
null
&&
list
.
Count
>
0
)
{
extModel
.
IsJoinActivity
=
1
;
}
else
{
extModel
.
IsJoinActivity
=
0
;
}
}
return
ApiResult
.
Success
(
data
:
extModel
);
}
...
...
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