Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
T
tcm-system
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
TCM
tcm-system
Commits
b33390ad
Commit
b33390ad
authored
Apr 24, 2023
by
tangfang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改用户二维码生成
parent
20f8ead9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
CompanyServiceImpl.java
...ngding/web/authority/service/impl/CompanyServiceImpl.java
+15
-11
No files found.
src/main/java/com/pangding/web/authority/service/impl/CompanyServiceImpl.java
View file @
b33390ad
...
...
@@ -669,10 +669,10 @@ public class CompanyServiceImpl implements CompanyService {
reqVo
.
setReservedPhone
(
reqVo
.
getPhone
());
reqVo
.
setStatus
(
0
);
ResponseResult
<
CompanyBankCardReqVo
>
result
=
new
ResponseResult
<>();
if
(
2
==
reqVo
.
getType
())
{
if
(
2
==
reqVo
.
getType
())
{
result
=
payFeign
.
bindCompanyAccount
(
reqVo
);
}
else
{
result
=
payFeign
.
bindBack
(
reqVo
);
}
else
{
result
=
payFeign
.
bindBack
(
reqVo
);
}
if
(
null
==
result
||
!
"00"
.
equals
(
result
.
getCode
()))
{
throw
new
CodeException
(
"绑定银行卡失败,请重试"
);
...
...
@@ -739,7 +739,7 @@ public class CompanyServiceImpl implements CompanyService {
public
void
setDefault
(
CompanyBankCardVo
reqVo
)
{
// 查询银行卡
CompanyBankCardVo
companyBankCardVo
=
companyBankCardDao
.
load
(
reqVo
,
CompanyBankCardVo
.
class
);
if
(
StringHelper
.
isEmpty
(
companyBankCardVo
))
{
if
(
StringHelper
.
isEmpty
(
companyBankCardVo
))
{
throw
new
CodeException
(
"银行卡未找到。"
);
}
// 将该公司下所有银行卡设为非默认
...
...
@@ -1178,13 +1178,17 @@ public class CompanyServiceImpl implements CompanyService {
companyDao
.
update
(
companyVo
);
// 更新或新增提现规则表
saveCompanyRule
(
reqVo
.
getCompanyRuleVoList
(),
companyVo
);
if
(
1
==
reqVo
.
getDiscountRule
())
{
saveCompanyRule
(
reqVo
.
getCompanyRuleVoList
(),
companyVo
);
}
// 更新或新增邀请规则表
saveCompanyInvitationRule
(
reqVo
.
getCompanyInvitationActivatRuleVoList
(),
companyVo
,
0
);
if
(
1
==
reqVo
.
getInvitationStatus
()){
// 更新或新增邀请规则表
saveCompanyInvitationRule
(
reqVo
.
getCompanyInvitationActivatRuleVoList
(),
companyVo
,
0
);
// 更新或新增邀请规则表
saveCompanyInvitationRule
(
reqVo
.
getCompanyInvitationRewardRuleVoList
(),
companyVo
,
1
);
// 更新或新增邀请规则表
saveCompanyInvitationRule
(
reqVo
.
getCompanyInvitationRewardRuleVoList
(),
companyVo
,
1
);
}
/*新增或更新pd_company_divide_rule表*/
CompanyDivideRuleVo
companyDivideRuleVo
=
new
CompanyDivideRuleVo
();
...
...
@@ -1351,7 +1355,7 @@ public class CompanyServiceImpl implements CompanyService {
CompanyResVo
companyResVo
=
companyDao
.
load
(
req
.
getCompanyVo
().
getId
(),
CompanyResVo
.
class
);
if
(
StringHelper
.
isEmpty
(
companyResVo
))
{
// 公司信息为空
return
(
ResponseResult
)
ResponseResult
.
error
(
"99"
,
"注册信息有误"
);
return
(
ResponseResult
)
ResponseResult
.
error
(
"99"
,
"注册信息有误"
);
}
ObjectHelper
.
writeWithFrom
(
companyResVo
,
req
.
getCompanyVo
());
companyResVo
.
setAddress
(
req
.
getCompanyVo
().
getAddress
());
...
...
@@ -1455,7 +1459,7 @@ public class CompanyServiceImpl implements CompanyService {
// 错误信息为空,发送验证码成功 修改信息成功
return
responseResult
;
}
else
{
return
(
ResponseResult
)
ResponseResult
.
error
(
"99"
,
saveCompanyReqVo
.
getErrorMessage
());
return
(
ResponseResult
)
ResponseResult
.
error
(
"99"
,
saveCompanyReqVo
.
getErrorMessage
());
}
}
...
...
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