소스 검색

fix 计费单商品

he2802 4 년 전
부모
커밋
c080779d73
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      zhongzheng-system/src/main/resources/mapper/modules/order/OrderGoodsMapper.xml

+ 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>