瀏覽代碼

fix:补充提交

韩帛霖 1 年之前
父節點
當前提交
6cb47a6717
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      zkqy-custom-business/src/main/resources/mapper/business/ProductInvoiceMapper.xml

+ 6 - 0
zkqy-custom-business/src/main/resources/mapper/business/ProductInvoiceMapper.xml

@@ -210,6 +210,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="noticeNumber != null  and noticeNumber != ''">and so.notice_number = #{noticeNumber}</if>
         <if test="customerId != null  and customerId != ''">and c.id = #{customerId}</if>
         <if test="noticeDate != null ">and so.notice_date = #{noticeDate}</if>
+        <if test="orderType == 'contractOrder'">
+            and so.sale_order_technology_no != 'retailOrder'
+        </if>
+        <if test="orderType == 'retailOrder'">
+            and so.sale_order_technology_no = 'retailOrder'
+        </if>
         order by so.id desc
     </select>
     <select id="financialStatementExportList" resultType="com.zkqy.business.domain.vo.ProductInvoiceFinancialExportVo" parameterType="com.zkqy.business.domain.vo.ProductInvoiceFinancialExportVo">