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
06898553
Commit
06898553
authored
Mar 23, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序载体
parent
f882e191
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
72 additions
and
1 deletion
+72
-1
RB_Carrier_Extend.cs
Mall.Model/Extend/TradePavilion/RB_Carrier_Extend.cs
+10
-1
RB_CarrierRepository.cs
Mall.Repository/TradePavilion/RB_CarrierRepository.cs
+8
-0
AppletTradeController.cs
...WebApi/Controllers/TradePavilion/AppletTradeController.cs
+54
-0
No files found.
Mall.Model/Extend/TradePavilion/RB_Carrier_Extend.cs
View file @
06898553
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
Mall.Common.Plugin
;
using
Mall.Model.Entity.TradePavilion
;
namespace
Mall.Model.Extend.TradePavilion
...
...
@@ -17,7 +18,10 @@ namespace Mall.Model.Extend.TradePavilion
/// </summary>
public
List
<
string
>
BannerList
{
get
;
set
;
}
/// <summary>
/// 排序
/// </summary>
public
int
OrderBy
{
get
;
set
;
}
/// <summary>
/// 开业时间
...
...
@@ -37,5 +41,10 @@ namespace Mall.Model.Extend.TradePavilion
/// 站点名称
/// </summary>
public
string
MetroName
{
get
;
set
;
}
/// <summary>
/// 项目类型名称
/// </summary>
public
string
ProjectTypeName
{
get
{
return
this
.
ProjectType
!=
null
?
this
.
ProjectType
.
GetEnumName
()
:
""
;
}
}
}
}
Mall.Repository/TradePavilion/RB_CarrierRepository.cs
View file @
06898553
...
...
@@ -73,6 +73,14 @@ namespace Mall.Repository.TradePavilion
}
builder
.
Append
(
" )"
);
}
if
(
query
.
OrderBy
==
1
)
{
builder
.
Append
(
$" order by
{
nameof
(
RB_Carrier_Extend
.
CreateDate
)}
desc"
);
}
else
if
(
query
.
OrderBy
==
2
)
{
builder
.
Append
(
$" order by
{
nameof
(
RB_Carrier_Extend
.
OpenTime
)}
desc"
);
}
}
return
GetPage
<
RB_Carrier_Extend
>(
pageIndex
,
pageSize
,
out
rowCount
,
builder
.
ToString
()).
ToList
();
}
...
...
Mall.WebApi/Controllers/TradePavilion/AppletTradeController.cs
View file @
06898553
...
...
@@ -551,6 +551,60 @@ namespace Mall.WebApi.Controllers.TradePavilion
}
#
endregion
#
region
载体管理
/// <summary>
/// 获取商会活动类型列表
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
AllowAnonymous
]
public
ApiResult
GetCarrierPageList
()
{
var
userInfo
=
AppletUserInfo
;
ResultPageModel
pageModel
=
JsonConvert
.
DeserializeObject
<
ResultPageModel
>(
RequestParm
.
msg
.
ToString
());
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
query
=
new
RB_Carrier_Extend
()
{
MetroName
=
parms
.
GetStringValue
(
"MetroName"
),
CarrierName
=
parms
.
GetStringValue
(
"CarrierName"
),
MetroNum
=
parms
.
GetInt
(
"MetroNum"
,
0
),
Developers
=
parms
.
GetStringValue
(
"Developers"
),
StartOpenTime
=
parms
.
GetStringValue
(
"StartOpenTime"
),
EndOpenTime
=
parms
.
GetStringValue
(
"EndOpenTime"
),
ProjectType
=
(
Common
.
Enum
.
TradePavilion
.
ProjectTypeEnum
)
parms
.
GetInt
(
"ProjectType"
,
0
),
OrderBy
=
parms
.
GetInt
(
"OrderBy"
,
0
)
};
query
.
MallBaseId
=
RequestParm
.
MallBaseId
;
query
.
TenantId
=
userInfo
?.
TenantId
??
0
;
var
list
=
carrierModule
.
GetCarrierPageList
(
pageModel
.
pageIndex
,
pageModel
.
pageSize
,
out
long
count
,
query
);
pageModel
.
count
=
Convert
.
ToInt32
(
count
);
pageModel
.
pageData
=
list
;
return
ApiResult
.
Success
(
data
:
pageModel
);
}
/// <summary>
/// 获取载体实体
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
AllowAnonymous
]
public
ApiResult
GetCarrierDetails
()
{
var
userInfo
=
AppletUserInfo
;
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
query
=
new
RB_Carrier_Extend
()
{
ID
=
parms
.
GetInt
(
"ID"
,
0
),
};
query
.
MallBaseId
=
RequestParm
.
MallBaseId
;
query
.
TenantId
=
userInfo
?.
TenantId
??
0
;
var
extModel
=
carrierModule
.
GetCarrierModel
(
query
);
return
ApiResult
.
Success
(
data
:
extModel
);
}
#
endregion
#
region
品牌
/// <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