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
ab4636a1
Commit
ab4636a1
authored
Aug 18, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增实体类
parent
9a50cc3c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
721 additions
and
421 deletions
+721
-421
RB_GroupBuy_Area.cs
Mall.Model/Entity/Product/RB_GroupBuy_Area.cs
+79
-0
RB_GroupBuy_Area_Extend.cs
Mall.Model/Extend/Product/RB_GroupBuy_Area_Extend.cs
+27
-0
RB_Groupbuy_Activity_Extend.cs
Mall.Model/Extend/Product/RB_Groupbuy_Activity_Extend.cs
+5
-0
GroupBuyActivityModule_Edit.cs
Mall.Module.Product/GroupBuyActivityModule_Edit.cs
+126
-421
GroupBuyActivityModule_Query.cs
Mall.Module.Product/GroupBuyActivityModule_Query.cs
+394
-0
RB_GroupBuy_AreaRepository.cs
Mall.Repository/Product/RB_GroupBuy_AreaRepository.cs
+55
-0
Mall.WindowsService.csproj.user
Mall.WindowsService/Mall.WindowsService.csproj.user
+11
-0
FolderProfile.pubxml
...wsService/Properties/PublishProfiles/FolderProfile.pubxml
+18
-0
FolderProfile.pubxml.user
...vice/Properties/PublishProfiles/FolderProfile.pubxml.user
+6
-0
No files found.
Mall.Model/Entity/Product/RB_GroupBuy_Area.cs
0 → 100644
View file @
ab4636a1
using
System
;
using
VT.FW.DB
;
namespace
Mall.Model.Entity.Product
{
/// <summary>
/// 商品关联区域表实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_GroupBuy_Area
{
/// <summary>
/// Id
/// </summary>
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 商品id
/// </summary>
public
int
?
GoodsId
{
get
;
set
;
}
/// <summary>
/// 区域id
/// </summary>
public
int
?
AreaId
{
get
;
set
;
}
/// <summary>
/// 区域类型 1国家 2省 3市 4区
/// </summary>
public
int
?
AreaType
{
get
;
set
;
}
/// <summary>
/// 删除状态
/// </summary>
public
int
?
Status
{
get
;
set
;
}
/// <summary>
/// 商户号
/// </summary>
public
int
TenantId
{
get
;
set
;
}
/// <summary>
/// 小程序id
/// </summary>
public
int
MallBaseId
{
get
;
set
;
}
/// <summary>
/// CreateDate
/// </summary>
public
DateTime
?
CreateDate
{
get
;
set
;
}
}
}
Mall.Model/Extend/Product/RB_GroupBuy_Area_Extend.cs
0 → 100644
View file @
ab4636a1
using
VT.FW.DB
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
Mall.Model.Entity.Product
;
namespace
Mall.Model.Extend.Product
{
/// <summary>
/// 商品关联区域表扩展实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_GroupBuy_Area_Extend
:
RB_GroupBuy_Area
{
/// <summary>
/// 区域名称
/// </summary>
public
string
AreaName
{
get
;
set
;
}
/// <summary>
/// 商品ids
/// </summary>
public
string
GoodsIds
{
get
;
set
;
}
}
}
\ No newline at end of file
Mall.Model/Extend/Product/RB_Groupbuy_Activity_Extend.cs
View file @
ab4636a1
...
@@ -131,5 +131,10 @@ namespace Mall.Model.Extend.Product
...
@@ -131,5 +131,10 @@ namespace Mall.Model.Extend.Product
/// 服务列表
/// 服务列表
/// </summary>
/// </summary>
public
List
<
RB_ImageCommonModel
>
ServiceList
{
get
;
set
;
}
public
List
<
RB_ImageCommonModel
>
ServiceList
{
get
;
set
;
}
/// <summary>
/// 区域列表
/// </summary>
public
List
<
RB_GroupBuy_Area_Extend
>
AreaList
{
get
;
set
;
}
}
}
}
}
Mall.Module.Product/GroupBuyActivityModule.cs
→
Mall.Module.Product/GroupBuyActivityModule
_Edit
.cs
View file @
ab4636a1
This diff is collapsed.
Click to expand it.
Mall.Module.Product/GroupBuyActivityModule_Query.cs
0 → 100644
View file @
ab4636a1
This diff is collapsed.
Click to expand it.
Mall.Repository/Product/RB_GroupBuy_AreaRepository.cs
0 → 100644
View file @
ab4636a1
using
Mall.Model.Entity.Product
;
using
Mall.Model.Extend.Product
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Linq
;
namespace
Mall.Repository.Product
{
/// <summary>
/// 拼团地区信息
/// </summary>
public
class
RB_GroupBuy_AreaRepository
:
BaseRepository
<
RB_GroupBuy_Area
>
{
/// <summary>
/// 根据查询条件获取地区信息
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_GroupBuy_Area_Extend
>
GetGroupBuyAreaRepository
(
RB_GroupBuy_Area_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
SELECT ga.*,d.Name as AreaName
FROM RB_Goods_Area ga INNER JOIN rb_destination d ON ga.AreaId=d.ID
WHERE 1=1
"
);
builder
.
Append
(
$" and ga.
{
nameof
(
RB_GroupBuy_Area_Extend
.
Status
)}
=0 "
);
if
(
query
.
TenantId
>
0
)
{
builder
.
Append
(
$@" and ga.
{
nameof
(
RB_GroupBuy_Area_Extend
.
TenantId
)}
=
{
query
.
TenantId
}
"
);
}
if
(
query
.
MallBaseId
>
0
)
{
builder
.
Append
(
$@" and ga.
{
nameof
(
RB_GroupBuy_Area_Extend
.
MallBaseId
)}
=
{
query
.
MallBaseId
}
"
);
}
if
(
query
.
Id
>
0
)
{
builder
.
Append
(
$@" and ga.
{
nameof
(
RB_GroupBuy_Area_Extend
.
Id
)}
=
{
query
.
Id
}
"
);
}
if
(
query
.
GoodsId
>
0
)
{
builder
.
Append
(
$@" and ga.
{
nameof
(
RB_GroupBuy_Area_Extend
.
GoodsId
)}
=
{
query
.
GoodsId
}
"
);
}
if
(!
string
.
IsNullOrEmpty
(
query
.
GoodsIds
))
{
builder
.
Append
(
$@" and ga.
{
nameof
(
RB_GroupBuy_Area_Extend
.
GoodsId
)}
in(
{
query
.
GoodsIds
}
)"
);
}
builder
.
AppendFormat
(
" order by ga.Id desc "
);
return
Get
<
RB_GroupBuy_Area_Extend
>(
builder
.
ToString
()).
ToList
();
}
}
}
Mall.WindowsService/Mall.WindowsService.csproj.user
0 → 100644
View file @
ab4636a1
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"Current"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<PropertyGroup>
<_LastSelectedProfileId>
F:\工作\微途\外网代码\mall.oytour.com_2\Mall.WindowsService\Properties\PublishProfiles\FolderProfile.pubxml
</_LastSelectedProfileId>
</PropertyGroup>
<ItemGroup>
<Compile
Update=
"WindowsService.cs"
>
<SubType>
Component
</SubType>
</Compile>
</ItemGroup>
</Project>
\ No newline at end of file
Mall.WindowsService/Properties/PublishProfiles/FolderProfile.pubxml
0 → 100644
View file @
ab4636a1
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project
ToolsVersion=
"4.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<PropertyGroup>
<PublishProtocol>
FileSystem
</PublishProtocol>
<Configuration>
Release
</Configuration>
<Platform>
Any CPU
</Platform>
<TargetFramework>
netcoreapp3.0
</TargetFramework>
<PublishDir>
F:\mallservices
</PublishDir>
<SelfContained>
true
</SelfContained>
<RuntimeIdentifier>
win-x86
</RuntimeIdentifier>
<PublishSingleFile>
False
</PublishSingleFile>
<PublishReadyToRun>
False
</PublishReadyToRun>
<PublishTrimmed>
False
</PublishTrimmed>
</PropertyGroup>
</Project>
\ No newline at end of file
Mall.WindowsService/Properties/PublishProfiles/FolderProfile.pubxml.user
0 → 100644
View file @
ab4636a1
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project
ToolsVersion=
"4.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
</Project>
\ 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