Pārlūkot izejas kodu

fix 计费单商品

he2802 4 gadi atpakaļ
vecāks
revīzija
c080779d73

+ 5 - 1
zhongzheng-system/src/main/resources/mapper/modules/order/OrderGoodsMapper.xml

@@ -53,6 +53,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 LEFT JOIN course_project_type cpt ON g.project_id = cpt.id
                 LEFT JOIN course_business cb ON g.business_id = cb.id
         WHERE
-            og.order_sn =  #{orderSn}
+            1 = 1
+            <if test="orderSn != null and orderSn != ''">
+                AND og.order_sn =  #{orderSn}
+            </if>
+
     </select>
 </mapper>