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
64c1bf01
Commit
64c1bf01
authored
Sep 02, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
60445506
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
533 additions
and
26 deletions
+533
-26
CarClassEnum.cs
Mall.Common/Enum/GuideCar/CarClassEnum.cs
+61
-0
RB_GuideCar_Car.cs
Mall.Model/Entity/GuideCar/RB_GuideCar_Car.cs
+3
-2
RB_GuideCar_CarColor_Extend.cs
Mall.Model/Extend/GuideCar/RB_GuideCar_CarColor_Extend.cs
+2
-0
GuideCarModule.cs
Mall.Module.Product/GuideCarModule.cs
+190
-7
RB_GuideCar_CarColorRepository.cs
Mall.Repository/GuideCar/RB_GuideCar_CarColorRepository.cs
+91
-0
GuideCarController.cs
Mall.WebApi/Controllers/Product/GuideCarController.cs
+186
-17
No files found.
Mall.Common/Enum/GuideCar/CarClassEnum.cs
0 → 100644
View file @
64c1bf01
using
Mall.Common.Plugin
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Common.Enum.GuideCar
{
public
enum
CarClassEnum
{
/// <summary>
/// 新能源
/// </summary>
[
EnumField
(
"新能源"
)]
NewEnergy
=
1
,
/// <summary>
/// 微型
/// </summary>
[
EnumField
(
"微型"
)]
Miniature
=
2
,
/// <summary>
/// 小型
/// </summary>
[
EnumField
(
"小型"
)]
SmallScale
=
3
,
/// <summary>
/// 紧凑型
/// </summary>
[
EnumField
(
"紧凑型"
)]
Compact
=
4
,
/// <summary>
/// 中型
/// </summary>
[
EnumField
(
"中型"
)]
MediumSized
=
5
,
/// <summary>
/// 中大型
/// </summary>
[
EnumField
(
"中大型"
)]
MediumLargeScale
=
6
,
/// <summary>
/// 大型
/// </summary>
[
EnumField
(
"大型"
)]
Large
=
7
,
/// <summary>
/// SUV
/// </summary>
[
EnumField
(
"SUV"
)]
SUV
=
8
,
/// <summary>
/// MPV
/// </summary>
[
EnumField
(
"MPV"
)]
MPV
=
9
,
/// <summary>
/// 跑车
/// </summary>
[
EnumField
(
"跑车"
)]
SportsCar
=
10
}
}
Mall.Model/Entity/GuideCar/RB_GuideCar_Car.cs
View file @
64c1bf01
using
System
;
using
Mall.Common.Enum.GuideCar
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Text
;
using
VT.FW.DB
;
using
VT.FW.DB
;
...
@@ -52,7 +53,7 @@ namespace Mall.Model.Entity.GuideCar
...
@@ -52,7 +53,7 @@ namespace Mall.Model.Entity.GuideCar
/// <summary>
/// <summary>
/// 车辆分类
/// 车辆分类
/// </summary>
/// </summary>
public
int
CarClass
{
get
;
set
;
}
public
CarClassEnum
CarClass
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 车辆品牌
/// 车辆品牌
/// </summary>
/// </summary>
...
...
Mall.Model/Extend/GuideCar/RB_GuideCar_CarColor_Extend.cs
View file @
64c1bf01
...
@@ -8,5 +8,7 @@ namespace Mall.Model.Extend.GuideCar
...
@@ -8,5 +8,7 @@ namespace Mall.Model.Extend.GuideCar
public
class
RB_GuideCar_CarColor_Extend
:
RB_GuideCar_CarColor
public
class
RB_GuideCar_CarColor_Extend
:
RB_GuideCar_CarColor
{
{
public
List
<
string
>
PicList
{
get
;
set
;
}
public
List
<
string
>
PicList
{
get
;
set
;
}
public
string
CardIds
{
get
;
set
;
}
}
}
}
}
Mall.Module.Product/GuideCarModule.cs
View file @
64c1bf01
This diff is collapsed.
Click to expand it.
Mall.Repository/GuideCar/RB_GuideCar_CarColorRepository.cs
0 → 100644
View file @
64c1bf01
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
{
/// <summary>
/// 车辆颜色仓储层
/// </summary>
public
class
RB_GuideCar_CarColorRepository
:
BaseRepository
<
RB_GuideCar_CarColor
>
{
/// <summary>
/// 表名称
/// </summary>
public
string
TableName
{
get
{
return
nameof
(
RB_GuideCar_CarColor
);
}
}
/// <summary>
/// 车辆颜色列表
/// </summary>
/// <param name="pageIndex">页码</param>
/// <param name="pageSize">每页显示条数</param>
/// <param name="rowCount">总条数</param>
/// <param name="query">查询条件</param>
/// <returns></returns>
public
List
<
RB_GuideCar_CarColor_Extend
>
GetCarColorPageListRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_GuideCar_CarColor_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
Append
(
$" SELECT * FROM
{
TableName
}
WHERE
{
nameof
(
RB_GuideCar_CarColor_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_CarColor_Extend
.
TenantId
)}
=
{
query
.
TenantId
}
"
);
}
if
(
query
.
TenantId
>
0
)
{
builder
.
Append
(
$" AND
{
nameof
(
RB_GuideCar_CarColor_Extend
.
MallBaseId
)}
=
{
query
.
MallBaseId
}
"
);
}
if
(
query
.
CarId
>
0
)
{
builder
.
Append
(
$" AND
{
nameof
(
RB_GuideCar_CarColor_Extend
.
CarId
)}
=
{
query
.
CarId
}
"
);
}
}
return
GetPage
<
RB_GuideCar_CarColor_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_CarColor_Extend
>
GetCarColorList
(
RB_GuideCar_CarColor_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
Append
(
$" SELECT * FROM
{
TableName
}
WHERE
{
nameof
(
RB_GuideCar_CarColor_Extend
.
Status
)}
=0 "
);
if
(
query
!=
null
)
{
if
(
query
.
ID
>
0
)
{
builder
.
Append
(
$" AND
{
nameof
(
RB_GuideCar_CarColor_Extend
.
ID
)}
=
{
query
.
ID
}
"
);
}
if
(
query
.
TenantId
>
0
)
{
builder
.
Append
(
$" AND
{
nameof
(
RB_GuideCar_CarColor_Extend
.
TenantId
)}
=
{
query
.
TenantId
}
"
);
}
if
(
query
.
TenantId
>
0
)
{
builder
.
Append
(
$" AND
{
nameof
(
RB_GuideCar_CarColor_Extend
.
MallBaseId
)}
=
{
query
.
MallBaseId
}
"
);
}
if
(
query
.
CarId
>
0
)
{
builder
.
Append
(
$" AND
{
nameof
(
RB_GuideCar_CarColor_Extend
.
CarId
)}
=
{
query
.
CarId
}
"
);
}
if
(!
string
.
IsNullOrWhiteSpace
(
query
.
CardIds
))
{
builder
.
Append
(
$" AND
{
nameof
(
RB_GuideCar_CarColor_Extend
.
CarId
)}
in (
{
query
.
CardIds
}
)"
);
}
}
return
Get
<
RB_GuideCar_CarColor_Extend
>(
builder
.
ToString
()).
ToList
();
}
}
}
Mall.WebApi/Controllers/Product/GuideCarController.cs
View file @
64c1bf01
This diff is collapsed.
Click to expand it.
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