| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
| | | <mapper namespace="com.ruoyi.account.mapper.AccountExpenseMapper"> |
| | | <select id="accountExpenseListPage" resultType="com.ruoyi.account.pojo.AccountExpense"> |
| | |
| | | <if test="accountExpense.expenseMethod != null and accountExpense.expenseMethod != '' "> |
| | | AND expense_method = #{accountExpense.expenseMethod} |
| | | </if> |
| | | 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"> |