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
8b8fe998
Commit
8b8fe998
authored
Jun 30, 2020
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
90414d0e
4db0c93a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
70 deletions
+55
-70
RB_Distributor_Basics.cs
Mall.Model/Entity/User/RB_Distributor_Basics.cs
+4
-0
UserCommonModule.cs
Mall.Module.User/UserCommonModule.cs
+2
-1
UserModule.cs
Mall.Module.User/UserModule.cs
+47
-69
UserController.cs
Mall.WebApi/Controllers/User/UserController.cs
+2
-0
No files found.
Mall.Model/Entity/User/RB_Distributor_Basics.cs
View file @
8b8fe998
...
...
@@ -207,5 +207,9 @@ namespace Mall.Model.Entity.User
/// 是否开启和平下线审核 1是 2否
/// </summary>
public
int
?
HpReferralsGradeAudit
{
get
;
set
;
}
/// <summary>
/// 是否必须提完所有
/// </summary>
public
int
?
IsWithdrawAll
{
get
;
set
;
}
}
}
Mall.Module.User/UserCommonModule.cs
View file @
8b8fe998
...
...
@@ -95,7 +95,8 @@ namespace Mall.Module.User
WithdrawFee
=
0
,
WithdrawWay
=
"["
+
(
int
)
Common
.
Enum
.
User
.
DistrbutorWithdrawWayEnum
.
ZDDK
+
"]"
,
IsCommissionResidue
=
2
,
HpReferralsGradeAudit
=
2
HpReferralsGradeAudit
=
2
,
IsWithdrawAll
=
2
})
>
0
;
}
else
...
...
Mall.Module.User/UserModule.cs
View file @
8b8fe998
...
...
@@ -132,10 +132,7 @@ namespace Mall.Module.User
/// </summary>
private
RB_MiniProgram_FenXiaoPosterRepository
fenXiaoPosterRepository
=
new
RB_MiniProgram_FenXiaoPosterRepository
();
/// <summary>
/// 会员购买
/// </summary>
private
RB_Member_BuyRepository
memberBuyRepository
=
new
RB_Member_BuyRepository
();
#
region
基础配置
/// <summary>
...
...
@@ -889,6 +886,8 @@ namespace Mall.Module.User
{
nameof
(
RB_Distributor_Basics
.
IndexImage
),
demodel
.
IndexImage
},
{
nameof
(
RB_Distributor_Basics
.
UpdateDate
),
demodel
.
UpdateDate
},
{
nameof
(
RB_Distributor_Basics
.
HpReferralsGradeAudit
),
demodel
.
HpReferralsGradeAudit
},
{
nameof
(
RB_Distributor_Basics
.
IsCommissionResidue
),
demodel
.
IsCommissionResidue
},
{
nameof
(
RB_Distributor_Basics
.
IsWithdrawAll
),
demodel
.
IsWithdrawAll
},
};
List
<
WhereHelper
>
whereHelpers
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
...
...
@@ -1385,7 +1384,7 @@ namespace Mall.Module.User
/// <returns></returns>
public
bool
SetHpUserReferralsAudit
(
int
userId
,
int
type
,
AppletUserInfo
userInfo
)
{
if
(
GetHpDistributorIsEnabled
(
userInfo
.
TenantId
,
userInfo
.
MallBaseId
)
==
2
)
if
(
GetHpDistributorIsEnabled
(
userInfo
.
TenantId
,
userInfo
.
MallBaseId
)
==
2
&&
userInfo
.
TenantId
!=
1
)
{
return
false
;
}
...
...
@@ -1403,6 +1402,7 @@ namespace Mall.Module.User
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Distributor_Info
.
AuditStatus
),
DistributorAuditStatusEnum
.
Audited
},
{
nameof
(
RB_Distributor_Info
.
HPGradeId
),
MinGradeId
},
{
nameof
(
RB_Distributor_Info
.
GradeId
),
userInfo
.
TenantId
==
1
?
74
:
disModel
.
GradeId
},
{
nameof
(
RB_Distributor_Info
.
Remark
),
"上线自行审核通过"
},
{
nameof
(
RB_Distributor_Info
.
AuditDate
),
DateTime
.
Now
}
};
...
...
@@ -1413,7 +1413,28 @@ namespace Mall.Module.User
OperatorEnum
=
OperatorEnum
.
Equal
}
};
return
distributor_InfoRepository
.
Update
(
keyValues
,
wheres
);
bool
flag
=
distributor_InfoRepository
.
Update
(
keyValues
,
wheres
);
if
(
flag
)
{
//修改用户表状态
Dictionary
<
string
,
object
>
keyValues1
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Member_User
.
IsDistributor
),
1
}
};
List
<
WhereHelper
>
wheres1
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
FiledName
=
nameof
(
RB_Member_User
.
Id
),
FiledValue
=
disModel
.
UserId
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
member_UserRepository
.
Update
(
keyValues1
,
wheres1
);
var
umodel
=
GetMemberUserInfo
(
disModel
.
UserId
??
0
);
if
(
umodel
!=
null
)
{
new
MiniProgramMsgModule
().
SendAuditResultMsg
(
disModel
.
TenantId
,
disModel
.
MallBaseId
,
umodel
.
OpenId
,
"分销商审核已通过"
,
"通过"
,
umodel
.
Name
,
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
}
}
return
flag
;
}
else
{
...
...
@@ -1429,7 +1450,15 @@ namespace Mall.Module.User
OperatorEnum
=
OperatorEnum
.
Equal
}
};
return
distributor_InfoRepository
.
Update
(
keyValues
,
wheres
);
bool
flag
=
distributor_InfoRepository
.
Update
(
keyValues
,
wheres
);
if
(
flag
)
{
var
umodel
=
GetMemberUserInfo
(
disModel
.
UserId
??
0
);
if
(
umodel
!=
null
)
{
new
MiniProgramMsgModule
().
SendAuditResultMsg
(
disModel
.
TenantId
,
disModel
.
MallBaseId
,
umodel
.
OpenId
,
"分销商审核被拒绝"
,
"拒绝"
,
umodel
.
Name
,
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
}
}
return
flag
;
}
}
...
...
@@ -1595,7 +1624,14 @@ namespace Mall.Module.User
}
};
bool
flag
=
distributor_InfoRepository
.
Update
(
keyValues
,
wheres
,
trans
);
if
(
flag
)
{
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"
));
}
}
}
}
else
if
(
type
==
3
)
...
...
@@ -1637,7 +1673,7 @@ namespace Mall.Module.User
}
};
member_UserRepository
.
Update
(
keyValues1
,
wheres1
,
trans
);
}
}
}
...
...
@@ -2790,7 +2826,7 @@ namespace Mall.Module.User
SuperiorId
,
SuperiorName
,
DistributorGradeEntrance
=
HpEnabled
==
1
?
2
:
(
basicsModel
?.
GradeEntrance
??
2
),
HpReferralsGradeAudit
=
HpEnabled
==
1
?
(
basicsModel
?.
HpReferralsGradeAudit
??
2
)
:
2
,
HpReferralsGradeAudit
=
userInfo
.
TenantId
==
1
?
1
:
HpEnabled
==
1
?
(
basicsModel
?.
HpReferralsGradeAudit
??
2
)
:
2
,
CommissionWithdrawal
=
model
.
CommissionWithdrawal
??
0
,
TXCommission
=
commModel
?.
TXCommission
??
0
,
WJSCommission
,
...
...
@@ -2982,6 +3018,7 @@ namespace Mall.Module.User
CanRemitMoney
,
basicsModel
.
MinimumWithdrawalLimit
,
basicsModel
.
WithdrawFee
,
basicsModel
.
IsWithdrawAll
,
WithdrawWayList
=
WayList
.
Select
(
x
=>
new
{
Id
=
Convert
.
ToInt32
(
x
.
Value
),
...
...
@@ -2997,7 +3034,6 @@ namespace Mall.Module.User
/// <returns></returns>
public
string
SetDistrbutorWithdrawDeposit
(
RB_Distributor_Remit_Extend
demodel
)
{
//验证金额
var
disModel
=
distributor_InfoRepository
.
GetList
(
new
RB_Distributor_Info_Extend
()
{
UserId
=
demodel
.
UserId
,
TenantId
=
demodel
.
TenantId
,
MallBaseId
=
demodel
.
MallBaseId
}).
FirstOrDefault
();
if
((
disModel
.
CommissionWithdrawal
??
0
)
<
(
demodel
.
AppliedMoney
??
0
))
...
...
@@ -4317,63 +4353,5 @@ namespace Mall.Module.User
}
#
endregion
#
region
会员购买
/// <summary>
/// 分页列表
/// </summary>
/// <param name="pageIndex">页码</param>
/// <param name="pageSize">每页显示条数</param>
/// <param name="rowCount">总条数</param>
/// <param name="dmodel">查询条件</param>
/// <returns></returns>
public
List
<
RB_Member_Buy_Extend
>
GetPageList
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_Member_Buy_Extend
dmodel
)
{
return
memberBuyRepository
.
GetPageList
(
pageIndex
,
pageSize
,
out
rowCount
,
dmodel
);
}
/// <summary>
/// 新增会员购买记录
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public
bool
AddMemberBuy
(
RB_Member_Buy_Extend
model
)
{
if
(
model
.
Id
==
0
)
{
return
memberBuyRepository
.
Insert
(
model
);
}
return
false
;
}
/// <summary>
/// 更新会员购买记录
/// </summary>
/// <param name="payTime"></param>
/// <param name="orderId"></param>
/// <returns></returns>
public
bool
UpdateMemberBuy
(
DateTime
payTime
,
int
orderId
)
{
if
(
orderId
>
0
)
{
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Member_Buy
.
PayTime
),
payTime
},
{
nameof
(
RB_Member_Buy
.
PayState
),
1
}
};
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
{
FiledName
=
nameof
(
RB_Member_Footmark
.
Id
),
FiledValue
=
orderId
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
return
memberBuyRepository
.
Update
(
keyValues
,
wheres
);
}
return
false
;
}
#
endregion
}
}
Mall.WebApi/Controllers/User/UserController.cs
View file @
8b8fe998
...
...
@@ -753,6 +753,7 @@ namespace Mall.WebApi.Controllers.User
demodel
.
BackgroundImage
??=
0
;
demodel
.
IndexImage
??=
0
;
demodel
.
HpReferralsGradeAudit
??=
2
;
demodel
.
IsWithdrawAll
??=
2
;
demodel
.
TenantId
=
Convert
.
ToInt32
(
requestParm
.
uid
);
demodel
.
MallBaseId
=
requestParm
.
MallBaseId
;
demodel
.
CreateDate
=
DateTime
.
Now
;
...
...
@@ -804,6 +805,7 @@ namespace Mall.WebApi.Controllers.User
model
.
IndexImagePath
,
model
.
IsCommissionResidue
,
model
.
HpReferralsGradeAudit
,
model
.
IsWithdrawAll
,
UpdateDate
=
model
.
UpdateDate
.
HasValue
?
model
.
UpdateDate
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
:
""
});
}
...
...
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