|
@@ -192,7 +192,13 @@ public class OrderServiceImpl extends ServiceImpl<OrderDao, Order> implements Or
|
|
|
lqw.eq(Order::getIsMerchantDel, false);
|
|
|
lqw.in(Order::getType, OrderConstants.ORDER_TYPE_NORMAL, OrderConstants.ORDER_TYPE_SECKILL);
|
|
|
lqw.eq(Order::getIsDel, false);
|
|
|
- lqw.eq(Order::getIsEnterpriseUser, 1);
|
|
|
+ Integer isEnterpriseUser = userInfo.getIsEnterpriseUser();
|
|
|
+ if (null != isEnterpriseUser){
|
|
|
+ lqw.eq(Order::getIsEnterpriseUser, isEnterpriseUser);
|
|
|
+ }else{
|
|
|
+ lqw.eq(Order::getIsEnterpriseUser, 999);
|
|
|
+ }
|
|
|
+
|
|
|
lqw.orderByDesc(Order::getId);
|
|
|
List<Order> orderList = dao.selectList(lqw);
|
|
|
return CommonPage.copyPageInfo(page, orderList);
|
|
@@ -206,6 +212,8 @@ public class OrderServiceImpl extends ServiceImpl<OrderDao, Order> implements Or
|
|
|
lqw.and(i -> i.ne(Order::getIsIntegral, 1).or().isNull(Order::getIsIntegral));
|
|
|
lqw.and(i -> i.eq(Order::getQyId, id).or().isNull(Order::getQyId));
|
|
|
lqw.in(Order::getUid, ids);
|
|
|
+ List<Order> orderList1 = dao.selectList(lqw);
|
|
|
+
|
|
|
|
|
|
if (0 != isRemit) {
|
|
|
lqw.eq(Order::getIsRemit, isRemit);
|
|
@@ -225,6 +233,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderDao, Order> implements Or
|
|
|
lqw.lt(Order::getRefundStatus, OrderConstants.ORDER_REFUND_STATUS_REFUND);
|
|
|
lqw.eq(Order::getIsUserDel, false);
|
|
|
lqw.eq(Order::getIsMerchantDel, false);
|
|
|
+ List<Order> orderList2 = dao.selectList(lqw);
|
|
|
|
|
|
lqw.in(Order::getType, OrderConstants.ORDER_TYPE_NORMAL, OrderConstants.ORDER_TYPE_SECKILL);
|
|
|
lqw.eq(Order::getIsDel, false);
|
|
@@ -237,7 +246,10 @@ public class OrderServiceImpl extends ServiceImpl<OrderDao, Order> implements Or
|
|
|
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
String mDateTime = formatter.format(c.getTime());
|
|
|
lqw.apply(StringUtils.isNotBlank(mDateTime), "DATE(create_time) >= STR_TO_DATE('" + mDateTime + "','%Y-%m-%d')");
|
|
|
- lqw.eq(Order::getIsEnterpriseUser, 2);
|
|
|
+ List<Order> orderList3 = dao.selectList(lqw);
|
|
|
+ lqw.in(Order::getIsEnterpriseUser, 2,3);
|
|
|
+
|
|
|
+ List<Order> orderList4 = dao.selectList(lqw);
|
|
|
lqw.orderByDesc(Order::getId);
|
|
|
List<Order> orderList = dao.selectList(lqw);
|
|
|
return CommonPage.copyPageInfo(page, orderList);
|
|
@@ -948,9 +960,12 @@ public class OrderServiceImpl extends ServiceImpl<OrderDao, Order> implements Or
|
|
|
}
|
|
|
LambdaQueryWrapper<Order> lqw = Wrappers.lambdaQuery();
|
|
|
lqw.eq(Order::getUid, userId);
|
|
|
- if (2 == user.getIsEnterpriseUser() || 3 == user.getIsEnterpriseUser()) {
|
|
|
- lqw.eq(Order::getIsEnterpriseUser, 2);
|
|
|
- } else {
|
|
|
+ if (2 == user.getIsEnterpriseUser() ) {
|
|
|
+ lqw.in(Order::getIsEnterpriseUser, 2,3);
|
|
|
+ } else if (3 == user.getIsEnterpriseUser()){
|
|
|
+ lqw.eq(Order::getIsEnterpriseUser, 3);
|
|
|
+ }
|
|
|
+ else {
|
|
|
lqw.eq(Order::getIsEnterpriseUser, 1);
|
|
|
}
|
|
|
lqw.eq(Order::getIsDel, false);
|