| | |
| | | T1.customer_name LIKE CONCAT('%',#{salesLedgerDto.customerName},'%') |
| | | </if> |
| | | </where> |
| | | order by T1.entry_date desc |
| | | </select> |
| | | |
| | | <select id="selectSalesLedgerListPage" resultType="com.ruoyi.sales.vo.SalesLedgerVo"> |
| | |
| | | <if test="salesLedgerDto.entryDateEnd != null and salesLedgerDto.entryDateEnd != '' "> |
| | | AND T1.entry_date <= DATE_FORMAT(#{salesLedgerDto.entryDateEnd},'%Y-%m-%d') |
| | | </if> |
| | | <if test="salesLedgerDto.ids != null and salesLedgerDto.ids.size() > 0"> |
| | | AND T1.id IN |
| | | <foreach collection="salesLedgerDto.ids" item="ledgerId" open="(" separator="," close=")"> |
| | | #{ledgerId} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | order by T1.entry_date desc |
| | | </select> |
| | |
| | | and c.customer_name like concat('%',#{customerName},'%') |
| | | </if> |
| | | </where> |
| | | order by sl.create_time desc |
| | | order by sl.entry_date desc |
| | | </select> |
| | | |
| | | </mapper> |