yangdamao 2 năm trước cách đây
mục cha
commit
a03fa0b967

+ 1 - 5
zhongzheng-system/src/main/resources/mapper/modules/grade/ClassGradeMapper.xml

@@ -913,7 +913,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             u.id_card as idNum,
             u.telphone as mobile,
             u.company_name as companyName,
-            og.create_time as orderTimeLong,
+            (SELECT og.create_time FROM order_goods og LEFT JOIN `order` o ON og.order_sn = o.order_sn WHERE og.goods_id = g.goods_id AND o.user_id = u.user_id) AS orderTimeLong,
             cg.class_start_time as createTimeLong,
             cgu.official_status_time as doTimeLong,
             cgu.official_status as reportStatu,
@@ -937,10 +937,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                  LEFT JOIN goods g ON cgg.goods_id = g.goods_id
                 <if test="tenantId != null">
                     AND g.tenant_id = #{tenantId}
-                </if>
-                LEFT JOIN order_goods og ON cg.grade_id = og.grade_id
-                <if test="tenantId != null">
-                    AND og.tenant_id = #{tenantId}
                 </if>
                  LEFT JOIN course_business cb ON g.business_id = cb.id
                 <if test="tenantId != null">