| | |
| | | List<RecoveryClassify> serveList = recoveryClassifyService.lambdaQuery() |
| | | .eq(RecoveryClassify::getIsDelete, 0) |
| | | .eq(RecoveryClassify::getSupClassify, serveType) |
| | | .orderByDesc(RecoveryClassify::getSort) |
| | | .orderByAsc(RecoveryClassify::getSort) |
| | | .orderByDesc(RecoveryClassify::getCreateTime).list(); |
| | | List<UserServeTypeVO> list = new ArrayList<>(); |
| | | for (RecoveryClassify classify : serveList) { |
| | |
| | | UserRecipient userRecipient = userRecipientService.lambdaQuery() |
| | | .eq(UserRecipient::getIsDefault, Constants.ONE) |
| | | .eq(UserRecipient::getUserId, loginUser.getUserid()) |
| | | .eq(UserRecipient::getIsDelete, Constants.ZERO).one(); |
| | | .eq(UserRecipient::getIsDelete, Constants.ZERO) |
| | | .last("limit 1") |
| | | .one(); |
| | | return R.ok(new ServeDetailVO(recoveryServe, userRecipient)); |
| | | } |
| | | |