Browse Source

fix 学时

he2802 3 years ago
parent
commit
25baded1d0

+ 1 - 2
zhongzheng-system/src/main/resources/mapper/modules/order/OrderMapper.xml

@@ -97,7 +97,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             og.goods_received,
             og.refund_status,
             og.pay_status,
-            cgu.period_plush
+        (select cgu.period_plush from  class_grade_user cgu where cgu.grade_id = og.grade_id and cgu.user_id = o.user_id limit 1 ) period_plush
         FROM
             `order` o
                 LEFT JOIN order_goods og ON o.order_sn = og.order_sn
@@ -108,7 +108,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 LEFT JOIN course_business cb ON g.business_id = cb.id
                 LEFT JOIN school s ON s.id = g.school_id
                 LEFT JOIN major m ON g.major_id = m.id
-                LEFT JOIN class_grade_user cgu ON cgu.grade_id = og.grade_id
         WHERE 1=1
 
         <if test="educationTypeId != null and educationTypeId != ''">