Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jiujian
/
client-customer-order-api
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangyingyang
2025-01-15 16:08:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0a9179e51c024c6eb068527162d79162d726b002
0a9179e5
1 parent
d5aaf13e
update code
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/main/java/com/infoloop/tianting/service/impl/LoginServiceImpl.java
src/main/java/com/infoloop/tianting/service/impl/LoginServiceImpl.java
View file @
0a9179e
...
...
@@ -56,7 +56,7 @@ public class LoginServiceImpl implements LoginService {
.
getClientCustomerByContactNo
(
loginDto
.
getHisCustomerId
())
.
getResponse
();
if
(
customer
.
getId
()
==
0
)
{
throw
ClientEndExceptions
.
AuthenticationFailure
.
build
(
ErrorCodeEnum
.
UNAUTHORIZ
ED
.
name
());
throw
ClientEndExceptions
.
IncorrectRequestValue
.
build
(
ErrorCodeEnum
.
VALIDATE_FAIL
ED
.
name
());
}
else
{
var
record
=
clientCustomerServiceRpcClient
.
getClientCustomerHospitalRecordsByCustomerId
(
...
...
@@ -64,8 +64,8 @@ public class LoginServiceImpl implements LoginService {
if
(!
record
.
hasResponse
()
||
record
.
getResponse
().
getHospitalStatus
()
!=
ClientCustomerHospitalRecordHospitalStatusEnum
.
CURRENT
)
{
throw
ClientEndExceptions
.
AuthenticationFailur
e
.
build
(
ErrorCodeEnum
.
UNAUTHORIZ
ED
.
name
());
throw
ClientEndExceptions
.
IncorrectRequestValu
e
.
build
(
ErrorCodeEnum
.
VALIDATE_FAIL
ED
.
name
());
}
}
}
else
{
...
...
Please
register
or
login
to post a comment