| | |
| | | <if test="accountExpense.entryDateStart != null and accountExpense.entryDateStart != '' "> |
| | | AND expense_date >= DATE_FORMAT(#{accountExpense.entryDateStart},'%Y-%m-%d') |
| | | </if> |
| | | <if test=" accountExpense.supplierName != null and accountExpense.supplierName != ''"> |
| | | AND supplier_name like CONCAT('%',#{accountExpense.supplierName},'%') |
| | | </if> |
| | | <if test=" accountExpense.invoiceNumber != null and accountExpense.invoiceNumber != ''"> |
| | | AND invoice_number like CONCAT('%',#{accountExpense.invoiceNumber},'%') |
| | | </if> |
| | | <if test="accountExpense.entryDateEnd != null and accountExpense.entryDateEnd != '' "> |
| | | AND expense_date <= DATE_FORMAT(#{accountExpense.entryDateEnd},'%Y-%m-%d') |
| | | </if> |
| | |
| | | AND expense_method = #{accountExpense.expenseMethod} |
| | | </if> |
| | | </select> |
| | | <select id="report" resultType="com.ruoyi.account.dto.AccountDto2"> |
| | | <select id="report" resultType="com.ruoyi.account.bean.dto.AccountDto2"> |
| | | SELECT |
| | | sdd.dict_label typeName, |
| | | sum(expense_money) account |
| | |
| | | <if test="dateQueryDto.entryDateEnd != null and dateQueryDto.entryDateEnd != '' "> |
| | | AND expense_date <= DATE_FORMAT(#{dateQueryDto.entryDateEnd},'%Y-%m-%d') |
| | | </if> |
| | | group by expense_type |
| | | group by sdd.dict_label, ae.expense_type |
| | | </select> |
| | | |
| | | <select id="report1" resultType="java.math.BigDecimal"> |