TaxRefundDetailsMapper.xml 1001 B

1234567891011121314151617181920212223242526
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.fjhx.account.mapper.tax.TaxRefundDetailsMapper">
  4. <select id="getPage" resultType="com.fjhx.account.entity.tax.vo.TaxRefundDetailsVo">
  5. select trd.id,
  6. trd.account_running_water_id,
  7. trd.contract_id,
  8. trd.amount,
  9. trd.create_user,
  10. trd.create_time,
  11. trd.update_user,
  12. trd.update_time
  13. from tax_refund_details trd
  14. ${ew.customSqlSegment}
  15. </select>
  16. <select id="getSumMoneyByContractIds" resultType="com.fjhx.account.entity.tax.po.TaxRefundDetails">
  17. SELECT
  18. t1.*,
  19. t2.rate AS rate
  20. FROM
  21. tax_refund_details t1
  22. LEFT JOIN account_running_water t2 ON t1.account_running_water_id = t2.id
  23. ${ew.customSqlSegment}
  24. </select>
  25. </mapper>