|
|
@ -3,6 +3,7 @@ package cn.chjyj.szwh.service.impl; |
|
|
import cn.chjyj.szwh.bean.*; |
|
|
import cn.chjyj.szwh.bean.*; |
|
|
import cn.chjyj.szwh.mapper.*; |
|
|
import cn.chjyj.szwh.mapper.*; |
|
|
import cn.chjyj.szwh.service.OrderTaskService; |
|
|
import cn.chjyj.szwh.service.OrderTaskService; |
|
|
|
|
|
import cn.chjyj.szwh.utils.DateUtils; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
@ -43,8 +44,11 @@ public class OrderTaskServiceImpl implements OrderTaskService { |
|
|
String now=sdf.format(bdate); |
|
|
String now=sdf.format(bdate); |
|
|
//组装查询条件
|
|
|
//组装查询条件
|
|
|
Map qmap =new HashMap<>(); |
|
|
Map qmap =new HashMap<>(); |
|
|
qmap.put("staus",3); |
|
|
//1 未支付
|
|
|
qmap.put("createtime",now); |
|
|
qmap.put("staus",1); |
|
|
|
|
|
// 超过30分钟的订单
|
|
|
|
|
|
String bthmin = DateUtils.overNow("min",-30).toString(); |
|
|
|
|
|
qmap.put("createtime",bthmin); |
|
|
List<Order> orderList= orderMapper.getOrderListUnderDate(now,"1"); |
|
|
List<Order> orderList= orderMapper.getOrderListUnderDate(now,"1"); |
|
|
// 判断非空
|
|
|
// 判断非空
|
|
|
if(orderList!=null){ |
|
|
if(orderList!=null){ |
|
|
|