diff --git a/dxhy-core/src/main/resources/mapper/ExtPaperMapper.xml b/dxhy-core/src/main/resources/mapper/ExtPaperMapper.xml index e4ee55e0..5b188305 100644 --- a/dxhy-core/src/main/resources/mapper/ExtPaperMapper.xml +++ b/dxhy-core/src/main/resources/mapper/ExtPaperMapper.xml @@ -363,19 +363,8 @@ and t.account_period = #{accountPeriod} - - and (t.comp_code in - - #{companyCode} - - or t.comp_code is null or t.comp_code = '' - ) - - and t.comp_code = #{companyCode} - - - and (t.comp_code = '' or t.comp_code is null) + and t.comp_code = #{companyCode} or t.comp_code = '' or t.comp_code is null @@ -472,19 +461,8 @@ and t.invoice_source = #{invoiceSource} - - and (t.comp_code in - - #{companyCode} - - or t.comp_code is null or t.comp_code = '' - ) - - and t.comp_code = #{companyCode} - - - and (t.comp_code = '' or t.comp_code is null) + and (t.comp_code = #{companyCode} and t.comp_code = '' or t.comp_code is null) GROUP BY t.uuid ORDER BY t.create_date DESC