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
804f6fae
Commit
804f6fae
authored
Aug 05, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
ee0b7bb6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
134 additions
and
34 deletions
+134
-34
RB_Goods_Extend.cs
Mall.Model/Extend/Product/RB_Goods_Extend.cs
+2
-1
RB_Goods_ShoppingCart_Extend.cs
Mall.Model/Extend/Product/RB_Goods_ShoppingCart_Extend.cs
+11
-0
MallBaseModule.cs
Mall.Module.BaseSetUp/MallBaseModule.cs
+14
-0
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+59
-23
ProductModule.cs
Mall.Module.Product/ProductModule.cs
+38
-2
RB_FreeShippingRepository.cs
Mall.Repository/BaseSetUp/RB_FreeShippingRepository.cs
+4
-7
AppletOrderController.cs
Mall.WebApi/Controllers/Product/AppletOrderController.cs
+4
-1
Mall.WebApi.csproj
Mall.WebApi/Mall.WebApi.csproj
+1
-0
FinanceModule.cs
Mall.WindowsService/Module/FinanceModule.cs
+1
-0
No files found.
Mall.Model/Extend/Product/RB_Goods_Extend.cs
View file @
804f6fae
...
@@ -4,6 +4,7 @@ using System.Collections.Generic;
...
@@ -4,6 +4,7 @@ using System.Collections.Generic;
using
System.Text
;
using
System.Text
;
using
Mall.Model.Entity.Product
;
using
Mall.Model.Entity.Product
;
using
Mall.Model.Entity.BaseSetUp
;
using
Mall.Model.Entity.BaseSetUp
;
using
Mall.Model.Extend.BaseSetUp
;
namespace
Mall.Model.Extend.Product
namespace
Mall.Model.Extend.Product
{
{
...
@@ -189,7 +190,7 @@ namespace Mall.Model.Extend.Product
...
@@ -189,7 +190,7 @@ namespace Mall.Model.Extend.Product
/// <summary>
/// <summary>
/// 商品分类包邮规则
/// 商品分类包邮规则
/// </summary>
/// </summary>
public
List
<
RB_FreeShipping
>
FreeShippingList
{
get
;
set
;
}
public
RB_FreeShipping_Extend
FreeShippingModel
{
get
;
set
;
}
}
}
}
}
Mall.Model/Extend/Product/RB_Goods_ShoppingCart_Extend.cs
View file @
804f6fae
...
@@ -3,6 +3,7 @@ using System;
...
@@ -3,6 +3,7 @@ using System;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Text
;
using
Mall.Model.Entity.Product
;
using
Mall.Model.Entity.Product
;
using
Mall.Model.Extend.BaseSetUp
;
namespace
Mall.Model.Extend.Product
namespace
Mall.Model.Extend.Product
{
{
...
@@ -66,5 +67,15 @@ namespace Mall.Model.Extend.Product
...
@@ -66,5 +67,15 @@ namespace Mall.Model.Extend.Product
/// 库存数量
/// 库存数量
/// </summary>
/// </summary>
public
int
?
InventoryNum
{
get
;
set
;
}
public
int
?
InventoryNum
{
get
;
set
;
}
/// <summary>
/// 供应商ids 2020-08-04 Add By:W
/// </summary>
public
string
SupplierIds
{
get
;
set
;
}
/// <summary>
/// 商品分类包邮规则
/// </summary>
public
RB_FreeShipping_Extend
FreeShippingModel
{
get
;
set
;
}
}
}
}
}
Mall.Module.BaseSetUp/MallBaseModule.cs
View file @
804f6fae
...
@@ -1002,6 +1002,20 @@ namespace Mall.Module.BaseSetUp
...
@@ -1002,6 +1002,20 @@ namespace Mall.Module.BaseSetUp
return
model
;
return
model
;
}
}
/// <summary>
/// 物流规则列表
/// </summary>
/// <param name="pageIndex">页码</param>
/// <param name="pageSize">每页显示条数</param>
/// <param name="rowCount">总条数</param>
/// <param name="query">查询条件</param>
/// <returns></returns>
public
List
<
RB_FreeShipping_Extend
>
GetFreeShippingListByCategoryIds
(
RB_FreeShipping_Extend
query
)
{
return
freeShippingRepository
.
GetFreeShippingListByCategoryIds
(
query
);
}
/// <summary>
/// <summary>
/// 新增/修改分类包邮基础信息
/// 新增/修改分类包邮基础信息
/// </summary>
/// </summary>
...
...
Mall.Module.Product/OrderModule.cs
View file @
804f6fae
This diff is collapsed.
Click to expand it.
Mall.Module.Product/ProductModule.cs
View file @
804f6fae
...
@@ -8,6 +8,7 @@ using Mall.Common.API;
...
@@ -8,6 +8,7 @@ using Mall.Common.API;
using
Mall.Common.Plugin
;
using
Mall.Common.Plugin
;
using
Mall.Model.Entity.Product
;
using
Mall.Model.Entity.Product
;
using
Mall.Model.Entity.User
;
using
Mall.Model.Entity.User
;
using
Mall.Model.Extend.BaseSetUp
;
using
Mall.Model.Extend.Product
;
using
Mall.Model.Extend.Product
;
using
Mall.Model.Extend.User
;
using
Mall.Model.Extend.User
;
using
Mall.Model.Query
;
using
Mall.Model.Query
;
...
@@ -16,6 +17,7 @@ using Mall.Repository.BaseSetUp;
...
@@ -16,6 +17,7 @@ using Mall.Repository.BaseSetUp;
using
Mall.Repository.Product
;
using
Mall.Repository.Product
;
using
Mall.Repository.User
;
using
Mall.Repository.User
;
using
Newtonsoft.Json
;
using
Newtonsoft.Json
;
using
NPOI.SS.Formula.Functions
;
using
VT.FW.DB
;
using
VT.FW.DB
;
namespace
Mall.Module.Product
namespace
Mall.Module.Product
...
@@ -158,7 +160,7 @@ namespace Mall.Module.Product
...
@@ -158,7 +160,7 @@ namespace Mall.Module.Product
/// </summary>
/// </summary>
private
readonly
RB_Distributor_FXGradeRepository
distributor_FXGradeRepository
=
new
RB_Distributor_FXGradeRepository
();
private
readonly
RB_Distributor_FXGradeRepository
distributor_FXGradeRepository
=
new
RB_Distributor_FXGradeRepository
();
private
RB_FreeShippingRepository
freeShippingRepository
=
new
RB_FreeShippingRepository
();
...
@@ -1049,6 +1051,24 @@ namespace Mall.Module.Product
...
@@ -1049,6 +1051,24 @@ namespace Mall.Module.Product
#
region
基本信息
#
region
基本信息
//查询分类
//查询分类
model
.
CategoryList
=
goods_CategoryRepository
.
GetList
(
new
RB_Goods_Category_Extend
()
{
GoodsId
=
goodsId
,
TenantId
=
TenantId
,
MallBaseId
=
MallBaseId
});
model
.
CategoryList
=
goods_CategoryRepository
.
GetList
(
new
RB_Goods_Category_Extend
()
{
GoodsId
=
goodsId
,
TenantId
=
TenantId
,
MallBaseId
=
MallBaseId
});
//2020-08-05 根据分类查找商品对应的分类包邮规则 add by :W
if
(
model
.
CategoryList
!=
null
&&
model
.
CategoryList
.
Any
())
{
string
categoryIds
=
string
.
Join
(
","
,
model
.
CategoryList
.
Select
(
x
=>
x
.
CategoryId
));
var
freeShippingList
=
freeShippingRepository
.
GetFreeShippingListByCategoryIds
(
new
RB_FreeShipping_Extend
{
MallBaseId
=
model
.
MallBaseId
,
TenantId
=
model
.
TenantId
,
CategoryIds
=
categoryIds
});
if
(
freeShippingList
!=
null
&&
freeShippingList
.
Any
())
{
var
fullNumPinkageModel
=
freeShippingList
.
Where
(
x
=>
x
.
IsFreeShipping
==
1
&&
x
.
IsEnable
==
1
&&
x
.
FullNumPinkage
>
0
).
OrderBy
(
x
=>
x
.
FullNumPinkage
).
FirstOrDefault
();
if
(
fullNumPinkageModel
==
null
||
fullNumPinkageModel
.
ID
<=
0
)
{
fullNumPinkageModel
=
freeShippingList
.
Where
(
x
=>
x
.
IsFreeShipping
==
1
&&
x
.
IsEnable
==
1
&&
x
.
FullMoneyPinkage
>
0
).
OrderBy
(
x
=>
x
.
FullMoneyPinkage
).
FirstOrDefault
();
}
model
.
FreeShippingModel
=
(
fullNumPinkageModel
==
null
||
fullNumPinkageModel
.
ID
<=
0
)
?
new
RB_FreeShipping_Extend
()
:
fullNumPinkageModel
;
}
}
//最大售价
//最大售价
decimal
MaxSellMoney
=
model
.
SellingPrice
??
0
;
decimal
MaxSellMoney
=
model
.
SellingPrice
??
0
;
model
.
SpecificationList
=
new
List
<
RB_Goods_Specification_Extend
>();
model
.
SpecificationList
=
new
List
<
RB_Goods_Specification_Extend
>();
...
@@ -1915,6 +1935,9 @@ namespace Mall.Module.Product
...
@@ -1915,6 +1935,9 @@ namespace Mall.Module.Product
is_quick_shop
=
model
.
IsQuickBuy
,
is_quick_shop
=
model
.
IsQuickBuy
,
is_sell_well
=
model
.
IsSellWell
,
is_sell_well
=
model
.
IsSellWell
,
is_negotiable
=
model
.
IsGoodsNegotiable
,
is_negotiable
=
model
.
IsGoodsNegotiable
,
freeShippingName
=
model
.
FreeShippingModel
.
Name
,
fullMoneyPinkage
=
model
.
FreeShippingModel
.
FullMoneyPinkage
,
fullNumPinkage
=
model
.
FreeShippingModel
.
FullNumPinkage
,
cats
=
model
.
CategoryList
.
Select
(
x
=>
new
cats
=
model
.
CategoryList
.
Select
(
x
=>
new
{
{
x
.
CategoryId
,
x
.
CategoryId
,
...
@@ -6083,6 +6106,19 @@ namespace Mall.Module.Product
...
@@ -6083,6 +6106,19 @@ namespace Mall.Module.Product
#
endregion
#
endregion
#
region
分类包邮规则信息
/// <summary>
/// 物流规则列表
/// </summary>
/// <param name="pageIndex">页码</param>
/// <param name="pageSize">每页显示条数</param>
/// <param name="rowCount">总条数</param>
/// <param name="query">查询条件</param>
/// <returns></returns>
public
List
<
RB_FreeShipping_Extend
>
GetFreeShippingListByCategoryIds
(
RB_FreeShipping_Extend
query
)
{
return
freeShippingRepository
.
GetFreeShippingListByCategoryIds
(
query
);
}
#
endregion
}
}
}
}
Mall.Repository/BaseSetUp/RB_FreeShippingRepository.cs
View file @
804f6fae
...
@@ -90,21 +90,18 @@ namespace Mall.Repository.BaseSetUp
...
@@ -90,21 +90,18 @@ namespace Mall.Repository.BaseSetUp
INNER
JOIN
rb_mallbase
as
c
on
a
.
MallBaseId
=
c
.
ID
and
a
.
TenantId
=
c
.
TenantId
WHERE
a
.{
nameof
(
RB_FreeShipping_Extend
.
Status
)}=
0
");
INNER
JOIN
rb_mallbase
as
c
on
a
.
MallBaseId
=
c
.
ID
and
a
.
TenantId
=
c
.
TenantId
WHERE
a
.{
nameof
(
RB_FreeShipping_Extend
.
Status
)}=
0
");
if
(
query
!=
null
)
if
(
query
!=
null
)
{
{
if
(
query
.
ID
>
0
)
{
builder
.
Append
(
$" AND
{
nameof
(
RB_FreeShipping_Extend
.
ID
)}
=
{
query
.
ID
}
"
);
}
if
(
query
.
TenantId
>
0
)
if
(
query
.
TenantId
>
0
)
{
{
builder
.
Append
(
$" AND
{
nameof
(
RB_FreeShipping_Extend
.
TenantId
)}
=
{
query
.
TenantId
}
"
);
builder
.
Append
(
$" AND
a.
{
nameof
(
RB_FreeShipping_Extend
.
TenantId
)}
=
{
query
.
TenantId
}
"
);
}
}
if
(
query
.
MallBaseId
>
0
)
if
(
query
.
MallBaseId
>
0
)
{
{
builder
.
Append
(
$" AND
{
nameof
(
RB_FreeShipping_Extend
.
MallBaseId
)}
=
{
query
.
MallBaseId
}
"
);
builder
.
Append
(
$" AND
a.
{
nameof
(
RB_FreeShipping_Extend
.
MallBaseId
)}
=
{
query
.
MallBaseId
}
"
);
}
}
if
(!
string
.
IsNullOrWhiteSpace
(
query
.
CategoryIds
))
if
(!
string
.
IsNullOrWhiteSpace
(
query
.
CategoryIds
))
{
{
builder
.
Append
(
$" AND
{
nameof
(
RB_FreeShippingCategory_Extend
.
CategoryId
)}
in(
{
query
.
CategoryIds
}
)"
);
builder
.
Append
(
$" AND
b.
{
nameof
(
RB_FreeShippingCategory_Extend
.
CategoryId
)}
in(
{
query
.
CategoryIds
}
)"
);
}
}
}
}
return
Get
<
RB_FreeShipping_Extend
>(
builder
.
ToString
()).
ToList
();
return
Get
<
RB_FreeShipping_Extend
>(
builder
.
ToString
()).
ToList
();
...
...
Mall.WebApi/Controllers/Product/AppletOrderController.cs
View file @
804f6fae
...
@@ -63,7 +63,10 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -63,7 +63,10 @@ namespace Mall.WebApi.Controllers.MallBase
x
.
GoodsStatus
,
x
.
GoodsStatus
,
x
.
TenantId
,
x
.
TenantId
,
x
.
MallBaseId
,
x
.
MallBaseId
,
CreateDate
=
x
.
CreateDate
.
HasValue
?
x
.
CreateDate
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
:
""
CreateDate
=
x
.
CreateDate
.
HasValue
?
x
.
CreateDate
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
:
""
,
FreeShippingName
=
x
.
FreeShippingModel
.
Name
,
FreeShippingFullMoneyPinkage
=
x
.
FreeShippingModel
.
FullMoneyPinkage
,
FreeShippingFullNumPinkage
=
x
.
FreeShippingModel
.
FullNumPinkage
,
});
});
List
<
object
>
robj
=
new
List
<
object
>()
{
List
<
object
>
robj
=
new
List
<
object
>()
{
new
{
new
{
...
...
Mall.WebApi/Mall.WebApi.csproj
View file @
804f6fae
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Mall.AOP\Mall.AOP.csproj" />
<ProjectReference Include="..\Mall.CacheManager\Mall.CacheManager.csproj" />
<ProjectReference Include="..\Mall.CacheManager\Mall.CacheManager.csproj" />
<ProjectReference Include="..\Mall.Common\Mall.Common.csproj" />
<ProjectReference Include="..\Mall.Common\Mall.Common.csproj" />
<ProjectReference Include="..\Mall.DataHelper\Mall.DataHelper.csproj" />
<ProjectReference Include="..\Mall.DataHelper\Mall.DataHelper.csproj" />
...
...
Mall.WindowsService/Module/FinanceModule.cs
View file @
804f6fae
...
@@ -22,6 +22,7 @@ using System;
...
@@ -22,6 +22,7 @@ using System;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq
;
using
System.Text
;
using
System.Text
;
using
VT.FW.DB
;
namespace
Mall.WindowsService.Module
namespace
Mall.WindowsService.Module
{
{
...
...
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