|
|
@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import org.jeecg.modules.demo.zyorders.entity.ZyOrders; |
|
|
|
import org.jeecg.modules.demo.zyorders.entity.ZyOrders; |
|
|
|
import org.jeecg.modules.demo.zyorders.mapper.ZyOrdersMapper; |
|
|
|
import org.jeecg.modules.demo.zyorders.mapper.ZyOrdersMapper; |
|
|
|
import org.jeecg.modules.demo.zyorders.service.IZyOrdersService; |
|
|
|
import org.jeecg.modules.demo.zyorders.service.IZyOrdersService; |
|
|
|
|
|
|
|
import org.jeecg.modules.orderbymakeclothplan.vo.TodayOrderAndQIriVo; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
@ -55,7 +56,7 @@ public class ZyOrdersServiceImpl extends ServiceImpl<ZyOrdersMapper, ZyOrders> i |
|
|
|
// System.out.println(endTime);
|
|
|
|
// System.out.println(endTime);
|
|
|
|
|
|
|
|
|
|
|
|
QueryWrapper<ZyOrders> wrapper = new QueryWrapper<>(); |
|
|
|
QueryWrapper<ZyOrders> wrapper = new QueryWrapper<>(); |
|
|
|
wrapper.ge("create_time", starTime).le("create_time", endTime).eq("pay_status", 1); |
|
|
|
wrapper.ge("create_time", starTime).le("create_time", endTime).eq("payment_status", 1); |
|
|
|
|
|
|
|
|
|
|
|
List<ZyOrders> zyOrderList = baseMapper.selectList(wrapper); |
|
|
|
List<ZyOrders> zyOrderList = baseMapper.selectList(wrapper); |
|
|
|
return zyOrderList; |
|
|
|
return zyOrderList; |
|
|
@ -68,8 +69,25 @@ public class ZyOrdersServiceImpl extends ServiceImpl<ZyOrdersMapper, ZyOrders> i |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public List<ZyOrders> getOldOrder() { |
|
|
|
public List<ZyOrders> getOldOrder() { |
|
|
|
QueryWrapper<ZyOrders> wrapper = new QueryWrapper<>(); |
|
|
|
QueryWrapper<ZyOrders> wrapper = new QueryWrapper<>(); |
|
|
|
wrapper.eq("is_delete", 0).orderByDesc("create_time"); |
|
|
|
wrapper |
|
|
|
|
|
|
|
// .eq("is_delete", 0)
|
|
|
|
|
|
|
|
.orderByDesc("create_time"); |
|
|
|
List<ZyOrders> orderList = baseMapper.selectList(wrapper); |
|
|
|
List<ZyOrders> orderList = baseMapper.selectList(wrapper); |
|
|
|
return orderList; |
|
|
|
return orderList; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 获取今日订单及七日订单 |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public TodayOrderAndQIriVo getOrder() { |
|
|
|
|
|
|
|
TodayOrderAndQIriVo todayOrderAndQIriVo = baseMapper.getTotalOrderAndWeek(); |
|
|
|
|
|
|
|
if (todayOrderAndQIriVo != null) { |
|
|
|
|
|
|
|
return todayOrderAndQIriVo; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|