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
c5f20f75
Commit
c5f20f75
authored
Sep 02, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品管理
parent
1eb51310
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
1692 additions
and
11 deletions
+1692
-11
GuideCarGoodsTypeEnum.cs
Mall.Common/Enum/GuideCar/GuideCarGoodsTypeEnum.cs
+41
-0
RB_Goods.cs
Mall.Model/Entity/Product/RB_Goods.cs
+56
-0
RB_Goods_TargetDate.cs
Mall.Model/Entity/Product/RB_Goods_TargetDate.cs
+39
-0
RB_Goods_Extend.cs
Mall.Model/Extend/Product/RB_Goods_Extend.cs
+8
-0
RB_Goods_TargetDate_Extend.cs
Mall.Model/Extend/Product/RB_Goods_TargetDate_Extend.cs
+23
-0
GuideCarModule.cs
Mall.Module.Product/GuideCarModule.cs
+784
-1
RB_GuideCar_BaseRepository.cs
Mall.Repository/GuideCar/RB_GuideCar_BaseRepository.cs
+2
-2
RB_GoodsRepository.cs
Mall.Repository/Product/RB_GoodsRepository.cs
+245
-8
RB_Goods_TargetDateRepository.cs
Mall.Repository/Product/RB_Goods_TargetDateRepository.cs
+39
-0
GuideCarController.cs
Mall.WebApi/Controllers/Product/GuideCarController.cs
+454
-0
ProductController.cs
Mall.WebApi/Controllers/Product/ProductController.cs
+1
-0
No files found.
Mall.Common/Enum/GuideCar/GuideCarGoodsTypeEnum.cs
0 → 100644
View file @
c5f20f75
using
Mall.Common.Plugin
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Mall.Common.Enum.Goods
{
/// <summary>
/// 司导商品类型枚举
/// </summary>
public
enum
GuideCarGoodsTypeEnum
{
/// <summary>
/// 接机
/// </summary>
[
EnumField
(
"接机"
)]
JJ
=
1
,
/// <summary>
/// 送机
/// </summary>
[
EnumField
(
"送机"
)]
SJ
=
2
,
/// <summary>
/// 市区
/// </summary>
[
EnumField
(
"市区"
)]
SQ
=
3
,
/// <summary>
/// 周边
/// </summary>
[
EnumField
(
"周边"
)]
ZB
=
4
,
/// <summary>
/// 线路用车
/// </summary>
[
EnumField
(
"线路用车"
)]
Line
=
5
}
}
Mall.Model/Entity/Product/RB_Goods.cs
View file @
c5f20f75
...
...
@@ -459,5 +459,61 @@ namespace Mall.Model.Entity.Product
/// 发货地
/// </summary>
public
string
SendArea
{
get
;
set
;
}
/// <summary>
/// 商品分类 0正常商品 1司导商品
/// </summary>
public
int
GoodsClassify
{
get
;
set
;
}
/// <summary>
/// 站点id
/// </summary>
public
int
?
SiteId
{
get
;
set
;
}
/// <summary>
/// 导游id
/// </summary>
public
int
?
GuideId
{
get
;
set
;
}
/// <summary>
/// 车辆id
/// </summary>
public
int
?
CarId
{
get
;
set
;
}
/// <summary>
/// 车颜色id
/// </summary>
public
int
?
CarColorId
{
get
;
set
;
}
/// <summary>
/// 车牌号
/// </summary>
public
string
CarNumber
{
get
;
set
;
}
/// <summary>
/// 车购买年份
/// </summary>
public
string
CarBuyYear
{
get
;
set
;
}
/// <summary>
/// 服务类型 枚举
/// </summary>
public
GuideCarGoodsTypeEnum
?
CarType
{
get
;
set
;
}
/// <summary>
/// 使用日期 天
/// </summary>
public
decimal
?
UserDay
{
get
;
set
;
}
/// <summary>
/// 线路名称
/// </summary>
public
string
LineName
{
get
;
set
;
}
/// <summary>
/// 关联城市或景点
/// </summary>
public
string
LineDescription
{
get
;
set
;
}
/// <summary>
/// 是否拼座 1是 2否
/// </summary>
public
int
?
IsSpell
{
get
;
set
;
}
/// <summary>
/// 乘坐人数
/// </summary>
public
int
?
RideNum
{
get
;
set
;
}
/// <summary>
/// 提前预定时间
/// </summary>
public
int
?
AdvanceDay
{
get
;
set
;
}
}
}
Mall.Model/Entity/Product/RB_Goods_TargetDate.cs
0 → 100644
View file @
c5f20f75
using
VT.FW.DB
;
using
Mall.Common.Enum.Goods
;
using
Mall.Common.Enum.User
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Model.Entity.Product
{
/// <summary>
/// 司导可预定实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Goods_TargetDate
{
/// <summary>
/// Id
/// </summary>
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 商品id
/// </summary>
public
int
GoodsId
{
get
;
set
;
}
/// <summary>
/// 可预定日期
/// </summary>
public
DateTime
?
Date
{
get
;
set
;
}
}
}
Mall.Model/Extend/Product/RB_Goods_Extend.cs
View file @
c5f20f75
...
...
@@ -15,6 +15,14 @@ namespace Mall.Model.Extend.Product
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Goods_Extend
:
RB_Goods
{
/// <summary>
/// 可预定日期
/// </summary>
public
List
<
RB_Goods_TargetDate_Extend
>
TargetDateList
{
get
;
set
;
}
/// <summary>
/// 线路描述list
/// </summary>
public
List
<
string
>
LineDescriptionList
{
get
;
set
;
}
/// <summary>
/// 微店id
/// </summary>
...
...
Mall.Model/Extend/Product/RB_Goods_TargetDate_Extend.cs
0 → 100644
View file @
c5f20f75
using
VT.FW.DB
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
Mall.Model.Entity.Product
;
using
Mall.Model.Entity.BaseSetUp
;
using
Mall.Model.Extend.BaseSetUp
;
namespace
Mall.Model.Extend.Product
{
/// <summary>
/// 商品可预定日期表扩展实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Goods_TargetDate_Extend
:
RB_Goods_TargetDate
{
/// <summary>
/// 商品ids
/// </summary>
public
string
GoodsIds
{
get
;
set
;
}
}
}
Mall.Module.Product/GuideCarModule.cs
View file @
c5f20f75
This diff is collapsed.
Click to expand it.
Mall.Repository/GuideCar/RB_GuideCar_BaseRepository.cs
View file @
c5f20f75
...
...
@@ -7,7 +7,7 @@ using System.Text;
namespace
Mall.Repository.GuideCar
{
public
class
RB_GuideCar_BaseRepository
:
BaseRepository
<
RB_GuideCar_Base
>
public
class
RB_GuideCar_BaseRepository
:
BaseRepository
<
RB_GuideCar_Base
>
{
/// <summary>
...
...
@@ -18,7 +18,7 @@ namespace Mall.Repository.GuideCar
public
List
<
RB_GuideCar_Base_Extend
>
GetList
(
RB_GuideCar_Base_Extend
dmodel
)
{
string
where
=
$" 1=1 "
;
if
(
dmodel
.
TenantId
>
0
)
if
(
dmodel
.
TenantId
>
0
)
{
where
+=
$@" and
{
nameof
(
RB_GuideCar_Base
.
TenantId
)}
=
{
dmodel
.
TenantId
}
"
;
}
...
...
Mall.Repository/Product/RB_GoodsRepository.cs
View file @
c5f20f75
This diff is collapsed.
Click to expand it.
Mall.Repository/Product/RB_Goods_TargetDateRepository.cs
0 → 100644
View file @
c5f20f75
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
Mall.Model.Entity.Product
;
using
Mall.Model.Extend.Product
;
using
System.Linq
;
namespace
Mall.Repository.Product
{
/// <summary>
/// 商品可预定日期仓储层
/// </summary>
public
class
RB_Goods_TargetDateRepository
:
BaseRepository
<
RB_Goods_TargetDate
>
{
/// <summary>
/// 列表
/// </summary>
/// <param name="dmodel">查询条件</param>
/// <returns></returns>
public
List
<
RB_Goods_TargetDate_Extend
>
GetList
(
RB_Goods_TargetDate_Extend
dmodel
)
{
string
where
=
$" 1=1 and Date >= '
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)}
'"
;
if
(
dmodel
.
Id
>
0
)
{
where
+=
$@" and
{
nameof
(
RB_Goods_TargetDate
.
Id
)}
=
{
dmodel
.
Id
}
"
;
}
if
(
dmodel
.
GoodsId
>
0
)
{
where
+=
$@" and
{
nameof
(
RB_Goods_TargetDate
.
GoodsId
)}
=
{
dmodel
.
GoodsId
}
"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
GoodsIds
))
{
where
+=
$@" and
{
nameof
(
RB_Goods_TargetDate
.
GoodsId
)}
in(
{
dmodel
.
GoodsIds
}
)"
;
}
string
sql
=
$@"select * from RB_Goods_TargetDate where
{
where
}
order by Date asc"
;
return
Get
<
RB_Goods_TargetDate_Extend
>(
sql
).
ToList
();
}
}
}
Mall.WebApi/Controllers/Product/GuideCarController.cs
View file @
c5f20f75
This diff is collapsed.
Click to expand it.
Mall.WebApi/Controllers/Product/ProductController.cs
View file @
c5f20f75
...
...
@@ -2056,6 +2056,7 @@ namespace Mall.WebApi.Controllers.MallBase
demodel
.
SubName
??=
""
;
//副标题
demodel
.
IsLiveGoods
??=
2
;
//是否直播商品 1是 2否
demodel
.
SendArea
??=
""
;
//发货地
demodel
.
GoodsClassify
=
0
;
if
(
demodel
.
IsProxy
==
1
&&
demodel
.
CostPrice
>
0
)
{
decimal
ProxyMoney
=
0
;
...
...
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