| | |
| | | import com.ruoyi.account.api.dto.GrantCouponDto; |
| | | import com.ruoyi.account.api.feignClient.AppCouponClient; |
| | | import com.ruoyi.account.api.feignClient.AppUserAddressClient; |
| | | import com.ruoyi.account.api.feignClient.AppUserClient; |
| | | import com.ruoyi.account.api.model.TAppUser; |
| | | import com.ruoyi.account.api.model.TAppUserAddress; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.web.domain.AjaxResult; |
| | |
| | | |
| | | @Resource |
| | | private CouponClient couponClient; |
| | | @Resource |
| | | private AppUserClient appUserClient; |
| | | |
| | | @Resource |
| | | private AppUserAddressClient appUserAddressClient; |
| | |
| | | } |
| | | PageInfo<TShoppingOrder> pageInfo = new PageInfo<>(query.getPageCurr(),query.getPageSize()); |
| | | List<TShoppingOrder> list = this.baseMapper.pageList(pageInfo,query,startTime1,startTime2); |
| | | for (TShoppingOrder tShoppingOrder : list) { |
| | | if (tShoppingOrder.getAppUserId() != null){ |
| | | TAppUser data = appUserClient.getUserById(tShoppingOrder.getAppUserId()).getData(); |
| | | if (data!=null){ |
| | | tShoppingOrder.setPhone(data.getPhone()); |
| | | } |
| | | } |
| | | |
| | | } |
| | | pageInfo.setRecords(list); |
| | | return pageInfo; |
| | | } |