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
197a809d
Commit
197a809d
authored
Jul 21, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
赠送分销等级
parent
c1c61318
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
574 additions
and
39 deletions
+574
-39
RB_Goods.cs
Mall.Model/Entity/Product/RB_Goods.cs
+9
-0
RB_Goods_OrderDetail.cs
Mall.Model/Entity/Product/RB_Goods_OrderDetail.cs
+9
-0
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+205
-5
ProductModule.cs
Mall.Module.Product/ProductModule.cs
+19
-2
UserCommonModule.cs
Mall.Module.User/UserCommonModule.cs
+1
-1
UserModule.cs
Mall.Module.User/UserModule.cs
+117
-29
ProductController.cs
Mall.WebApi/Controllers/Product/ProductController.cs
+6
-1
AppletLoginController.cs
Mall.WebApi/Controllers/User/AppletLoginController.cs
+13
-0
UserVipController.cs
Mall.WebApi/Controllers/User/UserVipController.cs
+1
-1
Mall.WindowsService.csproj
Mall.WindowsService/Mall.WindowsService.csproj
+1
-0
FinanceModule.cs
Mall.WindowsService/Module/FinanceModule.cs
+193
-0
No files found.
Mall.Model/Entity/Product/RB_Goods.cs
View file @
197a809d
...
...
@@ -417,5 +417,14 @@ namespace Mall.Model.Entity.Product
/// 返佣总金额
/// </summary>
public
decimal
Commission
{
get
;
set
;
}
/// <summary>
/// 赠送粉象等级
/// </summary>
public
int
?
PresentFXGrade
{
get
;
set
;
}
/// <summary>
/// 赠送的月份 几个月
/// </summary>
public
int
?
PresentFXMonth
{
get
;
set
;
}
}
}
Mall.Model/Entity/Product/RB_Goods_OrderDetail.cs
View file @
197a809d
...
...
@@ -214,5 +214,14 @@ namespace Mall.Model.Entity.Product
/// 积分赠送
/// </summary>
public
int
?
IntegralGoodsPresent
{
get
;
set
;
}
/// <summary>
/// 赠送粉象等级
/// </summary>
public
int
?
PresentFXGrade
{
get
;
set
;
}
/// <summary>
/// 赠送粉象等级期限(月)
/// </summary>
public
int
?
PresentFXMonth
{
get
;
set
;
}
}
}
Mall.Module.Product/OrderModule.cs
View file @
197a809d
This diff is collapsed.
Click to expand it.
Mall.Module.Product/ProductModule.cs
View file @
197a809d
...
...
@@ -1260,13 +1260,13 @@ namespace Mall.Module.Product
#
region
最高返佣
model
.
MaxShare
=
0
;
var
BasicsModel
=
distributor_BasicsRepository
.
GetList
(
new
RB_Distributor_Basics_Extend
()
{
TenantId
=
TenantId
,
MallBaseId
=
MallBaseId
}).
FirstOrDefault
();
if
(
UserId
>
0
)
{
//获取分销商信息
var
disModel
=
distributor_InfoRepository
.
GetList
(
new
RB_Distributor_Info_Extend
()
{
TenantId
=
TenantId
,
MallBaseId
=
MallBaseId
,
UserId
=
UserId
,
AuditStatus
=
Common
.
Enum
.
User
.
DistributorAuditStatusEnum
.
Audited
}).
FirstOrDefault
();
if
(
disModel
!=
null
)
{
var
BasicsModel
=
distributor_BasicsRepository
.
GetList
(
new
RB_Distributor_Basics_Extend
()
{
TenantId
=
TenantId
,
MallBaseId
=
MallBaseId
}).
FirstOrDefault
();
if
((
BasicsModel
?.
IsEnableFXGrade
??
2
)
==
1
)
{
var
FXList
=
distributor_FXGradeRepository
.
GetList
(
new
RB_Distributor_FXGrade_Extend
()
{
TenantId
=
TenantId
,
MallBaseId
=
MallBaseId
});
...
...
@@ -1634,6 +1634,22 @@ namespace Mall.Module.Product
}
#
endregion
#
region
赠送
vip
会员
string
PresentFXGradeMsg
=
""
;
if
((
BasicsModel
?.
IsEnableFXGrade
??
2
)
==
1
)
{
if
(
model
.
PresentFXGrade
>
0
)
{
var
fxmodel
=
distributor_FXGradeRepository
.
GetEntity
(
model
.
PresentFXGrade
);
if
(
fxmodel
!=
null
)
{
PresentFXGradeMsg
=
"购买收货后赠送"
+
fxmodel
+
"会员"
;
if
(
model
.
PresentFXMonth
>
0
)
{
PresentFXGradeMsg
+=
(
model
.
PresentFXMonth
??
0
)
+
"个月"
;
}
}
}
}
#
endregion
#
region
会员价格
decimal
price_member_max
=
0
,
price_member_min
=
0
,
price_min
=
0
,
price_max
=
0
;
if
(
model
.
EnjoyMember
==
1
&&
model
.
SeparateSetMember
==
1
&&
model
.
MemberPriceList
.
Any
())
...
...
@@ -1840,7 +1856,8 @@ namespace Mall.Module.Product
integral
=
new
{
title
=
Integral
>
0
?
"购买可得"
+
Integral
+
"积分"
:
""
}
},
PresentFXGradeMsg
},
//plugin_extra = new List<object>(),
express
=
model
.
Express
,
//快递费用 读取默认收货地址 如果没有为0 如果有 根据商品运费匹配 找出快递费用
...
...
Mall.Module.User/UserCommonModule.cs
View file @
197a809d
...
...
@@ -846,7 +846,7 @@ namespace Mall.Module.User
}
catch
(
Exception
ex
)
{
LogHelper
.
Write
(
ex
,
"FXAutoUpgradeUserDistributorGrade
"
);
LogHelper
.
Write
(
ex
,
"FXAutoUpgradeUserDistributorGrade
自动升级失败,BuyUserId:"
+
BuyUserId
);
return
false
;
}
}
...
...
Mall.Module.User/UserModule.cs
View file @
197a809d
This diff is collapsed.
Click to expand it.
Mall.WebApi/Controllers/Product/ProductController.cs
View file @
197a809d
...
...
@@ -1531,7 +1531,9 @@ namespace Mall.WebApi.Controllers.MallBase
})
}),
model
.
CarouselImageList
,
model
.
ServiceList
model
.
ServiceList
,
model
.
PresentFXGrade
,
model
.
PresentFXMonth
});
}
...
...
@@ -1981,6 +1983,9 @@ namespace Mall.WebApi.Controllers.MallBase
demodel
.
ProxyRises
??=
0
;
demodel
.
ProxyMoney
??=
0
;
demodel
.
IsProcurement
=
2
;
//新增时
demodel
.
PresentFXGrade
??=
0
;
//赠送粉象等级
demodel
.
PresentFXMonth
??=
0
;
if
(
demodel
.
IsProxy
==
1
&&
demodel
.
CostPrice
>
0
)
{
decimal
ProxyMoney
=
0
;
...
...
Mall.WebApi/Controllers/User/AppletLoginController.cs
View file @
197a809d
...
...
@@ -108,6 +108,19 @@ namespace Mall.WebApi.Controllers.User
int
UserId
=
userModule
.
AddMemberUserInfo
(
demodel
);
bool
flag
=
UserId
>
0
;
if
(
flag
)
{
#
region
粉象返佣
自动注册分销商
普通会员等级
if
((
basicsModel
?.
IsEnableFXGrade
??
2
)
==
1
)
{
try
{
var
FXPModel
=
userModule
.
GetFXDistributorGradeList
(
new
RB_Distributor_FXGrade_Extend
()
{
IsGuest
=
1
,
MallBaseId
=
requestParm
.
MallBaseId
,
TenantId
=
requestParm
.
TenantId
}).
FirstOrDefault
();
userModule
.
SetDistributorInfoForFX
(
FXPModel
?.
Id
??
0
,
UserId
,
requestParm
.
TenantId
,
requestParm
.
MallBaseId
);
}
catch
(
Exception
ex
)
{
LogHelper
.
Write
(
ex
,
"粉象模式 自动生成分销商失败,UserId:"
+
UserId
);
}
}
#
endregion
//返回基本信息
TokenUserInfo
userInfo
=
new
TokenUserInfo
{
uid
=
UserId
.
ToString
(),
requestFrom
=
ApiRequestFromEnum
.
MiniProgram
};
#
region
JWT
...
...
Mall.WebApi/Controllers/User/UserVipController.cs
View file @
197a809d
...
...
@@ -245,7 +245,7 @@ namespace Mall.WebApi.Controllers.User
},
ColumnHight
=
30
};
for
(
var
i
=
0
;
i
<
6
;
i
++)
for
(
var
i
=
0
;
i
<
5
;
i
++)
{
datarow
.
ExcelRows
.
Add
(
new
ExcelColumn
(
value
:
""
)
{
});
}
...
...
Mall.WindowsService/Mall.WindowsService.csproj
View file @
197a809d
...
...
@@ -27,6 +27,7 @@
<ProjectReference Include="..\Mall.Common\Mall.Common.csproj" />
<ProjectReference Include="..\Mall.DataAccess\Mall.DataAccess.csproj" />
<ProjectReference Include="..\Mall.Model\Mall.Model.csproj" />
<ProjectReference Include="..\Mall.Module.User\Mall.Module.User.csproj" />
<ProjectReference Include="..\Mall.Repository\Mall.Repository.csproj" />
</ItemGroup>
...
...
Mall.WindowsService/Module/FinanceModule.cs
View file @
197a809d
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