| | |
| | | import com.xiaopeng.api.feignClient.operation.XpSystemSettingClient; |
| | | import com.xiaopeng.api.feignClient.vehicleConvoy.XpVehicleClient; |
| | | import com.xiaopeng.api.model.account.XpAppUser; |
| | | import com.xiaopeng.api.model.operation.XpFeedbackType; |
| | | import com.xiaopeng.api.model.operation.XpInvitationCode; |
| | | import com.xiaopeng.api.model.vehicleConvoy.XpVehicle; |
| | | import com.xiaopeng.api.model.order.XpOrder; |
| | |
| | | GetUserListByUidsVo getUserListByUidsVo = new GetUserListByUidsVo(); |
| | | getUserListByUidsVo.setUids(userIds); |
| | | getUserListByUidsVo.setGetPreCarOwner(false); |
| | | // todo 查不到用户信息 |
| | | // UserResourcesDto userListByUids = userResourcesClient.getUserListByUids(getUserListByUidsVo); |
| | | UserResourcesDto userListByUids = userResourcesClient.getUserListByUids(getUserListByUidsVo); |
| | | for (OrderEvaluateManagementPageListVO orderEvaluateManagementPageListVO : list) { |
| | | // Object data = userListByUids.getData(); |
| | | Object data = userListByUids.getData(); |
| | | // 转化为jsonArray |
| | | // JSONArray jsonArray = JSON.parseArray(JSON.toJSONString(data)); |
| | | // for (Object o : jsonArray) { |
| | | // // 转化为JsonObject |
| | | // JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(o)); |
| | | // String mobile = jsonObject.getString("mobile"); |
| | | // String nickName = jsonObject.getString("nickName"); |
| | | // String headImage = jsonObject.getString("headImage"); |
| | | // orderEvaluateManagementPageListVO.setPhoneNumber(mobile); |
| | | // orderEvaluateManagementPageListVO.setNickName(nickName); |
| | | // orderEvaluateManagementPageListVO.setHeadImage(headImage); |
| | | // } |
| | | XpFeedbackType feedbackType = systemSettingClient.getFeedbackTypeById(orderEvaluateManagementPageListVO.getFeedbackTypeId()).getData(); |
| | | if (feedbackType!=null){ |
| | | orderEvaluateManagementPageListVO.setFeedbackTypeName(feedbackType.getFeedbackType()); |
| | | JSONArray jsonArray = JSON.parseArray(JSON.toJSONString(data)); |
| | | for (Object o : jsonArray) { |
| | | // 转化为JsonObject |
| | | JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(o)); |
| | | String mobile = jsonObject.getString("mobile"); |
| | | String nickName = jsonObject.getString("nickName"); |
| | | String headImage = jsonObject.getString("headImage"); |
| | | orderEvaluateManagementPageListVO.setPhoneNumber(mobile); |
| | | orderEvaluateManagementPageListVO.setNickName(nickName); |
| | | orderEvaluateManagementPageListVO.setHeadImage(headImage); |
| | | } |
| | | systemSettingClient.getFeedbackTypeById(orderEvaluateManagementPageListVO.getFeedbackTypeId()); |
| | | } |
| | | pageInfo.setRecords(list); |
| | | return pageInfo; |