| | |
| | | <if test="accountExpense.expenseMethod != null and accountExpense.expenseMethod != '' "> |
| | | AND expense_method = #{accountExpense.expenseMethod} |
| | | </if> |
| | | <!-- 2026-10-12 需求:支出管理按支出日期倒序 --> |
| | | ORDER BY expense_date DESC, id DESC |
| | | </select> |
| | | <select id="accountExpenseExport" resultType="com.ruoyi.account.pojo.AccountExpense"> |
| | | SELECT |
| | |
| | | <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 expense_type, sdd.dict_label |
| | | </select> |
| | | |
| | | <select id="report1" resultType="java.math.BigDecimal"> |