Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
f32380a7
Commit
f32380a7
authored
Jun 27, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改经销商管理员注册时手机号和用户名校验错误
parent
10db47a8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
UnitInfoMapper.java
...join/amos/boot/module/hygf/api/mapper/UnitInfoMapper.java
+2
-0
UnitInfoMapper.xml
...gf-api/src/main/resources/mapper/mysql/UnitInfoMapper.xml
+12
-0
UnitInfoServiceImpl.java
...oot/module/hygf/biz/service/impl/UnitInfoServiceImpl.java
+3
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/UnitInfoMapper.java
View file @
f32380a7
...
...
@@ -36,4 +36,6 @@ public interface UnitInfoMapper extends BaseMapper<UnitInfo> {
Integer
getUserListHuiCount
(
String
phone
,
String
userName
);
Integer
getUserListPauCount
(
String
phone
,
String
userName
);
Integer
getUserListSubCount
(
String
phone
,
String
userName
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/UnitInfoMapper.xml
View file @
f32380a7
...
...
@@ -150,4 +150,16 @@ from privilege_company where IS_DELETED=0 and AGENCY_CODE='JXIOP'
</where>
</select>
<select
id=
"getUserListSubCount"
resultType=
"integer"
>
select count(*) from std_user_biz
<where>
<if
test=
"phone != null and phone !=''"
>
and emergency_telephone = #{phone}
</if>
<if
test=
"userName != null and userName !=''"
>
and amos_user_name = #{userName}
</if>
</where>
</select>
</mapper>
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/UnitInfoServiceImpl.java
View file @
f32380a7
...
...
@@ -1060,12 +1060,13 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
public
Boolean
hasExistPhoneOrUserName
(
String
phone
,
String
userName
)
{
Integer
userListHuiCount
=
unitInfoMapper
.
getUserListHuiCount
(
phone
,
userName
);
Integer
userListPauCount
=
unitInfoMapper
.
getUserListPauCount
(
phone
,
userName
);
Integer
userListSubCount
=
unitInfoMapper
.
getUserListSubCount
(
phone
,
userName
);
if
((
userListHuiCount
!=
0
||
userListPauCount
!=
0
)
&&
phone
!=
null
)
{
if
((
userListHuiCount
!=
0
||
userListPauCount
!=
0
||
userListSubCount
!=
0
)
&&
phone
!=
null
)
{
throw
new
BadRequest
(
"该手机号已经注册"
);
}
if
((
userListHuiCount
!=
0
||
userListPauCount
!=
0
)
&&
userName
!=
null
)
{
if
((
userListHuiCount
!=
0
||
userListPauCount
!=
0
||
userListSubCount
!=
0
)
&&
userName
!=
null
)
{
throw
new
BadRequest
(
"该用户名已经注册"
);
}
return
true
;
...
...
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