Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
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
项目统一框架
amos-boot-biz
Commits
c9ee68e2
Commit
c9ee68e2
authored
Nov 08, 2022
by
limei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业注册接口校验修改
parent
2da620c9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
CompanyController.java
...mos/boot/module/ugp/biz/controller/CompanyController.java
+7
-4
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/CompanyController.java
View file @
c9ee68e2
...
@@ -294,7 +294,7 @@ public class CompanyController extends BaseController {
...
@@ -294,7 +294,7 @@ public class CompanyController extends BaseController {
public
ResponseModel
<
Boolean
>
hasExistUser
(
@PathVariable
(
value
=
"adminLoginName"
)
String
adminLoginName
)
{
public
ResponseModel
<
Boolean
>
hasExistUser
(
@PathVariable
(
value
=
"adminLoginName"
)
String
adminLoginName
)
{
Boolean
flag
=
false
;
Boolean
flag
=
false
;
Company
company
=
companyServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
Company
>().
eq
(
Company:
:
getAdminLoginName
,
adminLoginName
));
Company
company
=
companyServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
Company
>().
eq
(
Company:
:
getAdminLoginName
,
adminLoginName
));
if
(
ValidationUtil
.
isEmpty
(
company
))
{
if
(
!
ValidationUtil
.
isEmpty
(
company
))
{
flag
=
true
;
flag
=
true
;
}
}
return
ResponseHelper
.
buildResponse
(
flag
);
return
ResponseHelper
.
buildResponse
(
flag
);
...
@@ -419,7 +419,7 @@ public class CompanyController extends BaseController {
...
@@ -419,7 +419,7 @@ public class CompanyController extends BaseController {
public
ResponseModel
<
Boolean
>
hasExistPhone
(
@PathVariable
(
value
=
"adminTel"
)
String
adminTel
)
{
public
ResponseModel
<
Boolean
>
hasExistPhone
(
@PathVariable
(
value
=
"adminTel"
)
String
adminTel
)
{
Boolean
flag
=
false
;
Boolean
flag
=
false
;
Company
company
=
companyServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
Company
>().
eq
(
Company:
:
getAdminTel
,
adminTel
));
Company
company
=
companyServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
Company
>().
eq
(
Company:
:
getAdminTel
,
adminTel
));
if
(
ValidationUtil
.
isEmpty
(
company
))
{
if
(
!
ValidationUtil
.
isEmpty
(
company
))
{
flag
=
true
;
flag
=
true
;
}
}
return
ResponseHelper
.
buildResponse
(
flag
);
return
ResponseHelper
.
buildResponse
(
flag
);
...
@@ -435,8 +435,11 @@ public class CompanyController extends BaseController {
...
@@ -435,8 +435,11 @@ public class CompanyController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"判断组织机构是否存在"
,
notes
=
"判断组织机构是否存在"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"判断组织机构是否存在"
,
notes
=
"判断组织机构是否存在"
)
public
ResponseModel
<
Boolean
>
hasExistUnit
(
@PathVariable
(
value
=
"creditCode"
)
String
creditCode
)
{
public
ResponseModel
<
Boolean
>
hasExistUnit
(
@PathVariable
(
value
=
"creditCode"
)
String
creditCode
)
{
Boolean
flag
=
false
;
Boolean
flag
=
false
;
Company
company
=
companyServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
Company
>().
eq
(
Company:
:
getCreditCode
,
creditCode
));
LambdaQueryWrapper
<
Company
>
wrapper
=
new
LambdaQueryWrapper
<>();
if
(
ValidationUtil
.
isEmpty
(
company
))
{
wrapper
.
eq
(
Company:
:
getCreditCode
,
creditCode
);
Company
company
=
companyServiceImpl
.
getOne
(
wrapper
);
// Company company = companyServiceImpl.getOne(new LambdaQueryWrapper<Company>().eq(Company::getCreditCode,creditCode));
if
(!
ValidationUtil
.
isEmpty
(
company
))
{
flag
=
true
;
flag
=
true
;
}
}
return
ResponseHelper
.
buildResponse
(
flag
);
return
ResponseHelper
.
buildResponse
(
flag
);
...
...
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