yangdamao il y a 2 ans
Parent
commit
0913b26f45

+ 6 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/order/vo/SpecialQuestionVo.java

@@ -14,6 +14,9 @@ import java.io.Serializable;
 @ApiModel("山东题库列表")
 public class SpecialQuestionVo implements Serializable {
 
+    @ApiModelProperty("题库ID")
+    private Long qsId;
+
     @ApiModelProperty("")
     private Long goodsId;
 
@@ -23,6 +26,9 @@ public class SpecialQuestionVo implements Serializable {
     @ApiModelProperty("")
     private String orderSn;
 
+    @ApiModelProperty("封面地址")
+    private String coverUrl;
+
     @ApiModelProperty("年份")
     private Long year;
 

+ 3 - 0
zhongzheng-system/src/main/resources/mapper/modules/course/CourseMapper.xml

@@ -903,6 +903,8 @@
     <select id="getSpecialQuestionList" parameterType="com.zhongzheng.modules.order.bo.SpecialQuestionBo" resultType="com.zhongzheng.modules.order.vo.SpecialQuestionVo">
         SELECT
             g.goods_id,
+            g.cover_url,
+            gqr.id as qsId;
             og.order_goods_id,
             o.order_sn,
             g.`year`,
@@ -918,6 +920,7 @@
         FROM
             `order` o
                 LEFT JOIN order_goods og ON og.order_sn = o.order_sn
+                LEFT JOIN goods_question_rel gqr ON og.order_goods_id = gqr.qs_order_goods_id
                 LEFT JOIN goods g ON og.goods_id = g.goods_id
                 LEFT JOIN course_education_type cet ON g.education_type_id = cet.id
                 LEFT JOIN course_project_type cpt ON g.project_id = cpt.id