| | |
| | | <result property="infoid" column="InfoID" /> |
| | | <result property="donorname" column="DonorName" /> |
| | | <result property="pretaxamount" column="PretaxAmount" /> |
| | | <result property="vatAmount" column="vat_amount" /> |
| | | <result property="cityTaxAmount" column="city_tax_amount" /> |
| | | <result property="taxamount" column="TaxAmount" /> |
| | | <result property="taxedamount" column="TaxedAmount" /> |
| | | <result property="donormedicalcost" column="DonorMedicalCost" /> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectVExpertfeeDonorVo"> |
| | | select fund_tax_id, InfoID, DonorName, PretaxAmount, TaxAmount, TaxedAmount, DonorMedicalCost, DonorBodyCost, OrganGainCost, OrganMedicalCost, DonorCost from v_expertfee_donor |
| | | select fund_tax_id, InfoID, DonorName, PretaxAmount, vat_amount, city_tax_amount, TaxAmount, TaxedAmount, DonorMedicalCost, DonorBodyCost, OrganGainCost, OrganMedicalCost, DonorCost from v_expertfee_donor |
| | | </sql> |
| | | |
| | | <select id="selectVExpertfeeDonorList" parameterType="com.ruoyi.project.domain.VExpertfeeDonor" resultMap="VExpertfeeDonorResult"> |
| | |
| | | </select> |
| | | |
| | | <select id="selectVExpertfeeDonorList2" parameterType="com.ruoyi.project.domain.VExpertfeeDonor" resultMap="VExpertfeeDonorResult"> |
| | | select DonorName, InfoID, PretaxAmount, TaxAmount, TaxedAmount, DonorMedicalCost, DonorBodyCost, OrganGainCost, OrganMedicalCost, DonorCost from v_expertfee_donor |
| | | select DonorName, InfoID, PretaxAmount, vat_amount, city_tax_amount, TaxAmount, TaxedAmount, DonorMedicalCost, DonorBodyCost, OrganGainCost, OrganMedicalCost, DonorCost from v_expertfee_donor |
| | | where fund_tax_id = #{taxId} |
| | | UNION |
| | | SELECT |
| | | '合计' as DonorName, |
| | | null as InfoID, |
| | | SUM(PretaxAmount) as PretaxAmount, |
| | | SUM(vat_amount) as vat_amount, |
| | | SUM(city_tax_amount) as city_tax_amount, |
| | | SUM(TaxAmount) as TaxAmount, |
| | | SUM(TaxedAmount) as TaxedAmount, |
| | | SUM(DonorMedicalCost) as DonorMedicalCost, |
| | |
| | | FROM v_expertfee_donor |
| | | where fund_tax_id = #{taxId} |
| | | </select> |
| | | |
| | | |
| | | |
| | | </mapper> |