Commit 02b8d6e2 authored by suhuiguang's avatar suhuiguang

1.es查询增加转义要不数据会查询多余数据

parent 47e4b052
......@@ -288,7 +288,7 @@
a.inspection_unit_code= b.use_unit_code
and a.status != '6610' and a.status != '6615'
and ((b.supervise_org_code != '50' and b.supervise_org_code LIKE CONCAT (#{orgCode}, '%')) or (b.supervise_org_code = '50' and b.office_region LIKE CONCAT ('%', #{dto.cityCode}, '%')))
<if test="dto.beginDate !=null and dto.beginDate !=''">
<if test="dto.beginDate !=null and dto.beginDate !=''">
and date_ge(CAST(a.application_date as date),#{dto.beginDate})
</if>
<if test="dto.endDate !=null and dto.endDate !=''">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment