ariesy 优化慢sql

release
yefei 2 years ago
parent d915d29ab6
commit 17d4e9c9c6
  1. 4
      dxhy-core/src/main/resources/mapper/BbfpmxMapper.xml
  2. 4
      dxhy-extend/src/main/resources/mapper/ExtBbfpmxMapper.xml

@ -61,7 +61,7 @@
<if test="invoiceSource != null and invoiceSource != '' and invoiceSource != 'null' and invoiceSource != '99' "> <if test="invoiceSource != null and invoiceSource != '' and invoiceSource != 'null' and invoiceSource != '99' ">
and t.invoice_source = #{invoiceSource} and t.invoice_source = #{invoiceSource}
</if> </if>
order by t.invoice_date desc,b.id order by t.invoice_date desc
</select> </select>
<select id="selectByPramsMap" parameterType="java.util.Map" resultMap="BaseResultMap" databaseId="oracle"> <select id="selectByPramsMap" parameterType="java.util.Map" resultMap="BaseResultMap" databaseId="oracle">
@ -97,6 +97,6 @@
<if test="invoiceSource != null and invoiceSource != '' and invoiceSource != 'null' and invoiceSource != '99' "> <if test="invoiceSource != null and invoiceSource != '' and invoiceSource != 'null' and invoiceSource != '99' ">
and t.invoice_source = #{invoiceSource} and t.invoice_source = #{invoiceSource}
</if> </if>
order by t.invoice_date desc,b.id order by t.invoice_date desc
</select> </select>
</mapper> </mapper>

@ -61,7 +61,7 @@
<if test="invoiceSource != null and invoiceSource != '' and invoiceSource != 'null' and invoiceSource != '99' "> <if test="invoiceSource != null and invoiceSource != '' and invoiceSource != 'null' and invoiceSource != '99' ">
and t.invoice_source = #{invoiceSource} and t.invoice_source = #{invoiceSource}
</if> </if>
order by t.invoice_date desc,b.id order by t.invoice_date desc
</select> </select>
<select id="selectByPramsMap" parameterType="java.util.Map" resultMap="BaseResultMap" databaseId="oracle"> <select id="selectByPramsMap" parameterType="java.util.Map" resultMap="BaseResultMap" databaseId="oracle">
@ -97,6 +97,6 @@
<if test="invoiceSource != null and invoiceSource != '' and invoiceSource != 'null' and invoiceSource != '99' "> <if test="invoiceSource != null and invoiceSource != '' and invoiceSource != 'null' and invoiceSource != '99' ">
and t.invoice_source = #{invoiceSource} and t.invoice_source = #{invoiceSource}
</if> </if>
order by t.invoice_date desc,b.id order by t.invoice_date desc
</select> </select>
</mapper> </mapper>

Loading…
Cancel
Save