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
d7ea9a61
Commit
d7ea9a61
authored
Apr 21, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
也
parent
bef5fa81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
113 deletions
+0
-113
Mall.Module.User.csproj
Mall/Mall.Module.User/Mall.Module.User.csproj
+0
-12
TenantModule.cs
Mall/Mall.Module.User/TenantModule.cs
+0
-101
No files found.
Mall/Mall.Module.User/Mall.Module.User.csproj
deleted
100644 → 0
View file @
bef5fa81
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Mall.Model\Mall.Model.csproj" />
<ProjectReference Include="..\Mall.Repository\Mall.Repository.csproj" />
</ItemGroup>
</Project>
Mall/Mall.Module.User/TenantModule.cs
deleted
100644 → 0
View file @
bef5fa81
using
Mall.Model.Extend.User
;
using
Mall.Repository
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Module.User
{
/// <summary>
/// 商户表处理层
/// </summary>
public
class
TenantModule
{
/// <summary>
/// 商户仓储层对象
/// </summary>
private
Mall
.
Repository
.
User
.
RB_TenantRepository
tenantRepository
=
new
Repository
.
User
.
RB_TenantRepository
();
/// <summary>
/// 根据查询条件获取商户列表
/// </summary>
/// <param name="query">查询条件</param>
/// <returns></returns>
public
List
<
RB_Tenant_Extend
>
GetTenantListModule
(
RB_Tenant_Extend
query
)
{
return
tenantRepository
.
GetListRepository
(
query
);
}
/// <summary>
/// 获取商户根也列表
/// </summary>
/// <param name="pageIndex">页码</param>
/// <param name="pageSize">每页显示条数</param>
/// <param name="rowCount">总条数</param>
/// <param name="query">查询条件</param>
/// <returns></returns>
public
List
<
RB_Tenant_Extend
>
GetTenantPageListModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_Tenant_Extend
query
)
{
return
tenantRepository
.
GetPageListRepository
(
pageIndex
,
pageSize
,
out
rowCount
,
query
);
}
/// <summary>
/// 新增修改商户信息
/// </summary>
/// <param name="extModel"></param>
/// <returns></returns>
public
bool
SetTenantModule
(
RB_Tenant_Extend
extModel
)
{
bool
flag
=
false
;
if
(
extModel
.
TenantId
>
0
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Tenant_Extend
.
MallName
),
extModel
.
MallName
},
};
flag
=
tenantRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Tenant_Extend
.
TenantId
),
extModel
.
TenantId
));
}
else
{
int
NewId
=
tenantRepository
.
Insert
(
extModel
);
extModel
.
TenantId
=
NewId
;
flag
=
NewId
>
0
;
}
return
flag
;
}
/// <summary>
/// 根据编号获取商户信息
/// </summary>
/// <param name="TenantId">商户号</param>
/// <returns></returns>
public
RB_Tenant_Extend
GetTenantModule
(
object
TenantId
)
{
RB_Tenant_Extend
extModel
=
tenantRepository
.
GetEntity
<
RB_Tenant_Extend
>(
TenantId
);
if
(
extModel
==
null
)
{
extModel
=
new
RB_Tenant_Extend
();
}
return
extModel
;
}
/// <summary>
/// 更新账户张婷
/// </summary>
/// <param name="TenantId">商户号</param>
/// <param name="AccountStatus">账户状态</param>
/// <returns></returns>
public
bool
SetTenantStatusModule
(
object
TenantId
,
int
AccountStatus
)
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Tenant_Extend
.
AccountStatus
),
AccountStatus
},
};
flag
=
tenantRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Tenant_Extend
.
TenantId
),
TenantId
));
return
flag
;
}
}
}
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