| | |
| | | <result property="amount" column="Amount"/> |
| | | <result property="taxamount" column="TaxAmount"/> |
| | | <result property="taxedamount" column="TaxedAmount"/> |
| | | <result property="vatAmount" column="vat_amount"/> |
| | | <result property="cityTaxAmount" column="city_tax_amount"/> |
| | | <result property="laborPretaxAmount" column="labor_pretax_amount"/> |
| | | <result property="taxVersion" column="tax_version"/> |
| | | <result property="prepaidamount" column="PrepaidAmount"/> |
| | | <result property="invoicecount" column="InvoiceCount"/> |
| | | <result property="attachcount" column="AttachCount"/> |
| | |
| | | TaxAmount, |
| | | InvoiceCount, |
| | | TaxedAmount, |
| | | vat_amount, |
| | | city_tax_amount, |
| | | labor_pretax_amount, |
| | | tax_version, |
| | | AttachCount, |
| | | Quantity, |
| | | Price, |
| | |
| | | a.TaxAmount, |
| | | a.InvoiceCount, |
| | | a.TaxedAmount, |
| | | a.vat_amount, |
| | | a.city_tax_amount, |
| | | a.labor_pretax_amount, |
| | | a.tax_version, |
| | | a.AttachCount, |
| | | a.Quantity, |
| | | a.Price, |
| | |
| | | |
| | | <select id="getTaxSum" parameterType="com.ruoyi.project.domain.vo.TaxMoneyByItemEO" |
| | | resultType="com.ruoyi.project.domain.vo.TaxMoneySumEO"> |
| | | SELECT sum(a.Amount) amounts, sum(a.TaxAmount) taxAmounts, sum(a.TaxedAmount) taxedAmounts, max(a.xh) as xh,a.IDCardNo |
| | | SELECT sum(a.Amount) amounts, |
| | | sum(COALESCE(a.labor_pretax_amount, a.Amount)) laborPretaxAmounts, |
| | | sum(COALESCE(a.TaxAmount, 0)) taxAmounts, |
| | | sum(COALESCE(a.TaxedAmount, 0)) taxedAmounts, |
| | | sum(COALESCE(a.vat_amount, 0)) vatAmounts, |
| | | sum(COALESCE(a.city_tax_amount, 0)) cityTaxAmounts, |
| | | sum(CASE WHEN a.tax_version = 'v1' THEN 1 ELSE 0 END) v1Count, |
| | | max(a.xh) xh, |
| | | a.IDCardNo |
| | | FROM service_funddetail a, |
| | | service_fund b |
| | | where a.FundID = b.id |