|
@@ -3,11 +3,14 @@ package com.zhongzheng.modules.base.service.impl;
|
|
|
|
|
|
import cn.hutool.core.lang.Validator;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
|
import com.zhongzheng.modules.base.bo.ConsoleQueryBo;
|
|
|
import com.zhongzheng.modules.base.service.IConsoleService;
|
|
|
import com.zhongzheng.modules.base.service.IUserProfileService;
|
|
|
+import com.zhongzheng.modules.goods.domain.Goods;
|
|
|
+import com.zhongzheng.modules.goods.service.IGoodsService;
|
|
|
import com.zhongzheng.modules.grade.service.IClassGradeService;
|
|
|
import com.zhongzheng.modules.grade.service.IClassGradeUserService;
|
|
|
import com.zhongzheng.modules.grade.vo.ClassGradeVo;
|
|
@@ -32,6 +35,9 @@ public class ConsoleServiceImpl implements IConsoleService {
|
|
|
@Autowired
|
|
|
private IOrderService iOrderService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IGoodsService iGoodsService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private IOrderInputService iOrderInputService;
|
|
|
|
|
@@ -203,7 +209,13 @@ public class ConsoleServiceImpl implements IConsoleService {
|
|
|
map.put("noInterfNum",noInterfNum);
|
|
|
|
|
|
ConsoleQueryBo bo2 = new ConsoleQueryBo();
|
|
|
- bo2.setBusinessId(bo.getBusinessId());
|
|
|
+ LambdaQueryWrapper<Goods> lqw = Wrappers.lambdaQuery();
|
|
|
+ lqw.eq(Goods::getBusinessId,bo.getBusinessId());
|
|
|
+ lqw.isNotNull(Goods::getProjectId);
|
|
|
+ List<Goods> goodsList = iGoodsService.list(lqw);
|
|
|
+ if (goodsList != null && goodsList.size() > 0) {
|
|
|
+ bo2.setProjectId(goodsList.get(0).getProjectId());
|
|
|
+ }
|
|
|
bo2.setLearnStatus(0);
|
|
|
Integer noOpenNum = iClassGradeService.getConsoleGradeUserAccountNum(bo2);
|
|
|
bo2.setLearnStatus(1);
|