|
@@ -21,6 +21,7 @@ import com.zhongzheng.modules.order.domain.*;
|
|
|
import com.zhongzheng.modules.order.mapper.OrderHandleMapper;
|
|
|
import com.zhongzheng.modules.order.service.*;
|
|
|
import com.zhongzheng.modules.order.vo.OrderHandleGoodsVo;
|
|
|
+import com.zhongzheng.modules.order.vo.OrderHandleOverVo;
|
|
|
import com.zhongzheng.modules.order.vo.OrderHandleStatisticsVo;
|
|
|
import com.zhongzheng.modules.order.vo.OrderHandleVo;
|
|
|
import com.zhongzheng.modules.system.domain.SysTenant;
|
|
@@ -412,8 +413,11 @@ public class OrderHandleServiceImpl extends ServiceImpl<OrderHandleMapper, Order
|
|
|
|
|
|
@Override
|
|
|
public Boolean overTimeCloseOrder() {
|
|
|
- List<OrderHandle> list = this.list(new LambdaQueryWrapper<OrderHandle>().eq(OrderHandle::getPayStatus, 0).lt(OrderHandle::getOverTime,DateUtils.getNowTime()));
|
|
|
- for(OrderHandle orderHandle : list){
|
|
|
+ OrderHandleQueryBo bo = new OrderHandleQueryBo();
|
|
|
+ bo.setOverTime(DateUtils.getNowTime());
|
|
|
+ List<OrderHandleOverVo> list = this.baseMapper.selectOverTimeOrderList(bo);
|
|
|
+ for(OrderHandleOverVo orderHandle : list){
|
|
|
+ ServletUtils.getRequestAttributes().getResponse().setHeader("TenantId", orderHandle.getTenantId());
|
|
|
OrderHandleAddBo addBo = new OrderHandleAddBo();
|
|
|
addBo.setHandleOrderSn(orderHandle.getHandleOrderSn());
|
|
|
closeOrder(addBo);
|