Commit 001c61f3 authored by qk's avatar qk

Update:合格证核查查询接口添加企业ID条件

parent cd566839
......@@ -37,10 +37,13 @@
count_id
) CCCCC ON ( ccmi.ID = CCCCC.cccccId )
WHERE
ru.USERNAME = #{baseId}
1=1
<if test="vehicleModel != null and vehicleModel != ''">
and ccmi.VEHICLE_MODEL like '%'|| #{vehicleModel}||'%' escape '|'
</if>
<if test="baseId !=null and baseId != ''">
and ccmi.BASE_ID = #{baseId}
</if>
<if test="vehicleGroup != null and vehicleGroup != ''">
and ccmi.VEHICLE_GROUP = #{vehicleGroup}
</if>
......@@ -114,6 +117,9 @@
<if test="checkState != null and checkState != ''">
and ccmi.CHECK_STATE = #{checkState}
</if>
<if test="baseId !=null and baseId != ''">
and ccmi.BASE_ID = #{baseId}
</if>
<if test="operator != null and operator != ''">
and ru.USERNAME like '%'|| #{operator}||'%' escape '|'
</if>
......@@ -142,6 +148,9 @@
<if test="checkState != null and checkState != ''">
and ccmi.CHECK_STATE = #{checkState}
</if>
<if test="baseId !=null and baseId != ''">
and ccmi.BASE_ID = #{baseId}
</if>
<if test="operator != null and operator != ''">
and ru.USERNAME like '%'|| #{operator}||'%' escape '|'
</if>
......
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