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
ae764314
Commit
ae764314
authored
Sep 01, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
81ae2c0d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
352 additions
and
13 deletions
+352
-13
RB_GuideCar_Site.cs
Mall.Model/Entity/GuideCar/RB_GuideCar_Site.cs
+36
-0
RB_GuideCar_SiteRegion.cs
Mall.Model/Entity/GuideCar/RB_GuideCar_SiteRegion.cs
+2
-2
RB_GuideCar_SiteRegion_Extend.cs
Mall.Model/Extend/GuideCar/RB_GuideCar_SiteRegion_Extend.cs
+1
-1
RB_GuideCar_Site_Extend.cs
Mall.Model/Extend/GuideCar/RB_GuideCar_Site_Extend.cs
+22
-0
GuideCarModule.cs
Mall.Module.Product/GuideCarModule.cs
+188
-2
RB_GuideCar_SiteRegionRepository.cs
Mall.Repository/GuideCar/RB_GuideCar_SiteRegionRepository.cs
+8
-8
RB_GuideCar_SiteRepository.cs
Mall.Repository/GuideCar/RB_GuideCar_SiteRepository.cs
+95
-0
No files found.
Mall.Model/Entity/GuideCar/RB_GuideCar_Site.cs
0 → 100644
View file @
ae764314
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Model.Entity.GuideCar
{
public
class
RB_GuideCar_Site
{
public
int
ID
{
get
;
set
;
}
/// <summary>
/// 商户id
/// </summary>
public
int
TenantId
{
get
;
set
;
}
/// <summary>
/// 小程序id
/// </summary>
public
int
MallBaseId
{
get
;
set
;
}
/// <summary>
/// 站点名称
/// </summary>
public
string
SiteName
{
get
;
set
;
}
public
int
Status
{
get
;
set
;
}
public
DateTime
CreateDate
{
get
;
set
;
}
public
DateTime
UpdateDate
{
get
;
set
;
}
public
int
RulesType
{
get
;
set
;
}
}
}
Mall.Model/Entity/GuideCar/RB_GuideCar_SiteRegion.cs
View file @
ae764314
...
@@ -17,7 +17,7 @@ namespace Mall.Model.Entity.BaseSetUp
...
@@ -17,7 +17,7 @@ namespace Mall.Model.Entity.BaseSetUp
/// <summary>
/// <summary>
/// 价格
/// 价格
/// </summary>
/// </summary>
public
int
RulesPric
eId
{
get
;
set
;
}
public
int
Sit
eId
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 地区id
/// 地区id
...
@@ -38,7 +38,7 @@ namespace Mall.Model.Entity.BaseSetUp
...
@@ -38,7 +38,7 @@ namespace Mall.Model.Entity.BaseSetUp
public
int
MallBaseId
{
get
;
set
;
}
public
int
MallBaseId
{
get
;
set
;
}
public
RulesTypeEnum
RulesType
{
get
;
set
;
}
public
int
RulesType
{
get
;
set
;
}
public
int
Status
{
get
;
set
;
}
public
int
Status
{
get
;
set
;
}
...
...
Mall.Model/Extend/GuideCar/RB_GuideCar_SiteRegion_Extend.cs
View file @
ae764314
...
@@ -15,7 +15,7 @@ namespace Mall.Model.Extend.GuideCar
...
@@ -15,7 +15,7 @@ namespace Mall.Model.Extend.GuideCar
/// </summary>
/// </summary>
public
string
RegionName
{
get
;
set
;
}
public
string
RegionName
{
get
;
set
;
}
public
string
Pric
eIds
{
get
;
set
;
}
public
string
Sit
eIds
{
get
;
set
;
}
/// <summary>
/// <summary>
...
...
Mall.Model/Extend/GuideCar/RB_GuideCar_Site_Extend.cs
0 → 100644
View file @
ae764314
using
Mall.Model.Entity.GuideCar
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Model.Extend.GuideCar
{
/// <summary>
/// 司导站点扩展表
/// </summary>
public
class
RB_GuideCar_Site_Extend
:
RB_GuideCar_Site
{
/// <summary>
/// 地区列表
/// </summary>
public
List
<
RB_GuideCar_SiteRegion_Extend
>
RegionList
{
get
;
set
;
}
/// <summary>
/// 规格的ids
/// </summary>
public
string
SiteIds
{
get
;
set
;
}
}
}
Mall.Module.Product/GuideCarModule.cs
View file @
ae764314
This diff is collapsed.
Click to expand it.
Mall.Repository/GuideCar/RB_GuideCar_SiteRegionRepository.cs
View file @
ae764314
...
@@ -44,13 +44,13 @@ LEFT JOIN {DestinationTableName} as c on b.ParentID = c.ID WHERE a.{nameof(RB_
...
@@ -44,13 +44,13 @@ LEFT JOIN {DestinationTableName} as c on b.ParentID = c.ID WHERE a.{nameof(RB_
{
{
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_SiteRegion_Extend
.
MallBaseId
)}
=
{
query
.
MallBaseId
}
"
);
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_SiteRegion_Extend
.
MallBaseId
)}
=
{
query
.
MallBaseId
}
"
);
}
}
if
(
query
.
RulesPric
eId
>
0
)
if
(
query
.
Sit
eId
>
0
)
{
{
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_SiteRegion_Extend
.
RulesPriceId
)}
=
{
query
.
RulesPric
eId
}
"
);
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_SiteRegion_Extend
.
SiteId
)}
=
{
query
.
Sit
eId
}
"
);
}
}
if
(!
string
.
IsNullOrWhiteSpace
(
query
.
Pric
eIds
))
if
(!
string
.
IsNullOrWhiteSpace
(
query
.
Sit
eIds
))
{
{
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_SiteRegion_Extend
.
RulesPriceId
)}
in (
{
query
.
Pric
eIds
}
)"
);
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_SiteRegion_Extend
.
SiteId
)}
in (
{
query
.
Sit
eIds
}
)"
);
}
}
}
}
return
Get
<
RB_GuideCar_SiteRegion_Extend
>(
builder
.
ToString
()).
ToList
();
return
Get
<
RB_GuideCar_SiteRegion_Extend
>(
builder
.
ToString
()).
ToList
();
...
@@ -80,13 +80,13 @@ LEFT JOIN {DestinationTableName} as c on b.ParentID = c.ID WHERE a.{nameof(RB_
...
@@ -80,13 +80,13 @@ LEFT JOIN {DestinationTableName} as c on b.ParentID = c.ID WHERE a.{nameof(RB_
{
{
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_SiteRegion_Extend
.
MallBaseId
)}
=
{
query
.
MallBaseId
}
"
);
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_SiteRegion_Extend
.
MallBaseId
)}
=
{
query
.
MallBaseId
}
"
);
}
}
if
(
query
.
RulesPric
eId
>
0
)
if
(
query
.
Sit
eId
>
0
)
{
{
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_SiteRegion_Extend
.
RulesPriceId
)}
=
{
query
.
RulesPric
eId
}
"
);
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_SiteRegion_Extend
.
SiteId
)}
=
{
query
.
Sit
eId
}
"
);
}
}
if
(!
string
.
IsNullOrWhiteSpace
(
query
.
Pric
eIds
))
if
(!
string
.
IsNullOrWhiteSpace
(
query
.
Sit
eIds
))
{
{
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_SiteRegion_Extend
.
RulesPriceId
)}
in (
{
query
.
Pric
eIds
}
)"
);
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_SiteRegion_Extend
.
SiteId
)}
in (
{
query
.
Sit
eIds
}
)"
);
}
}
}
}
return
Get
<
RB_GuideCar_SiteRegion_Extend
>(
builder
.
ToString
()).
ToList
();
return
Get
<
RB_GuideCar_SiteRegion_Extend
>(
builder
.
ToString
()).
ToList
();
...
...
Mall.Repository/GuideCar/RB_GuideCar_SiteRepository.cs
0 → 100644
View file @
ae764314
using
Mall.Model.Entity.GuideCar
;
using
Mall.Model.Extend.GuideCar
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
namespace
Mall.Repository.GuideCar
{
public
class
RB_GuideCar_SiteRepository
:
BaseRepository
<
RB_GuideCar_Site
>
{
/// <summary>
/// 表名称
/// </summary>
public
string
TableName
{
get
{
return
nameof
(
RB_GuideCar_Site
);
}
}
/// <summary>
/// 物料规则列表
/// </summary>
/// <param name="pageIndex">页码</param>
/// <param name="pageSize">每页显示条数</param>
/// <param name="rowCount">总条数</param>
/// <param name="query">查询条件</param>
/// <returns></returns>
public
List
<
RB_GuideCar_Site_Extend
>
GetPageListRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_GuideCar_Site_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
Append
(
$" SELECT * FROM
{
TableName
}
WHERE
{
nameof
(
RB_GuideCar_Site_Extend
.
Status
)}
=0"
);
if
(
query
!=
null
)
{
// where += $@" and {nameof(RB_Customer_InfoCreate.CustomerId)}={dmodel.CustomerId}";
if
(
query
.
TenantId
>
0
)
{
builder
.
Append
(
$" AND
{
nameof
(
RB_GuideCar_Site_Extend
.
TenantId
)}
=
{
query
.
TenantId
}
"
);
}
if
(
query
.
TenantId
>
0
)
{
builder
.
Append
(
$" AND
{
nameof
(
RB_GuideCar_Site_Extend
.
MallBaseId
)}
=
{
query
.
MallBaseId
}
"
);
}
if
(!
string
.
IsNullOrWhiteSpace
(
query
.
SiteName
))
{
builder
.
Append
(
$" AND
{
nameof
(
RB_GuideCar_Site_Extend
.
SiteName
)}
like '%
{
query
.
SiteName
}
%'"
);
}
if
(
query
.
RulesType
>
0
)
{
builder
.
Append
(
$" AND
{
nameof
(
RB_GuideCar_Site_Extend
.
RulesType
)}
=
{(
int
)
query
.
RulesType
}
"
);
}
}
return
GetPage
<
RB_GuideCar_Site_Extend
>(
pageIndex
,
pageSize
,
out
rowCount
,
builder
.
ToString
()).
ToList
();
}
/// <summary>
/// 物流规则列表
/// </summary>
/// <param name="pageIndex">页码</param>
/// <param name="pageSize">每页显示条数</param>
/// <param name="rowCount">总条数</param>
/// <param name="query">查询条件</param>
/// <returns></returns>
public
List
<
RB_GuideCar_Site_Extend
>
GetLogisticsRulesList
(
RB_GuideCar_Site_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
Append
(
$" SELECT * FROM
{
TableName
}
WHERE
{
nameof
(
RB_GuideCar_Site_Extend
.
Status
)}
=0 "
);
if
(
query
!=
null
)
{
if
(
query
.
ID
>
0
)
{
builder
.
Append
(
$" AND
{
nameof
(
RB_GuideCar_Site_Extend
.
ID
)}
=
{
query
.
ID
}
"
);
}
if
(
query
.
TenantId
>
0
)
{
builder
.
Append
(
$" AND
{
nameof
(
RB_GuideCar_Site_Extend
.
TenantId
)}
=
{
query
.
TenantId
}
"
);
}
if
(
query
.
MallBaseId
>
0
)
{
builder
.
Append
(
$" AND
{
nameof
(
RB_GuideCar_Site_Extend
.
MallBaseId
)}
=
{
query
.
MallBaseId
}
"
);
}
if
(!
string
.
IsNullOrWhiteSpace
(
query
.
SiteName
))
{
builder
.
Append
(
$" AND
{
nameof
(
RB_GuideCar_Site_Extend
.
SiteName
)}
like '%
{
query
.
SiteName
}
%'"
);
}
if
(
query
.
RulesType
>
0
)
{
builder
.
Append
(
$" AND
{
nameof
(
RB_GuideCar_Site_Extend
.
RulesType
)}
=
{(
int
)
query
.
RulesType
}
"
);
}
if
(!
string
.
IsNullOrEmpty
(
query
.
SiteIds
))
{
builder
.
Append
(
$" AND
{
nameof
(
RB_GuideCar_Site_Extend
.
ID
)}
in(
{
query
.
SiteIds
}
)"
);
}
}
return
Get
<
RB_GuideCar_Site_Extend
>(
builder
.
ToString
()).
ToList
();
}
}
}
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