| | |
| | | <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> |
| | |
| | | <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"> |