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
814e647d
Commit
814e647d
authored
Oct 30, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
0cc0b9da
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
16 deletions
+22
-16
ProductModule.cs
Mall.Module.Product/ProductModule.cs
+3
-2
RB_GoodsRepository.cs
Mall.Repository/Product/RB_GoodsRepository.cs
+6
-0
AppletGoodsController.cs
Mall.WebApi/Controllers/Product/AppletGoodsController.cs
+11
-2
AppletGuideCarController.cs
Mall.WebApi/Controllers/Product/AppletGuideCarController.cs
+2
-12
No files found.
Mall.Module.Product/ProductModule.cs
View file @
814e647d
...
@@ -242,10 +242,11 @@ namespace Mall.Module.Product
...
@@ -242,10 +242,11 @@ namespace Mall.Module.Product
/// <param name="count"></param>
/// <param name="count"></param>
/// <param name="demodel"></param>
/// <param name="demodel"></param>
/// <param name="IsGetShare">1-获取分销佣金</param>
/// <param name="IsGetShare">1-获取分销佣金</param>
/// <param name="GoodsClassify">商品类型</param>
/// <returns></returns>
/// <returns></returns>
public
List
<
RB_Goods_Extend
>
GetAppletGoodsPageListForZY
(
int
pageIndex
,
int
pageSize
,
out
long
count
,
RB_Goods_Extend
demodel
,
int
IsGetShare
=
0
)
public
List
<
RB_Goods_Extend
>
GetAppletGoodsPageListForZY
(
int
pageIndex
,
int
pageSize
,
out
long
count
,
RB_Goods_Extend
demodel
,
int
IsGetShare
=
0
,
int
GoodsClassify
=
0
)
{
{
var
list
=
goodsRepository
.
GetAppletGoodsPageList
(
pageIndex
,
pageSize
,
out
count
,
demodel
);
var
list
=
goodsRepository
.
GetAppletGoodsPageList
(
pageIndex
,
pageSize
,
out
count
,
demodel
,
GoodsClassify
:
GoodsClassify
);
if
(
list
.
Any
())
if
(
list
.
Any
())
{
{
var
SpecificationList
=
new
List
<
RB_Goods_Specification_Extend
>();
var
SpecificationList
=
new
List
<
RB_Goods_Specification_Extend
>();
...
...
Mall.Repository/Product/RB_GoodsRepository.cs
View file @
814e647d
...
@@ -798,6 +798,7 @@ WHERE {where} group by g.Id order by g.CreateDate desc";
...
@@ -798,6 +798,7 @@ WHERE {where} group by g.Id order by g.CreateDate desc";
/// <param name="pageSize"></param>
/// <param name="pageSize"></param>
/// <param name="count"></param>
/// <param name="count"></param>
/// <param name="dmodel"></param>
/// <param name="dmodel"></param>
/// <param name="GoodsClassify">商品类型</param>
/// <returns></returns>
/// <returns></returns>
public
List
<
RB_Goods_Extend
>
GetAppletGoodsPageList
(
int
pageIndex
,
int
pageSize
,
out
long
count
,
RB_Goods_Extend
dmodel
,
int
GoodsClassify
=
0
)
public
List
<
RB_Goods_Extend
>
GetAppletGoodsPageList
(
int
pageIndex
,
int
pageSize
,
out
long
count
,
RB_Goods_Extend
dmodel
,
int
GoodsClassify
=
0
)
{
{
...
@@ -872,6 +873,11 @@ WHERE {where} group by g.Id order by g.CreateDate desc";
...
@@ -872,6 +873,11 @@ WHERE {where} group by g.Id order by g.CreateDate desc";
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
GoodsPageType
)}
in(0,2)"
;
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
GoodsPageType
)}
in(0,2)"
;
}
}
}
}
//HK 新加参数
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
StoresIds
))
{
where
+=
$@" AND locate(',
{
dmodel
.
StoresIds
}
,',CONCAT(',',g.
{
nameof
(
RB_Goods_Extend
.
StoresIds
)}
, ','))"
;
}
//默认综合【升序】
//默认综合【升序】
string
orderBy
=
$" order by g.
{
nameof
(
RB_Goods_Extend
.
Sort
)}
asc"
;
string
orderBy
=
$" order by g.
{
nameof
(
RB_Goods_Extend
.
Sort
)}
asc"
;
//上架时间【降序】
//上架时间【降序】
...
...
Mall.WebApi/Controllers/Product/AppletGoodsController.cs
View file @
814e647d
...
@@ -184,6 +184,13 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -184,6 +184,13 @@ namespace Mall.WebApi.Controllers.MallBase
{
{
demodel
.
SmallShopsId
=
newParms
.
GetInt
(
"ERPSmallShopId"
);
demodel
.
SmallShopsId
=
newParms
.
GetInt
(
"ERPSmallShopId"
);
}
}
int
GoodsClassify
=
0
;
//HK 2020-10-30新增
if
(
newParms
.
GetInt
(
"StoreId"
)
>
0
)
{
demodel
.
StoresIds
=
newParms
.
GetInt
(
"StoreId"
).
ToString
();
GoodsClassify
=
3
;
}
demodel
.
UserId
=
UserId
;
demodel
.
UserId
=
UserId
;
//HK2020-09-07新增
//HK2020-09-07新增
int
IsGetShare
=
newParms
.
GetInt
(
"IsGetShare"
);
int
IsGetShare
=
newParms
.
GetInt
(
"IsGetShare"
);
...
@@ -200,7 +207,7 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -200,7 +207,7 @@ namespace Mall.WebApi.Controllers.MallBase
demodel
.
SmallShopsId
=
userModel
.
SmallShopId
;
demodel
.
SmallShopsId
=
userModel
.
SmallShopId
;
}
}
}
}
var
list
=
productModule
.
GetAppletGoodsPageListForZY
(
pagelist
.
pageIndex
,
pagelist
.
pageSize
,
out
long
count
,
demodel
,
IsGetShare
:
IsGetShare
);
var
list
=
productModule
.
GetAppletGoodsPageListForZY
(
pagelist
.
pageIndex
,
pagelist
.
pageSize
,
out
long
count
,
demodel
,
IsGetShare
:
IsGetShare
,
GoodsClassify
:
GoodsClassify
);
List
<
object
>
RList
=
new
List
<
object
>();
List
<
object
>
RList
=
new
List
<
object
>();
if
(
list
.
Any
())
if
(
list
.
Any
())
{
{
...
@@ -362,7 +369,9 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -362,7 +369,9 @@ namespace Mall.WebApi.Controllers.MallBase
goods_num
=
model
.
InventoryNum
,
goods_num
=
model
.
InventoryNum
,
marketingLogo
=
model
.
MarketingLogo
,
marketingLogo
=
model
.
MarketingLogo
,
video_type
=
model
.
VideoType
,
video_type
=
model
.
VideoType
,
erpgoodobj
=
model
.
ERPGoodObj
erpgoodobj
=
model
.
ERPGoodObj
,
isChooseServicePerson
=
model
.
IsChooseServicePerson
,
depositMoney
=
model
.
DepositMoney
,
});
});
}
}
}
}
...
...
Mall.WebApi/Controllers/Product/AppletGuideCarController.cs
View file @
814e647d
...
@@ -115,24 +115,14 @@ namespace Mall.WebApi.Controllers.Product
...
@@ -115,24 +115,14 @@ namespace Mall.WebApi.Controllers.Product
return
ApiResult
.
Failed
(
"请选择还车时间"
);
return
ApiResult
.
Failed
(
"请选择还车时间"
);
}
}
//if (demodel.RegionId == 0)
//{
// return ApiResult.Failed("请选择区信息");
//}
//else
//{
//}
DateTime
tempStartTime
=
Convert
.
ToDateTime
(
demodel
.
StartTime
);
DateTime
tempStartTime
=
Convert
.
ToDateTime
(
demodel
.
StartTime
);
DateTime
tempEndTime
=
Convert
.
ToDateTime
(
demodel
.
EndTime
);
DateTime
tempEndTime
=
Convert
.
ToDateTime
(
demodel
.
EndTime
);
if
(
demodel
.
CarType
.
HasValue
&&
(
demodel
.
CarType
==
Common
.
Enum
.
Goods
.
GuideCarGoodsTypeEnum
.
JJ
||
demodel
.
CarType
==
Common
.
Enum
.
Goods
.
GuideCarGoodsTypeEnum
.
SJ
))
if
(
demodel
.
CarType
.
HasValue
&&
(
demodel
.
CarType
==
Common
.
Enum
.
Goods
.
GuideCarGoodsTypeEnum
.
JJ
||
demodel
.
CarType
==
Common
.
Enum
.
Goods
.
GuideCarGoodsTypeEnum
.
SJ
))
{
{
demodel
.
UseDay
=
1
;
demodel
.
UseDay
=
1
;
}
}
else
{
else
{
if
(
tempStartTime
.
ToString
(
"yyyy-MM-dd"
)
==
tempEndTime
.
ToString
(
"yyyy-MM-dd"
))
//判断使用天数是否是0.5天/1天
if
(
tempStartTime
.
ToString
(
"yyyy-MM-dd"
)
==
tempEndTime
.
ToString
(
"yyyy-MM-dd"
))
//判断使用天数是否是0.5天/1天
{
{
TimeSpan
sp
=
tempEndTime
.
Subtract
(
tempStartTime
);
TimeSpan
sp
=
tempEndTime
.
Subtract
(
tempStartTime
);
...
...
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