| | |
| | | and sl.customer_name like concat('%',#{ew.customerName},'%') |
| | | </if> |
| | | order by sl.execution_date desc |
| | | </select> |
| | | |
| | | <select id="selectSalesProcess" resultType="com.ruoyi.sales.pojo.SalesLedgerProcessRoute" |
| | | parameterType="java.lang.Long"> |
| | | select slpr.*, |
| | | pri.process_name as processName |
| | | from sales_ledger_process_route slpr |
| | | left join process_route_item pri on pri.id = slpr.process_route_item_id |
| | | <where> |
| | | <if test="salesLedgerId != null"> |
| | | AND slpr.sales_ledger_id = #{salesLedgerId} |
| | | </if> |
| | | <if test="salesLedgerId == null"> |
| | | AND 1 = 2 |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |