|
|
|
@@ -18,12 +18,12 @@ |
|
|
|
|
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
where parent_id =0 |
|
|
|
<if test=" null != tenantId "> |
|
|
|
and `tenant_id` = #{tenantId} |
|
|
|
</if> |
|
|
|
where 1=1 |
|
|
|
<if test=" null != parentId ">and `parent_id` = #{parentId}</if> |
|
|
|
<if test=" null != tenantId ">and `tenant_id` = #{tenantId}</if> |
|
|
|
<if test=" null != id "> and `id` = #{id} </if> |
|
|
|
<if test=" null != name "> and `name` like concat('%', #{name},'%') </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 != sortColumns"> order by ${sortColumns} </if> |
|
|
|
<if test=" null == sortColumns"> order by sort asc </if> |
|
|
|
</sql> |
|
|
|
|