|
@@ -192,6 +192,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderDao, Order> implements Or
|
|
lqw.eq(Order::getIsMerchantDel, false);
|
|
lqw.eq(Order::getIsMerchantDel, false);
|
|
lqw.in(Order::getType, OrderConstants.ORDER_TYPE_NORMAL, OrderConstants.ORDER_TYPE_SECKILL);
|
|
lqw.in(Order::getType, OrderConstants.ORDER_TYPE_NORMAL, OrderConstants.ORDER_TYPE_SECKILL);
|
|
lqw.eq(Order::getIsDel, false);
|
|
lqw.eq(Order::getIsDel, false);
|
|
|
|
+ lqw.eq(Order::getIsEnterpriseUser, 1);
|
|
lqw.orderByDesc(Order::getId);
|
|
lqw.orderByDesc(Order::getId);
|
|
List<Order> orderList = dao.selectList(lqw);
|
|
List<Order> orderList = dao.selectList(lqw);
|
|
return CommonPage.copyPageInfo(page, orderList);
|
|
return CommonPage.copyPageInfo(page, orderList);
|
|
@@ -205,6 +206,7 @@ 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.ne(Order::getIsIntegral, 1).or().isNull(Order::getIsIntegral));
|
|
lqw.and(i -> i.eq(Order::getQyId, id).or().isNull(Order::getQyId));
|
|
lqw.and(i -> i.eq(Order::getQyId, id).or().isNull(Order::getQyId));
|
|
lqw.in(Order::getUid, ids);
|
|
lqw.in(Order::getUid, ids);
|
|
|
|
+
|
|
if (0 != isRemit) {
|
|
if (0 != isRemit) {
|
|
lqw.eq(Order::getIsRemit, isRemit);
|
|
lqw.eq(Order::getIsRemit, isRemit);
|
|
lqw.eq(Order::getPayType, "信用额度");
|
|
lqw.eq(Order::getPayType, "信用额度");
|
|
@@ -223,16 +225,19 @@ public class OrderServiceImpl extends ServiceImpl<OrderDao, Order> implements Or
|
|
lqw.lt(Order::getRefundStatus, OrderConstants.ORDER_REFUND_STATUS_REFUND);
|
|
lqw.lt(Order::getRefundStatus, OrderConstants.ORDER_REFUND_STATUS_REFUND);
|
|
lqw.eq(Order::getIsUserDel, false);
|
|
lqw.eq(Order::getIsUserDel, false);
|
|
lqw.eq(Order::getIsMerchantDel, false);
|
|
lqw.eq(Order::getIsMerchantDel, false);
|
|
|
|
+
|
|
lqw.in(Order::getType, OrderConstants.ORDER_TYPE_NORMAL, OrderConstants.ORDER_TYPE_SECKILL);
|
|
lqw.in(Order::getType, OrderConstants.ORDER_TYPE_NORMAL, OrderConstants.ORDER_TYPE_SECKILL);
|
|
lqw.eq(Order::getIsDel, false);
|
|
lqw.eq(Order::getIsDel, false);
|
|
|
|
+
|
|
HashMap<String, String> info = systemConfigService.info(19);
|
|
HashMap<String, String> info = systemConfigService.info(19);
|
|
String orderExpireTime = info.get("orderExpireTime");
|
|
String orderExpireTime = info.get("orderExpireTime");
|
|
- String orderExpireTime1="-"+orderExpireTime;
|
|
|
|
|
|
+ String orderExpireTime1 = "-" + orderExpireTime;
|
|
Calendar c = Calendar.getInstance();
|
|
Calendar c = Calendar.getInstance();
|
|
c.add(Calendar.DAY_OF_MONTH, Integer.parseInt(orderExpireTime1));
|
|
c.add(Calendar.DAY_OF_MONTH, Integer.parseInt(orderExpireTime1));
|
|
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
String mDateTime = formatter.format(c.getTime());
|
|
String mDateTime = formatter.format(c.getTime());
|
|
- lqw.apply(StringUtils.isNotBlank(mDateTime),"DATE(create_time) >= STR_TO_DATE('"+mDateTime+"','%Y-%m-%d')");
|
|
|
|
|
|
+ lqw.apply(StringUtils.isNotBlank(mDateTime), "DATE(create_time) >= STR_TO_DATE('" + mDateTime + "','%Y-%m-%d')");
|
|
|
|
+ lqw.eq(Order::getIsEnterpriseUser, 2);
|
|
lqw.orderByDesc(Order::getId);
|
|
lqw.orderByDesc(Order::getId);
|
|
List<Order> orderList = dao.selectList(lqw);
|
|
List<Order> orderList = dao.selectList(lqw);
|
|
return CommonPage.copyPageInfo(page, orderList);
|
|
return CommonPage.copyPageInfo(page, orderList);
|
|
@@ -936,11 +941,18 @@ public class OrderServiceImpl extends ServiceImpl<OrderDao, Order> implements Or
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
public Integer getCountByStatusAndUid(Integer status, Integer userId) {
|
|
public Integer getCountByStatusAndUid(Integer status, Integer userId) {
|
|
|
|
+ User user = userService.getInfo();
|
|
|
|
+
|
|
if (status < 0) {
|
|
if (status < 0) {
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
LambdaQueryWrapper<Order> lqw = Wrappers.lambdaQuery();
|
|
LambdaQueryWrapper<Order> lqw = Wrappers.lambdaQuery();
|
|
lqw.eq(Order::getUid, userId);
|
|
lqw.eq(Order::getUid, userId);
|
|
|
|
+ if (2 == user.getIsEnterpriseUser() || 3 == user.getIsEnterpriseUser()) {
|
|
|
|
+ lqw.eq(Order::getIsEnterpriseUser, 2);
|
|
|
|
+ } else {
|
|
|
|
+ lqw.eq(Order::getIsEnterpriseUser, 1);
|
|
|
|
+ }
|
|
lqw.eq(Order::getIsDel, false);
|
|
lqw.eq(Order::getIsDel, false);
|
|
lqw.and(i -> i.ne(Order::getIsIntegral, 1).or().isNull(Order::getIsIntegral));
|
|
lqw.and(i -> i.ne(Order::getIsIntegral, 1).or().isNull(Order::getIsIntegral));
|
|
if (OrderConstants.ORDER_STATUS_WAIT_SHIPPING.equals(status)) {
|
|
if (OrderConstants.ORDER_STATUS_WAIT_SHIPPING.equals(status)) {
|