Commit 781e624c by 谢海旭

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

1 parent 0c9d5c6c
...@@ -393,14 +393,10 @@ ...@@ -393,14 +393,10 @@
<if test="merchantName != null and merchantName !=''"> <if test="merchantName != null and merchantName !=''">
and exists( and exists(
select 1 select 1
from dj_car_life_staff_daily_report_config sdrc from dj_car_life_staff_account_assign_record saar
left join dj_car_life_staff_daily_report_effect_record sdrer where saar.deleted_flag = 'N'
on sdrc.id = sdrer.daily_report_config_id and sdrer.deleted_flag = 'N' and saar.staff_phone = sbi.staff_phone
where sdrc.deleted_flag = 'N' and saar.merchant_name like CONCAT('%', #{merchantName,jdbcType=VARCHAR},'%')
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()))
) )
</if> </if>
<if test="createdSource != null"> <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!