|
@@ -22,20 +22,24 @@ import com.zhongzheng.modules.base.vo.UserProfileVo;
|
|
|
import com.zhongzheng.modules.exam.vo.ExamUserApplyVo;
|
|
|
import com.zhongzheng.modules.goods.service.IGoodsService;
|
|
|
import com.zhongzheng.modules.goods.vo.GoodsVo;
|
|
|
+import com.zhongzheng.modules.grade.domain.ClassGradeUserTemp;
|
|
|
import com.zhongzheng.modules.grade.service.IClassGradeGoodsService;
|
|
|
import com.zhongzheng.modules.grade.service.IClassGradeService;
|
|
|
import com.zhongzheng.modules.grade.service.IClassGradeUserService;
|
|
|
+import com.zhongzheng.modules.grade.service.IClassGradeUserTempService;
|
|
|
import com.zhongzheng.modules.inform.bo.InformUserAddBo;
|
|
|
import com.zhongzheng.modules.inform.service.IInformRemindService;
|
|
|
import com.zhongzheng.modules.inform.service.IInformService;
|
|
|
import com.zhongzheng.modules.inform.service.IInformUserService;
|
|
|
import com.zhongzheng.modules.inform.vo.InformRemindVo;
|
|
|
import com.zhongzheng.modules.order.bo.OrderQueryBo;
|
|
|
+import com.zhongzheng.modules.order.domain.Order;
|
|
|
import com.zhongzheng.modules.order.mapper.OrderMapper;
|
|
|
import com.zhongzheng.modules.order.service.IOrderBusinessService;
|
|
|
import com.zhongzheng.modules.order.service.IOrderGoodsService;
|
|
|
import com.zhongzheng.modules.order.service.IOrderService;
|
|
|
import com.zhongzheng.modules.order.vo.OrderGoodsVo;
|
|
|
+import com.zhongzheng.modules.order.vo.OrderListVo;
|
|
|
import com.zhongzheng.modules.order.vo.OrderVo;
|
|
|
import com.zhongzheng.modules.polyv.bo.PolyvVideoAddBo;
|
|
|
import com.zhongzheng.modules.polyv.bo.PolyvVideoEditBo;
|
|
@@ -54,6 +58,7 @@ import com.zhongzheng.modules.user.service.IUserService;
|
|
|
import com.zhongzheng.modules.user.service.IUserSubscribeService;
|
|
|
import com.zhongzheng.modules.user.vo.UserSubscribeVo;
|
|
|
import com.zhongzheng.modules.user.vo.UserVo;
|
|
|
+import com.zhongzheng.modules.wx.service.IWxPayService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -115,6 +120,10 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
@Autowired
|
|
|
private IUserService iUserService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IClassGradeUserTempService iClassGradeUserTempService;
|
|
|
+
|
|
|
+
|
|
|
@Autowired
|
|
|
private IUserSubscribeService iUserSubscribeService;
|
|
|
|
|
@@ -285,9 +294,26 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
OrderQueryBo bo = new OrderQueryBo();
|
|
|
Integer[] status={0};
|
|
|
bo.setOrderStatus(status);
|
|
|
- List<OrderVo> list = iOrderService.queryList(bo);
|
|
|
- for (OrderVo orderVo : list) {
|
|
|
- System.out.println(orderVo.getOrderSn());
|
|
|
+ List<OrderListVo> list = iOrderService.selectListApp(bo);
|
|
|
+ for (OrderListVo orderVo : list) {
|
|
|
+ if(orderVo.getCreateTime().longValue()<(new Long(DateUtils.getNowTime()-(24*3600))).longValue()){
|
|
|
+ //超过24小时
|
|
|
+ Order order = new Order();
|
|
|
+ order.setOrderId(orderVo.getOrderId());
|
|
|
+ order.setOrderStatus(-2);
|
|
|
+ order.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ order.setCancelTime(DateUtils.getNowTime());
|
|
|
+ iOrderService.updateById(order);
|
|
|
+ //关闭锁定班级
|
|
|
+ LambdaQueryWrapper<ClassGradeUserTemp> lqwLock = new LambdaQueryWrapper<>();
|
|
|
+ lqwLock.eq(ClassGradeUserTemp::getOrderSn,orderVo.getOrderSn());
|
|
|
+ ClassGradeUserTemp classGradeUserTemp = iClassGradeUserTempService.getOne(lqwLock);
|
|
|
+ if(classGradeUserTemp!=null&&classGradeUserTemp.getStatus()==ClassGradeUserTemp.STATUS_LOCK){
|
|
|
+ classGradeUserTemp.setStatus(ClassGradeUserTemp.STATUS_CLOSE); //
|
|
|
+ classGradeUserTemp.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ iClassGradeUserTempService.updateById(classGradeUserTemp);//关闭锁定状态
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|