|
|
|
@ -11,6 +11,15 @@
|
|
|
|
|
select t.*,t1.template_name as templateName from logpm_expense_dispatch_price_service t |
|
|
|
|
left join logpm_expense_dispatch_price_template t1 on t.template_id = t1.id |
|
|
|
|
where t.is_deleted = 0 and t1.is_deleted = 0 |
|
|
|
|
<if test="expenseDispatchPriceService.templateName != null and expenseDispatchPriceService.templateName != ''"> |
|
|
|
|
and t1.template_name like concat('%',#{expenseDispatchPriceService.templateName},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="expenseDispatchPriceService.driverName != null and expenseDispatchPriceService.driverName != ''"> |
|
|
|
|
and t.driver_name like concat('%',#{expenseDispatchPriceService.driverName},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="expenseDispatchPriceService.warehouseName != null and expenseDispatchPriceService.warehouseName != null"> |
|
|
|
|
and t.warehouse_name like concat('%',#{expenseDispatchPriceService.warehouseName},'%') |
|
|
|
|
</if> |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|