Explorar o código

fix 计费单商品

he2802 %!s(int64=4) %!d(string=hai) anos
pai
achega
b5ef81f60b

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/bank/QuestionMapper.xml

@@ -150,6 +150,6 @@
         <if test="prefixName != null and prefixName != ''">
             AND q.prefix_name like concat('%', #{prefixName}, '%')
         </if>
-       
+
     </select>
 </mapper>

+ 16 - 11
zhongzheng-system/src/main/resources/mapper/modules/course/CourseStreamingMapper.xml

@@ -54,26 +54,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <select id="findBusinessList" resultMap="CourseStreamingBusinessResult">
-
+        SELECT
+            csb.education_type_id,
+            csb.id AS join_id,
+            csb.business_id,
+            csb.project_id,
+            cet.education_name,
+            cpt.project_name,
+            cb.business_name,
+        FROM
+            course_streaming_business csb
+            LEFT JOIN course_education_type cet ON csb.education_type_id = cet.id
+            LEFT JOIN course_project_type cpt ON csb.project_id = cpt.id
+            LEFT JOIN course_business cb ON csb.business_id = cb.id
+        WHERE
+            csb.streaming_id=#{id}
     </select>
 
     <select id="selectList" parameterType="com.zhongzheng.modules.course.bo.CourseStreamingQueryBo" resultMap="CourseStreamingResultVo">
         SELECT
         cs.*,
-        csb.education_type_id,
-        csb.id AS join_id,
-        csb.business_id,
-        csb.project_id,
-        cet.education_name,
-        cpt.project_name,
-        cb.business_name,
+
         pv.mp4 AS polyv_url
         FROM
         course_streaming cs
         LEFT JOIN course_streaming_business csb ON cs.id = csb.streaming_id
-        LEFT JOIN course_education_type cet ON csb.education_type_id = cet.id
-        LEFT JOIN course_project_type cpt ON csb.project_id = cpt.id
-        LEFT JOIN course_business cb ON csb.business_id = cb.id
         LEFT JOIN polyv_video pv ON cs.polyv_id = pv.polyv_id
         WHERE
         1 = 1