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
c3ed65ee
Commit
c3ed65ee
authored
May 15, 2019
by
zjy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user/role/tright 5.14
个体用户还需要增加Token 准备企业用户注册
parent
d48f5545
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
8 deletions
+17
-8
ComputerRegisterController.java
.../web/authority/controller/ComputerRegisterController.java
+8
-1
RegisterEnterpriceDto.java
...com/pangding/web/authority/dto/RegisterEnterpriceDto.java
+5
-3
MobileRegisterService.java
...pangding/web/authority/service/MobileRegisterService.java
+2
-2
MobileRegisterServiceImpl.java
...web/authority/service/impl/MobileRegisterServiceImpl.java
+2
-2
No files found.
src/main/java/com/pangding/web/authority/controller/ComputerRegisterController.java
View file @
c3ed65ee
...
@@ -83,7 +83,7 @@ public class ComputerRegisterController {
...
@@ -83,7 +83,7 @@ public class ComputerRegisterController {
@RequestMapping
(
value
=
"/individual"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
@RequestMapping
(
value
=
"/individual"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
Object
saveIndividual
(
@RequestBody
RegisterIndividualDto
individualDto
){
public
Object
saveIndividual
(
@RequestBody
RegisterIndividualDto
individualDto
){
mobileRegisterServiceImpl
.
checkPhone
(
individualDto
);
mobileRegisterServiceImpl
.
checkPhone
(
individualDto
.
getContactPhone
()
);
CompanyVo
companyVo
=
new
CompanyVo
();
CompanyVo
companyVo
=
new
CompanyVo
();
...
@@ -110,6 +110,13 @@ public class ComputerRegisterController {
...
@@ -110,6 +110,13 @@ public class ComputerRegisterController {
@RequestMapping
(
value
=
"/enterprise"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
@RequestMapping
(
value
=
"/enterprise"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
Object
saveEnterprise
(
@RequestBody
RegisterEnterpriceDto
enterpriceDto
){
public
Object
saveEnterprise
(
@RequestBody
RegisterEnterpriceDto
enterpriceDto
){
mobileRegisterServiceImpl
.
checkPhone
(
enterpriceDto
.
getContactPhone
());
/*token内容暂时不能用,以后要改动*/
ComputerRegisterUserReturnVo
returnVo
=
TokenHelper
.
get
(
ComputerRegisterUserReturnVo
.
class
);
return
null
;
return
null
;
}
}
...
...
src/main/java/com/pangding/web/authority/dto/RegisterEnterpriceDto.java
View file @
c3ed65ee
...
@@ -7,11 +7,13 @@ package com.pangding.web.authority.dto;
...
@@ -7,11 +7,13 @@ package com.pangding.web.authority.dto;
public
class
RegisterEnterpriceDto
{
public
class
RegisterEnterpriceDto
{
private
String
enterpriceName
;
private
String
enterpriceName
;
private
String
companyAttribute
;
private
String
enterpriceAddress
;
private
String
businessLicenseCode
;
private
String
extraChoseOn
e
;
private
String
merchantNam
e
;
private
String
extraChoseTwo
;
private
String
companyAttribute
;
private
String
enterpricePhone
;
private
String
enterpricePhone
;
...
...
src/main/java/com/pangding/web/authority/service/MobileRegisterService.java
View file @
c3ed65ee
...
@@ -36,7 +36,7 @@ public interface MobileRegisterService {
...
@@ -36,7 +36,7 @@ public interface MobileRegisterService {
/**
/**
* 检查电话号码是否已存在
* 检查电话号码是否已存在
*
*
* @param co
mpanyDto MobileRegisterCompanyDto对象
* @param co
ntactPhone 联系电话
*/
*/
void
checkPhone
(
RegisterIndividualDto
companyDto
);
void
checkPhone
(
String
contactPhone
);
}
}
src/main/java/com/pangding/web/authority/service/impl/MobileRegisterServiceImpl.java
View file @
c3ed65ee
...
@@ -50,9 +50,9 @@ public class MobileRegisterServiceImpl implements MobileRegisterService {
...
@@ -50,9 +50,9 @@ public class MobileRegisterServiceImpl implements MobileRegisterService {
}
}
@Override
@Override
public
void
checkPhone
(
RegisterIndividualDto
companyDto
)
{
public
void
checkPhone
(
String
contactPhone
)
{
CompanyVo
companyVo
=
new
CompanyVo
();
CompanyVo
companyVo
=
new
CompanyVo
();
companyVo
.
setContactPhone
(
co
mpanyDto
.
getContactPhone
()
);
companyVo
.
setContactPhone
(
co
ntactPhone
);
mobileRegisterDaoImpl
.
checkPhone
(
companyVo
);
mobileRegisterDaoImpl
.
checkPhone
(
companyVo
);
}
}
}
}
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