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
0c4ae316
Commit
0c4ae316
authored
Feb 22, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
8d52ca41
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
32 deletions
+18
-32
RB_Commerce_Activity_Extend.cs
...Model/Extend/TradePavilion/RB_Commerce_Activity_Extend.cs
+5
-0
CommerceActivityModule.cs
Mall.Module.TradePavilion/CommerceActivityModule.cs
+10
-2
RB_Commerce_ConsultRepository.cs
...Repository/TradePavilion/RB_Commerce_ConsultRepository.cs
+2
-6
TradeController.cs
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
+1
-24
No files found.
Mall.Model/Extend/TradePavilion/RB_Commerce_Activity_Extend.cs
View file @
0c4ae316
...
@@ -32,6 +32,11 @@ namespace Mall.Model.Extend.TradePavilion
...
@@ -32,6 +32,11 @@ namespace Mall.Model.Extend.TradePavilion
/// </summary>
/// </summary>
public
List
<
RB_Commerce_Details_Extend
>
CommerceDetailsList
{
get
;
set
;
}
public
List
<
RB_Commerce_Details_Extend
>
CommerceDetailsList
{
get
;
set
;
}
/// <summary>
/// 报名列表
/// </summary>
public
List
<
RB_Commerce_Consult_Extend
>
CommerceConsultList
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 活动状态
/// 活动状态
/// </summary>
/// </summary>
...
...
Mall.Module.TradePavilion/CommerceActivityModule.cs
View file @
0c4ae316
...
@@ -42,13 +42,21 @@ namespace Mall.Module.TradePavilion
...
@@ -42,13 +42,21 @@ namespace Mall.Module.TradePavilion
/// <param name="query"></param>
/// <param name="query"></param>
/// <param name="isQuerySignup">是否查询报名名单</param>
/// <param name="isQuerySignup">是否查询报名名单</param>
/// <returns></returns>
/// <returns></returns>
public
List
<
RB_Commerce_Activity_Extend
>
GetCommerceActivityPageListModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Commerce_Activity_Extend
query
,
bool
isQuerySignup
)
public
List
<
RB_Commerce_Activity_Extend
>
GetCommerceActivityPageListModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Commerce_Activity_Extend
query
,
bool
isQuerySignup
=
false
)
{
{
var
list
=
commerce_ActivityRepository
.
GetCommerceActivityPageListRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
var
list
=
commerce_ActivityRepository
.
GetCommerceActivityPageListRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
if
(
list
!=
null
&&
isQuerySignup
)
if
(
list
!=
null
&&
isQuerySignup
)
{
{
string
ids
=
string
.
Join
(
","
,
list
.
Select
(
qitem
=>
qitem
.
Id
));
string
ids
=
string
.
Join
(
","
,
list
.
Select
(
qitem
=>
qitem
.
Id
));
var
joinList
=
List
<
RB_Commerce_Consult_Extend
>
joinList
=
new
List
<
RB_Commerce_Consult_Extend
>();
if
(!
string
.
IsNullOrEmpty
(
ids
))
{
joinList
=
commerce_ConsultRepository
.
GetCommerceConsultListRepository
(
new
RB_Commerce_Consult_Extend
()
{
QActivityIds
=
ids
});
}
foreach
(
var
item
in
list
)
{
item
.
CommerceConsultList
=
joinList
?.
Where
(
qitem
=>
qitem
.
ActivityId
==
item
.
Id
)?.
ToList
()
??
new
List
<
RB_Commerce_Consult_Extend
>();
}
}
}
return
list
;
return
list
;
}
}
...
...
Mall.Repository/TradePavilion/RB_Commerce_ConsultRepository.cs
View file @
0c4ae316
...
@@ -17,14 +17,10 @@ namespace Mall.Repository.TradePavilion
...
@@ -17,14 +17,10 @@ namespace Mall.Repository.TradePavilion
/// <summary>
/// <summary>
/// 获取商会活动报名分页列表
/// 获取商会活动报名分页列表
/// </summary>
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <param name="query"></param>
/// <returns></returns>
/// <returns></returns>
public
List
<
RB_Commerce_Consult_Extend
>
GetCommerceConsult
PageListRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Commerce_Consult_Extend
query
)
public
List
<
RB_Commerce_Consult_Extend
>
GetCommerceConsult
ListRepository
(
RB_Commerce_Consult_Extend
query
)
{
{
rowsCount
=
0
;
DynamicParameters
parameters
=
new
DynamicParameters
();
DynamicParameters
parameters
=
new
DynamicParameters
();
StringBuilder
builder
=
new
StringBuilder
();
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
builder
.
AppendFormat
(
@"
...
@@ -65,7 +61,7 @@ WHERE 1=1
...
@@ -65,7 +61,7 @@ WHERE 1=1
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Commerce_Consult_Extend
.
UserId
),
query
.
UserId
);
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Commerce_Consult_Extend
.
UserId
),
query
.
UserId
);
}
}
}
}
return
Get
Page
<
RB_Commerce_Consult_Extend
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
(),
parameters
).
ToList
();
return
Get
<
RB_Commerce_Consult_Extend
>(
builder
.
ToString
(),
parameters
).
ToList
();
}
}
}
}
...
...
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
View file @
0c4ae316
...
@@ -513,30 +513,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -513,30 +513,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
return
ApiResult
.
Success
(
data
:
pageModel
);
return
ApiResult
.
Success
(
data
:
pageModel
);
}
}
/// <summary>
/// 新增修改商会活动报名
/// </summary>
/// <returns></returns>
public
ApiResult
SetCommerceConsult
()
{
JObject
jObj
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
extModel
=
new
RB_Commerce_Consult_Extend
()
{
Id
=
jObj
.
GetInt
(
"Id"
),
ActivityId
=
jObj
.
GetInt
(
"ActivityId"
),
UserId
=
jObj
.
GetInt
(
"UserId"
),
LinkMan
=
jObj
.
GetStringValue
(
"LinkMan"
),
LinkTel
=
jObj
.
GetStringValue
(
"LinkTel"
),
};
extModel
.
Status
=
Common
.
Enum
.
DateStateEnum
.
Normal
;
extModel
.
MallBaseId
=
RequestParm
.
MallBaseId
;
extModel
.
TenantId
=
RequestParm
.
TenantId
;
Int32
.
TryParse
(
RequestParm
.
uid
,
out
int
Uid
);
extModel
.
UserId
=
Uid
;
extModel
.
CreateTime
=
DateTime
.
Now
;
var
flag
=
consultModule
.
SetCommerceConsultModule
(
extModel
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// <summary>
/// 根据编号获取商会活动报名实体
/// 根据编号获取商会活动报名实体
...
...
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