Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -56,7 +56,7 @@ public class LoginServiceImpl implements LoginService { | ... | @@ -56,7 +56,7 @@ public class LoginServiceImpl implements LoginService { |
| 56 | .getClientCustomerByContactNo(loginDto.getHisCustomerId()) | 56 | .getClientCustomerByContactNo(loginDto.getHisCustomerId()) |
| 57 | .getResponse(); | 57 | .getResponse(); |
| 58 | if (customer.getId() == 0) { | 58 | if (customer.getId() == 0) { |
| 59 | - throw ClientEndExceptions.AuthenticationFailure.build(ErrorCodeEnum.UNAUTHORIZED.name()); | 59 | + throw ClientEndExceptions.IncorrectRequestValue.build(ErrorCodeEnum.VALIDATE_FAILED.name()); |
| 60 | } else { | 60 | } else { |
| 61 | var record = | 61 | var record = |
| 62 | clientCustomerServiceRpcClient.getClientCustomerHospitalRecordsByCustomerId( | 62 | clientCustomerServiceRpcClient.getClientCustomerHospitalRecordsByCustomerId( |
| ... | @@ -64,8 +64,8 @@ public class LoginServiceImpl implements LoginService { | ... | @@ -64,8 +64,8 @@ public class LoginServiceImpl implements LoginService { |
| 64 | if (!record.hasResponse() | 64 | if (!record.hasResponse() |
| 65 | || record.getResponse().getHospitalStatus() | 65 | || record.getResponse().getHospitalStatus() |
| 66 | != ClientCustomerHospitalRecordHospitalStatusEnum.CURRENT) { | 66 | != ClientCustomerHospitalRecordHospitalStatusEnum.CURRENT) { |
| 67 | - throw ClientEndExceptions.AuthenticationFailure.build( | 67 | + throw ClientEndExceptions.IncorrectRequestValue.build( |
| 68 | - ErrorCodeEnum.UNAUTHORIZED.name()); | 68 | + ErrorCodeEnum.VALIDATE_FAILED.name()); |
| 69 | } | 69 | } |
| 70 | } | 70 | } |
| 71 | } else { | 71 | } else { | ... | ... |
-
Please register or login to post a comment