|
@@ -99,7 +99,16 @@ public class OrderDetailServiceImpl extends ServiceImpl<OrderDetailDao, OrderDet
|
|
Page<OrderDetail> page = PageHelper.startPage(pageParamRequest.getPage(), pageParamRequest.getLimit());
|
|
Page<OrderDetail> page = PageHelper.startPage(pageParamRequest.getPage(), pageParamRequest.getLimit());
|
|
User user = userService.getById(uid);
|
|
User user = userService.getById(uid);
|
|
Integer isEnterpriseUser = user.getIsEnterpriseUser();
|
|
Integer isEnterpriseUser = user.getIsEnterpriseUser();
|
|
- List<OrderDetail> orderDetailList = dao.findAfterSaleApplyList(uid, orderNo,isEnterpriseUser);
|
|
|
|
|
|
+ Integer enterpriseId=0;
|
|
|
|
+ if (3==isEnterpriseUser){
|
|
|
|
+ LambdaQueryWrapper<UserBypassAccount> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
|
+ queryWrapper.eq(UserBypassAccount::getUserId,user.getId());
|
|
|
|
+ UserBypassAccount one = userBypassAccountService.getOne(queryWrapper);
|
|
|
|
+ enterpriseId = one.getEnterpriseId();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ List<OrderDetail> orderDetailList = dao.findAfterSaleApplyList(uid, orderNo,isEnterpriseUser,enterpriseId);
|
|
return CommonPage.copyPageInfo(page, orderDetailList);
|
|
return CommonPage.copyPageInfo(page, orderDetailList);
|
|
}
|
|
}
|
|
|
|
|