| | |
| | | |
| | | // 7. 查询是否上班中 |
| | | try { |
| | | R<Boolean> workStatusResult = xpClockInClient.checkWorkStatus(userId); |
| | | R<Integer> workStatusResult = xpClockInClient.checkWorkStatus(userId); |
| | | if (workStatusResult != null && workStatusResult.getCode() == 200) { |
| | | vo.setWorkFlag(workStatusResult.getData()); |
| | | } else { |
| | | // 调用失败,默认 false |
| | | vo.setWorkFlag(false); |
| | | vo.setWorkFlag(1); |
| | | log.warn("查询用户上班状态失败, userId={}, result={}", userId, workStatusResult); |
| | | } |
| | | } catch (Exception e) { |
| | | // 异常情况,默认 false |
| | | vo.setWorkFlag(false); |
| | | vo.setWorkFlag(1); |
| | | log.error("查询用户上班状态异常, userId={}", userId, e); |
| | | } |
| | | |
| | |
| | | if (StringUtils.isBlank(phoneNumber)) { |
| | | return Collections.emptyList(); |
| | | } |
| | | return lambdaQuery().eq(XpOperationsUser::getPhoneNumber, phoneNumber).list(); |
| | | return lambdaQuery().like(XpOperationsUser::getPhoneNumber, phoneNumber).list(); |
| | | } |
| | | } |