Просмотр исходного кода

BL_2018110014 销售明细表:显示已审核单据

guq 7 лет назад
Родитель
Сommit
56a67264b1
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      applications/sale/sale-server/src/main/resources/mapper/SaleListMapper.xml

+ 2 - 1
applications/sale/sale-server/src/main/resources/mapper/SaleListMapper.xml

@@ -81,8 +81,9 @@
         select  *  from sale left join saledetail on sa_id=sd_said left join product
         select  *  from sale left join saledetail on sa_id=sd_said left join product
         on sd_prodid = pr_id and sale.companyId = product.companyid
         on sd_prodid = pr_id and sale.companyId = product.companyid
         <where>
         <where>
+            sa_statuscode='AUDITED'
             <if test="con != null">
             <if test="con != null">
-                ${con}
+               and  ${con}
             </if>
             </if>
             <if test="companyId != null">
             <if test="companyId != null">
                 and   sale.companyId = #{companyId}
                 and   sale.companyId = #{companyId}