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
210d19f4
Commit
210d19f4
authored
Jun 22, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a86bb908
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
151 additions
and
4 deletions
+151
-4
RB_Goods_Proxy.cs
Mall.Model/Entity/Product/RB_Goods_Proxy.cs
+98
-0
RB_Goods_Proxy_Extend.cs
Mall.Model/Extend/Product/RB_Goods_Proxy_Extend.cs
+18
-0
ProductModule.cs
Mall.Module.Product/ProductModule.cs
+4
-3
UserModule.cs
Mall.Module.User/UserModule.cs
+27
-1
UserController.cs
Mall.WebApi/Controllers/User/UserController.cs
+4
-0
No files found.
Mall.Model/Entity/Product/RB_Goods_Proxy.cs
0 → 100644
View file @
210d19f4
using
Mall.Common.AOP
;
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_Proxy
{
/// <summary>
/// Id
/// </summary>
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 原商品id
/// </summary>
public
int
?
GoodsId
{
get
;
set
;
}
/// <summary>
/// 原商户号
/// </summary>
public
int
TenantId
{
get
;
set
;
}
/// <summary>
/// 原小程序id
/// </summary>
public
int
MallBaseId
{
get
;
set
;
}
/// <summary>
/// 代理商品id
/// </summary>
public
int
?
ProxyGoodsId
{
get
;
set
;
}
/// <summary>
/// 代理商户
/// </summary>
public
int
ProxyTenantId
{
get
;
set
;
}
/// <summary>
/// 代理小程序id
/// </summary>
public
int
ProxyMallBaseId
{
get
;
set
;
}
/// <summary>
/// 删除状态 0正常
/// </summary>
public
int
?
Status
{
get
;
set
;
}
/// <summary>
/// 描述
/// </summary>
public
string
Remark
{
get
;
set
;
}
/// <summary>
/// CreateDate
/// </summary>
public
DateTime
?
CreateDate
{
get
;
set
;
}
}
}
Mall.Model/Extend/Product/RB_Goods_Proxy_Extend.cs
0 → 100644
View file @
210d19f4
using
Mall.Common.AOP
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
Mall.Model.Entity.Product
;
namespace
Mall.Model.Extend.Product
{
/// <summary>
/// 商品代理表扩展实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Goods_Proxy_Extend
:
RB_Goods_Proxy
{
}
}
Mall.Module.Product/ProductModule.cs
View file @
210d19f4
...
...
@@ -3936,7 +3936,7 @@ namespace Mall.Module.Product
Id
=
0
});
string
zdgradeStr
=
string
.
Join
(
","
,
dgradeList
.
Select
(
x
=>
x
.
Id
).
OrderBy
(
x
=>
x
));
string
ndgradeStr
=
string
.
Join
(
","
,
model
.
DistributionCommissionList
.
Select
(
x
=>
x
.
DistributorGrade
).
OrderBy
(
x
=>
x
));
string
ndgradeStr
=
string
.
Join
(
","
,
model
.
DistributionCommissionList
.
Select
(
x
=>
x
.
DistributorGrade
).
Distinct
().
OrderBy
(
x
=>
x
));
var
KeyList
=
model
.
DistributionCommissionList
.
Select
(
x
=>
x
.
SpecificationSort
??
""
).
Distinct
().
ToList
();
if
(
zdgradeStr
==
ndgradeStr
)
{
...
...
@@ -4046,7 +4046,7 @@ namespace Mall.Module.Product
var
mgradeList
=
member_GradeRepository
.
GetList
(
new
RB_Member_Grade_Extend
()
{
Enabled
=
1
,
TenantId
=
1
,
MallBaseId
=
1
});
string
zdgradeStr
=
string
.
Join
(
","
,
mgradeList
.
Select
(
x
=>
x
.
Id
).
OrderBy
(
x
=>
x
));
string
ndgradeStr
=
string
.
Join
(
","
,
model
.
MemberPriceList
.
Select
(
x
=>
x
.
MemberGrade
).
OrderBy
(
x
=>
x
));
string
ndgradeStr
=
string
.
Join
(
","
,
model
.
MemberPriceList
.
Select
(
x
=>
x
.
MemberGrade
).
Distinct
().
OrderBy
(
x
=>
x
));
if
(
zdgradeStr
==
ndgradeStr
)
{
var
KeyList
=
model
.
MemberPriceList
.
Select
(
x
=>
x
.
SpecificationSort
??
""
).
Distinct
().
ToList
();
...
...
@@ -4085,7 +4085,8 @@ namespace Mall.Module.Product
foreach
(
var
qitem
in
KeyList
)
{
var
treemodel
=
model
.
MemberPriceList
.
Where
(
x
=>
(
x
.
SpecificationSort
??
""
)
==
qitem
).
FirstOrDefault
();
treemodel
.
GradePriceList
=
model
.
MemberPriceList
.
Where
(
x
=>
(
x
.
SpecificationSort
??
""
)
==
qitem
).
ToList
();
//treemodel.GradePriceList = model.MemberPriceList.Where(x => (x.SpecificationSort ?? "") == qitem).ToList();
treemodel
.
GradePriceList
=
new
List
<
RB_Goods_MemberPrice_Extend
>()
{
};
var
gradePrice
=
model
.
MemberPriceList
.
Where
(
x
=>
(
x
.
SpecificationSort
??
""
)
==
qitem
).
ToList
();
mgradeList
=
mgradeList
.
OrderByDescending
(
x
=>
x
.
Grade
).
ToList
();
foreach
(
var
grade
in
mgradeList
)
...
...
Mall.Module.User/UserModule.cs
View file @
210d19f4
...
...
@@ -1557,6 +1557,12 @@ namespace Mall.Module.User
}
};
member_UserRepository
.
Update
(
keyValues1
,
wheres1
,
trans
);
var
umodel
=
GetMemberUserInfo
(
item
.
UserId
??
0
);
if
(
umodel
!=
null
)
{
new
MiniProgramMsgModule
().
SendAuditResultMsg
(
item
.
TenantId
,
item
.
MallBaseId
,
umodel
.
OpenId
,
"分销商审核已通过"
,
"通过"
,
umodel
.
Name
,
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
}
}
}
}
...
...
@@ -1955,7 +1961,27 @@ namespace Mall.Module.User
OperatorEnum
=
OperatorEnum
.
Equal
}
};
distributor_RemitRepository
.
Update
(
keyValues
,
wheres
);
bool
flag
=
distributor_RemitRepository
.
Update
(
keyValues
,
wheres
);
if
(
flag
)
{
//拒绝之后 需回滚提现佣金
var
remodel
=
distributor_RemitRepository
.
GetEntity
(
remitId
);
var
dmodel
=
distributor_InfoRepository
.
GetList
(
new
RB_Distributor_Info_Extend
()
{
UserId
=
remodel
.
UserId
,
TenantId
=
Convert
.
ToInt32
(
uid
),
MallBaseId
=
mallBaseId
}).
FirstOrDefault
();
if
(
dmodel
!=
null
)
{
Dictionary
<
string
,
object
>
keyValues1
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Distributor_Info
.
CommissionWithdrawal
),
(
dmodel
.
CommissionWithdrawal
??
0
)
+
(
remodel
.
AppliedMoney
??
0
)}
};
List
<
WhereHelper
>
wheres1
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
FiledName
=
nameof
(
RB_Distributor_Info
.
Id
),
FiledValue
=
dmodel
.
Id
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
distributor_InfoRepository
.
Update
(
keyValues1
,
wheres1
);
}
}
}
else
{
...
...
Mall.WebApi/Controllers/User/UserController.cs
View file @
210d19f4
...
...
@@ -1872,6 +1872,10 @@ namespace Mall.WebApi.Controllers.User
string
msg
=
userModule
.
SetDistributorRemitAudit
(
RemitId
,
Type
,
Remark
,
re
.
uid
,
re
.
MallBaseId
);
if
(
msg
==
""
)
{
if
(
Type
==
3
)
{
var
umodel
=
userModule
.
GetMemberUserInfo
(
model
.
UserId
??
0
);
new
MiniProgramMsgModule
().
SendWithdrawFailMsg
(
model
.
TenantId
,
model
.
MallBaseId
,
umodel
.
OpenId
,
(
model
.
RemitMoney
??
0
).
ToString
(),
"提现申请已被拒绝"
);
}
return
ApiResult
.
Success
();
}
else
...
...
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