|
|
|
@@ -26,9 +26,12 @@ |
|
|
|
<if test=" null != parentTenantId and '' != parentTenantId"> |
|
|
|
and `parent_tenant_id` = #{parentTenantId} |
|
|
|
</if> |
|
|
|
<if test=" null != parentId"> |
|
|
|
and `parent_id` = #{parentId} |
|
|
|
</if> |
|
|
|
<if test=" null != id "> and `id` = #{id} </if> |
|
|
|
<if test=" null != modelId"> and `model_id` = #{modelId} </if> |
|
|
|
<if test="null != name and '' != name "> and `name` like concat('%', #{name},'%') </if> |
|
|
|
<if test=" null != name and '' != name "> and `name` like concat('%', #{name},'%') </if> |
|
|
|
<if test=" null != sortColumns"> order by ${sortColumns} </if> |
|
|
|
<if test=" null == sortColumns"> order by sort asc </if> |
|
|
|
</sql> |
|
|
|
|