This commit is contained in:
linfso 2024-05-24 09:53:06 +08:00
parent 7f68f9bf30
commit 43c87ab525

View File

@ -40,8 +40,8 @@
select 1 as id, 1 as plan_id, a.site_code as start_site , a.site_code as dest_site
from emis_site a
where a.del_flag='0'
<if test="startSite != null and startSite != ''"> and a.site_code=#{startSite}</if>
<if test="destSite != null and destSite != ''"> and a.site_code=#{destSite}</if>
<if test="startSite != null and startSite != ''"> and a.site_code!=#{startSite}</if>
<if test="destSite != null and destSite != ''"> and a.site_code!=#{destSite}</if>
order by site_code asc
</select>