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
a9f77f15
Commit
a9f77f15
authored
Jul 12, 2019
by
zjy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user/role/tright 7.12
parent
5f0930ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
16 deletions
+18
-16
CompanyManagementController.java
...web/authority/controller/CompanyManagementController.java
+0
-12
ComputerRegisterController.java
.../web/authority/controller/ComputerRegisterController.java
+18
-4
No files found.
src/main/java/com/pangding/web/authority/controller/CompanyManagementController.java
View file @
a9f77f15
...
...
@@ -248,16 +248,4 @@ public class CompanyManagementController {
return
ResponseResult
.
result
(
companyServiceImpl
.
invitation
(
reqVo
));
}
/**
* 检查邀请码是否真实存在
* @param reqVo
* @return
*/
@PostMapping
(
value
=
"/checkInvitationCode"
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
ResponseResult
<
CompanyVo
>
checkInvitationCode
(
@RequestBody
CheckInvitationCodeReqVo
reqVo
){
CheckerHelper
.
newInstance
()
.
notBlankCheck
(
"invitationCode"
,
reqVo
.
getInvitationCode
())
.
checkException
();
return
ResponseResult
.
result
(
companyServiceImpl
.
checkInvitationCode
(
reqVo
));
}
}
src/main/java/com/pangding/web/authority/controller/ComputerRegisterController.java
View file @
a9f77f15
package
com
.
pangding
.
web
.
authority
.
controller
;
import
com.pangding.web.authority.service.CompanyService
;
import
com.pangding.web.authority.vo.reqvo.*
;
import
com.pangding.web.authority.service.RegisterService
;
import
com.pangding.web.authority.service.UserService
;
...
...
@@ -10,10 +11,7 @@ import com.yanzuoguang.util.helper.FileHelper;
import
com.yanzuoguang.util.vo.ResponseResult
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.commons.CommonsMultipartFile
;
import
java.io.IOException
;
...
...
@@ -30,6 +28,8 @@ public class ComputerRegisterController {
RegisterService
registerServiceImpl
;
@Autowired
UserService
userServiceImpl
;
@Autowired
private
CompanyService
companyServiceImpl
;
/**
* 验证注册第一页数据的合法性并保存在pd_user表中
...
...
@@ -148,4 +148,18 @@ public class ComputerRegisterController {
public
ResponseResult
<
String
>
fileUpload
(
@RequestBody
CommonsMultipartFile
file
)
throws
IOException
{
return
ResponseResult
.
result
(
registerServiceImpl
.
fileUpload
(
file
));
}
/**
* 检查邀请码是否真实存在
* @param reqVo
* @return
*/
@PostMapping
(
value
=
"/checkInvitationCode"
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
ResponseResult
<
CompanyVo
>
checkInvitationCode
(
@RequestBody
CheckInvitationCodeReqVo
reqVo
){
CheckerHelper
.
newInstance
()
.
notBlankCheck
(
"invitationCode"
,
reqVo
.
getInvitationCode
())
.
checkException
();
return
ResponseResult
.
result
(
companyServiceImpl
.
checkInvitationCode
(
reqVo
));
}
}
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