Commit 781e624c by 谢海旭

驻店管理:服务门店查询逻辑调整

1 parent 0c9d5c6c
......@@ -393,14 +393,10 @@
<if test="merchantName != null and merchantName !=''">
and exists(
select 1
from dj_car_life_staff_daily_report_config sdrc
left join dj_car_life_staff_daily_report_effect_record sdrer
on sdrc.id = sdrer.daily_report_config_id and sdrer.deleted_flag = 'N'
where sdrc.deleted_flag = 'N'
and sdrc.staff_phone = sbi.staff_phone
and sdrc.merchant_name like CONCAT('%', #{merchantName,jdbcType=VARCHAR},'%')
and ((sdrer.start_effective_time <![CDATA[<=]]> NOW() and sdrer.end_effective_time is null) or
(sdrer.start_effective_time <![CDATA[<=]]> NOW() and sdrer.end_effective_time >= NOW()))
from dj_car_life_staff_account_assign_record saar
where saar.deleted_flag = 'N'
and saar.staff_phone = sbi.staff_phone
and saar.merchant_name like CONCAT('%', #{merchantName,jdbcType=VARCHAR},'%')
)
</if>
<if test="createdSource != null">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!