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
91cd8d16
Commit
91cd8d16
authored
Nov 11, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增插件配置
parent
0eaf6554
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
97 additions
and
0 deletions
+97
-0
RB_Marketing_Config.cs
Mall.Model/Entity/BaseSetUp/RB_Marketing_Config.cs
+28
-0
RB_Marketing_Config_Extend.cs
Mall.Model/Extend/BaseSetUp/RB_Marketing_Config_Extend.cs
+16
-0
MarketingPlugModule.cs
Mall.Module.BaseSetUp/MarketingPlugModule.cs
+15
-0
RB_Marketing_ConfigRepository.cs
Mall.Repository/BaseSetUp/RB_Marketing_ConfigRepository.cs
+38
-0
No files found.
Mall.Model/Entity/BaseSetUp/RB_Marketing_Config.cs
0 → 100644
View file @
91cd8d16
using
System
;
using
VT.FW.DB
;
namespace
Mall.Model.Entity.BaseSetUp
{
/// <summary>
/// 营销中心插件配置实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Marketing_Config
{
/// <summary>
/// 商城营销中心插件配置主键
/// </summary>
public
int
PConfigId
{
get
;
set
;
}
/// <summary>
/// 商户编号
/// </summary>
public
int
TenantId
{
get
;
set
;
}
/// <summary>
/// 插件编号
/// </summary>
public
int
PlugId
{
get
;
set
;
}
}
}
\ No newline at end of file
Mall.Model/Extend/BaseSetUp/RB_Marketing_Config_Extend.cs
0 → 100644
View file @
91cd8d16
using
Mall.Model.Entity.BaseSetUp
;
using
System
;
using
VT.FW.DB
;
namespace
Mall.Model.Extend.BaseSetUp
{
/// <summary>
/// 营销中心插件配置扩展实体类
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Marketing_Config_Extend
:
RB_Marketing_Config
{
}
}
\ No newline at end of file
Mall.Module.BaseSetUp/MarketingPlugModule.cs
View file @
91cd8d16
...
...
@@ -17,6 +17,11 @@ namespace Mall.Module.BaseSetUp
/// </summary>
private
readonly
RB_Marketing_PlugRepository
marketing_PlugRepository
=
new
RB_Marketing_PlugRepository
();
/// <summary>
/// 营销中心插件配置仓储层对象
/// </summary>
private
readonly
RB_Marketing_ConfigRepository
marketing_ConfigRepository
=
new
RB_Marketing_ConfigRepository
();
/// <summary>
/// 获取营销中心插件配置分页列表
/// </summary>
...
...
@@ -95,5 +100,15 @@ namespace Mall.Module.BaseSetUp
bool
flag
=
marketing_PlugRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Marketing_Plug_Extend
.
PId
),
PId
));
return
flag
;
}
/// <summary>
/// 获取营销中心插件配置列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Marketing_Config_Extend
>
GetMarketingConfigListModule
(
RB_Marketing_Config_Extend
query
)
{
return
marketing_ConfigRepository
.
GetMarketingConfigListRepository
(
query
);
}
}
}
\ No newline at end of file
Mall.Repository/BaseSetUp/RB_Marketing_ConfigRepository.cs
0 → 100644
View file @
91cd8d16
using
Mall.Model.Entity.BaseSetUp
;
using
Mall.Model.Extend.BaseSetUp
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
namespace
Mall.Repository.BaseSetUp
{
/// <summary>
/// 营销中心插件配置仓储层
/// </summary>
public
class
RB_Marketing_ConfigRepository
:
BaseRepository
<
RB_Marketing_Config
>
{
/// <summary>
/// 获取营销中心插件配置列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Marketing_Config_Extend
>
GetMarketingConfigListRepository
(
RB_Marketing_Config_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
Append
(
@" SELECT * FROM RB_Marketing_Config WHERE 1=1 "
);
if
(
query
!=
null
)
{
if
(
query
.
TenantId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Marketing_Config_Extend
.
TenantId
),
query
.
TenantId
);
}
return
Get
<
RB_Marketing_Config_Extend
>(
builder
.
ToString
()).
ToList
();
}
else
{
return
new
List
<
RB_Marketing_Config_Extend
>();
}
}
}
}
\ No newline at end of file
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