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
1165f57b
Commit
1165f57b
authored
Jul 01, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经销商注册auth_login_info 表有数据,业务表没有数据,审核报手机号重复
parent
323ff25b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-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
+13
-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 @
1165f57b
...
...
@@ -38,4 +38,6 @@ public interface UnitInfoMapper extends BaseMapper<UnitInfo> {
Integer
getUserListPauCount
(
String
phone
,
String
userName
);
Integer
getUserListSubCount
(
String
phone
,
String
userName
);
Integer
getUserListAliCount
(
String
phone
,
String
userName
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/UnitInfoMapper.xml
View file @
1165f57b
...
...
@@ -163,4 +163,17 @@ from privilege_company where IS_DELETED=0 and AGENCY_CODE='JXIOP'
</where>
</select>
<select
id=
"getUserListAliCount"
resultType=
"integer"
>
select count(*) from auth_login_info
<where>
IS_DELETED = 0
<if
test=
"phone != null and phone !=''"
>
and LOGIN_ID = #{phone}
</if>
<if
test=
"userName != null and userName !=''"
>
and LOGIN_ID = #{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 @
1165f57b
...
...
@@ -1061,12 +1061,13 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
Integer
userListHuiCount
=
unitInfoMapper
.
getUserListHuiCount
(
phone
,
userName
);
Integer
userListPauCount
=
unitInfoMapper
.
getUserListPauCount
(
phone
,
userName
);
Integer
userListSubCount
=
unitInfoMapper
.
getUserListSubCount
(
phone
,
userName
);
Integer
userListAliCount
=
unitInfoMapper
.
getUserListAliCount
(
phone
,
userName
);
if
((
userListHuiCount
!=
0
||
userListPauCount
!=
0
||
userListSubCount
!=
0
)
&&
phone
!=
null
)
{
if
((
userListHuiCount
!=
0
||
userListPauCount
!=
0
||
userListSubCount
!=
0
||
userListAliCount
!=
0
)
&&
phone
!=
null
)
{
throw
new
BadRequest
(
"该手机号已经注册"
);
}
if
((
userListHuiCount
!=
0
||
userListPauCount
!=
0
||
userListSubCount
!=
0
)
&&
userName
!=
null
)
{
if
((
userListHuiCount
!=
0
||
userListPauCount
!=
0
||
userListSubCount
!=
0
||
userListAliCount
!=
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