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
53883e85
Commit
53883e85
authored
Jul 19, 2019
by
zjy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user/role/tright 7.19
parent
cc3b04a2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
9 deletions
+5
-9
CompanyManagementController.java
...web/authority/controller/CompanyManagementController.java
+0
-2
RegisterServiceImpl.java
...gding/web/authority/service/impl/RegisterServiceImpl.java
+1
-5
UserServiceImpl.java
.../pangding/web/authority/service/impl/UserServiceImpl.java
+4
-2
No files found.
src/main/java/com/pangding/web/authority/controller/CompanyManagementController.java
View file @
53883e85
...
...
@@ -178,8 +178,6 @@ public class CompanyManagementController {
.
notBlankCheck
(
"email"
,
reqVo
.
getEmail
())
.
notBlankCheck
(
"phone"
,
reqVo
.
getPhone
())
.
checkPhoneNo
(
"phone"
,
reqVo
.
getPhone
())
.
notBlankCheck
(
"createId"
,
reqVo
.
getCreateId
())
.
notBlankCheck
(
"createName"
,
reqVo
.
getCreateName
())
.
notBlankCheck
(
"companyId"
,
reqVo
.
getCompanyId
())
.
checkException
();
return
ResponseResult
.
result
(
companyServiceImpl
.
saveUser
(
reqVo
));
...
...
src/main/java/com/pangding/web/authority/service/impl/RegisterServiceImpl.java
View file @
53883e85
...
...
@@ -169,8 +169,6 @@ public class RegisterServiceImpl implements RegisterService {
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
SaveCompanyResVo
saveIndividual
(
RegisterIndividualReqVo
reqVo
)
{
this
.
checkPhone
(
reqVo
.
getId
(),
reqVo
.
getContactPhone
());
/*此处应该调用第三方接口传入companyVo发送手机验证码并更新公司状态*/
CompanyGetReqVo
companyGetReqVo
=
new
CompanyGetReqVo
();
companyGetReqVo
.
setId
(
reqVo
.
getId
());
...
...
@@ -245,8 +243,6 @@ public class RegisterServiceImpl implements RegisterService {
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
SaveCompanyResVo
saveEnterprice
(
RegisterEnterpriceReqVo
reqVo
)
{
this
.
checkPhone
(
reqVo
.
getId
(),
reqVo
.
getContactPhone
());
/*此处应该调用第三方接口传入companyVo发送手机验证码并更新公司状态*/
CompanyReqVo
companyReqVo
=
new
CompanyReqVo
();
companyReqVo
.
setBankList
(
new
ArrayList
());
...
...
@@ -278,7 +274,7 @@ public class RegisterServiceImpl implements RegisterService {
ObjectHelper
.
writeWithFrom
(
companyBankCardVo
,
bankList
.
get
(
0
));
companyBankCardVo
.
setIsDefault
(
CompanyBankCardConstant
.
IS_DEFAULT
);
companyBankCardVo
.
setPhone
(
reqVo
.
getContactPhone
());
companyBankCardDaoImpl
.
sav
e
(
companyBankCardVo
);
companyBankCardDaoImpl
.
creat
e
(
companyBankCardVo
);
/*保存公司扩展表*/
CompanyExtendVo
extendVo
=
new
CompanyExtendVo
();
...
...
src/main/java/com/pangding/web/authority/service/impl/UserServiceImpl.java
View file @
53883e85
...
...
@@ -124,7 +124,8 @@ public class UserServiceImpl implements UserService {
UserGetReqVo
userGetReqVo
=
new
UserGetReqVo
();
userGetReqVo
.
setAccount
(
userVo
.
getAccount
());
UserVo
userVo1
=
userDao
.
load
(
userGetReqVo
,
UserVo
.
class
);
if
(
null
!=
userVo1
){
if
((
null
!=
userVo1
&&
null
==
userVo
.
getId
())
||
(
null
!=
userVo1
&&
null
!=
userVo
.
getId
()
&&
!
userVo1
.
getId
().
equals
(
userVo
.
getId
()))){
throw
new
CodeException
(
"用户名"
+
userVo
.
getAccount
()+
"已存在"
);
}
}
...
...
@@ -134,7 +135,8 @@ public class UserServiceImpl implements UserService {
UserGetReqVo
userGetReqVo
=
new
UserGetReqVo
();
userGetReqVo
.
setPhone
(
userVo
.
getPhone
());
UserVo
userVo1
=
userDao
.
load
(
userGetReqVo
,
UserVo
.
class
);
if
(
null
!=
userVo1
){
if
((
null
!=
userVo1
&&
null
==
userVo
.
getId
())
||
(
null
!=
userVo1
&&
null
!=
userVo
.
getId
()
&&
!
userVo1
.
getId
().
equals
(
userVo
.
getId
()))){
throw
new
CodeException
(
"手机号"
+
userVo
.
getPhone
()+
"已存在"
);
}
}
...
...
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