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
0e12a7b8
Commit
0e12a7b8
authored
Oct 28, 2019
by
tangf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改app注册
parent
2ad26b18
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
RoleDaoImpl.java
...java/com/pangding/web/authority/dao/impl/RoleDaoImpl.java
+1
-1
RegisterServiceImpl.java
...gding/web/authority/service/impl/RegisterServiceImpl.java
+8
-8
No files found.
src/main/java/com/pangding/web/authority/dao/impl/RoleDaoImpl.java
View file @
0e12a7b8
...
...
@@ -31,7 +31,7 @@ public class RoleDaoImpl extends BaseDaoImpl implements RoleDao {
table
.
add
(
SELECT
,
"select * from pd_role where 1=1 "
)
.
add
(
"id"
,
"and pid = ?"
);
table
.
add
(
GET_EMPTY_ROLES
,
"select * from pd_role where
company_id = ''
"
);
table
.
add
(
GET_EMPTY_ROLES
,
"select * from pd_role where
1=1
"
);
}
@Override
...
...
src/main/java/com/pangding/web/authority/service/impl/RegisterServiceImpl.java
View file @
0e12a7b8
...
...
@@ -235,12 +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 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
());
...
...
@@ -375,7 +375,7 @@ public class RegisterServiceImpl implements RegisterService {
throw
new
CodeException
(
"用户名或密码错误"
);
}
String
token
=
TokenUtil
.
createToken
(
reqVo
.
getAccountOrPhone
());
TokenHelper
.
write
(
token
,
reqVo
);
LoginResVo
resVo
=
new
LoginResVo
();
resVo
.
setToken
(
token
);
userVo
.
setPassword
(
""
);
...
...
@@ -394,7 +394,7 @@ public class RegisterServiceImpl implements RegisterService {
loginVo
.
setData
(
JsonHelper
.
serialize
(
reqVo
));
loginVo
.
setExpairTime
(
DateHelper
.
getNow
());
tokenService
.
save
(
loginVo
);
TokenHelper
.
write
(
token
,
loginVo
);
CompanyBankCardGetReqVo
getReqVo
=
new
CompanyBankCardGetReqVo
();
getReqVo
.
setCompanyId
(
companyVo
.
getId
());
List
<
CompanyBankCardVo
>
companyBankCardVoList
=
companyBankCardDaoImpl
.
loadList
(
getReqVo
,
CompanyBankCardVo
.
class
);
...
...
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