| | |
| | | T1.customer_name LIKE CONCAT('%',#{salesLedgerDto.customerName},'%') |
| | | </if> |
| | | </where> |
| | | ORDER BY T1.entry_date DESC, T1.id DESC |
| | | </select> |
| | | |
| | | <select id="selectSalesLedgerListPage" resultType="com.ruoyi.sales.pojo.SalesLedger"> |
| | |
| | | FROM sales_ledger |
| | | GROUP BY customer_name |
| | | </select> |
| | | <select id="listSalesLedger" resultType="com.ruoyi.sales.dto.SalesLedgerDto"> |
| | | select * from |
| | | sales_ledger sl |
| | | <where> |
| | | <if test="ew.customerName != null and ew.customerName != '' "> |
| | | and sl.customer_name like concat('%',#{ew.customerName},'%') |
| | | </if> |
| | | </where> |
| | | ORDER BY sl.entry_date DESC, sl.id DESC |
| | | </select> |
| | | |
| | | </mapper> |