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
72ffc37f
Commit
72ffc37f
authored
Aug 22, 2022
by
wujiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_unit_register' of…
Merge branch 'develop_unit_register' of
http://39.98.45.134:8090/moa/amos-boot-biz
into develop_unit_register
parents
416c5759
ba983186
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
0 deletions
+16
-0
IRegUnitInfoService.java
.../boot/module/tzs/flc/api/service/IRegUnitInfoService.java
+7
-0
RegUnitInfoController.java
.../module/tzs/flc/biz/controller/RegUnitInfoController.java
+4
-0
RegUnitInfoServiceImpl.java
...dule/tzs/flc/biz/service/impl/RegUnitInfoServiceImpl.java
+5
-0
tzs-1.0.0.1.xml
...e-tzs-biz/src/main/resources/db/changelog/tzs-1.0.0.1.xml
+0
-0
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/service/IRegUnitInfoService.java
View file @
72ffc37f
...
...
@@ -57,4 +57,11 @@ public interface IRegUnitInfoService {
* @return true 已存在相同账号,不能注册 false 不存在账号,可以注册
*/
Boolean
checkRepeatAccount
(
String
userName
);
/**
* 手机号重复校验
* @param phoneNo 手机号
* @return true 已存在不能注册 false 不存在可以注册
*/
Boolean
checkRepeatPhone
(
String
phoneNo
);
}
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/controller/RegUnitInfoController.java
View file @
72ffc37f
...
...
@@ -99,6 +99,10 @@ public class RegUnitInfoController extends BaseController {
if
(
isReg
)
{
throw
new
RuntimeException
(
"该手机号已注册!"
);
}
Boolean
isExist
=
iRegUnitInfoService
.
checkRepeatPhone
(
tel
);
if
(
isExist
)
{
throw
new
RuntimeException
(
"该手机号已注册!"
);
}
Boolean
flag
;
HashMap
<
String
,
String
>
params
=
new
HashMap
<>();
String
code
=
this
.
getRandomCode
();
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/service/impl/RegUnitInfoServiceImpl.java
View file @
72ffc37f
...
...
@@ -286,6 +286,11 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
return
this
.
count
(
new
LambdaQueryWrapper
<
RegUnitInfo
>().
eq
(
RegUnitInfo:
:
getAdminLoginName
,
userName
))
>
0
;
}
@Override
public
Boolean
checkRepeatPhone
(
String
phoneNo
)
{
return
this
.
count
(
new
LambdaQueryWrapper
<
RegUnitInfo
>().
eq
(
RegUnitInfo:
:
getAdminTel
,
phoneNo
))
>
0
;
}
private
CompanyModel
dealChildCompany
(
CompanyModel
cm
)
{
cm
.
setChildren
(
this
.
getFilterChild
(
cm
.
getChildren
()
!=
null
?
cm
.
getChildren
()
:
new
ArrayList
()));
cm
.
getChildren
().
stream
().
filter
(
n
->
{
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/resources/db/changelog/tzs-1.0.0.1.xml
View file @
72ffc37f
This diff is collapsed.
Click to expand it.
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