he2802 2 years ago
parent
commit
503fbea1fd

+ 4 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/goods/service/impl/GoodsServiceImpl.java

@@ -961,6 +961,10 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
                 goodsVo.setErJianErZao(true);
             }
         }
+        CourseBusinessVo businessVo = iCourseBusinessService.queryById(goodsVo.getBusinessId());
+        if(Validator.isNotEmpty(businessVo)){
+            goodsVo.setGoodsLearningOrder(businessVo.getGoodsLearningOrder());
+        }
         return goodsVo;
     }
 

+ 1 - 2
zhongzheng-system/src/main/resources/mapper/modules/goods/GoodsMapper.xml

@@ -589,8 +589,7 @@
                 where cgu.user_id = #{userId}
                   and cgg.goods_id = g.goods_id
                   and cg.`status` = 1
-                  and unix_timestamp(now()) BETWEEN cg.class_start_time and cg.class_end_time)    as grade_id,
-               cb.goods_learning_order
+                  and unix_timestamp(now()) BETWEEN cg.class_start_time and cg.class_end_time)    as grade_id
         FROM goods g
                  LEFT JOIN pay_supply ps ON g.supply_id = ps.supply_id
                  LEFT JOIN course_education_type cet ON g.education_type_id = cet.id