Commit 001c61f3 authored by qk's avatar qk

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

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