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
711ac42e
Commit
711ac42e
authored
Aug 11, 2019
by
tangf
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://192.168.0.204/pd-new/pd-user
parents
4ff5af8e
bf09f4d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
RegisterServiceImpl.java
...gding/web/authority/service/impl/RegisterServiceImpl.java
+12
-0
No files found.
src/main/java/com/pangding/web/authority/service/impl/RegisterServiceImpl.java
View file @
711ac42e
...
...
@@ -155,6 +155,12 @@ public class RegisterServiceImpl implements RegisterService {
@Override
public
SaveCompanyResVo
saveIndividual
(
RegisterIndividualReqVo
reqVo
)
{
CompanyVo
companyVo1
=
new
CompanyVo
();
companyVo1
.
setContactPhone
(
reqVo
.
getContactPhone
());
CompanyVo
companyVo2
=
companyDaoImpl
.
load
(
companyVo1
,
CompanyVo
.
class
);
if
(
null
!=
companyVo2
&&
!
reqVo
.
getId
().
equals
(
companyVo2
.
getId
())){
throw
new
CodeException
(
"该号码已存在"
);
}
/*此处应该调用第三方接口传入companyVo发送手机验证码并更新公司状态*/
CompanyGetReqVo
companyGetReqVo
=
new
CompanyGetReqVo
();
companyGetReqVo
.
setId
(
reqVo
.
getId
());
...
...
@@ -229,6 +235,12 @@ public class RegisterServiceImpl implements RegisterService {
@Override
public
SaveCompanyResVo
saveEnterprice
(
RegisterEnterpriceReqVo
reqVo
)
{
CompanyVo
companyVo1
=
new
CompanyVo
();
companyVo1
.
setContactPhone
(
reqVo
.
getContactPhone
());
CompanyVo
companyVo2
=
companyDaoImpl
.
load
(
companyVo1
,
CompanyVo
.
class
);
if
(
null
!=
companyVo2
&&
!
reqVo
.
getId
().
equals
(
companyVo2
.
getId
())){
throw
new
CodeException
(
"该号码已存在"
);
}
/*此处应该调用第三方接口传入companyVo发送手机验证码并更新公司状态*/
CompanyGetReqVo
companyGetReqVo
=
new
CompanyGetReqVo
();
companyGetReqVo
.
setId
(
reqVo
.
getId
());
...
...
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