yxh
2 天以前 c94f43fb441a05001f25321156710845704b853d
ruoyi-project/src/main/resources/mapper/project/VExpertfeeExpertMapper.xml
@@ -13,6 +13,8 @@
        <result property="depositbank" column="DepositBank"/>
        <result property="bankcardno" column="BankCardNo"/>
        <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="donorname" column="DonorName"/>
@@ -28,6 +30,8 @@
               DepositBank,
               BankCardNo,
               PretaxAmount,
               vat_amount,
               city_tax_amount,
               TaxAmount,
               TaxedAmount,
               DonorName,
@@ -63,6 +67,8 @@
               depositbank,
               bankcardno,
               pretaxamount,
               vat_amount,
               city_tax_amount,
               taxamount,
               taxedamount,
               donorname,
@@ -70,16 +76,18 @@
        FROM v_expertfee_expert
        where fund_tax_id = #{taxId}
        UNION
        SELECT null              as beneficiarytype,
               "合计"              as beneficiaryname,
               null              as idcardno,
               null              as depositbank,
               null              as bankcardno,
               SUM(pretaxamount) as pretaxamount,
               SUM(taxamount)    as taxamount,
               SUM(taxedamount)  as taxedamount,
               null              as donorname,
               null              as unitname
        SELECT null                 as beneficiarytype,
               "合计"               as beneficiaryname,
               null                 as idcardno,
               null                 as depositbank,
               null                 as bankcardno,
               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,
               null                 as donorname,
               null                 as unitname
        FROM v_expertfee_expert
        where fund_tax_id = #{taxId}
    </select>