parent
9be6c192d0
commit
012c8ec841
|
@ -5,13 +5,13 @@
|
||||||
SELECT api.id,api.name FROM Api_definition api
|
SELECT api.id,api.name FROM Api_definition api
|
||||||
<where>
|
<where>
|
||||||
<if test="request.projectId != null">
|
<if test="request.projectId != null">
|
||||||
api.project_Id = #{request.projectId}
|
AND api.project_Id = #{request.projectId}
|
||||||
</if>
|
</if>
|
||||||
<if test="request.name != null">
|
<if test="request.name != null and request.name != '' ">
|
||||||
api.project_Id like CONCAT('%', #{request.name},'%')
|
AND api.name like CONCAT('%', #{request.name},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="request.type != null">
|
<if test="request.type != null and request.type != '' and request.type != 'ALL' ">
|
||||||
api.method = #{request.type}
|
AND api.method = #{request.type}
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<if test="request.moduleIds != null and request.moduleIds.size() > 0">
|
<if test="request.moduleIds != null and request.moduleIds.size() > 0">
|
||||||
|
|
Loading…
Reference in New Issue