AND (create_id = #{createId} OR create_id IN (SELECT id FROM user WHERE depturlpath LIKE (SELECT CONCAT(depturlpath,'/%') FROM user WHERE id = #{createId})))
AND (create_id = #{createId} OR create_id IN (SELECT id FROM user WHERE depturlpath LIKE (SELECT
CONCAT(depturlpath,'/%') FROM user WHERE id = #{createId})))
</if>
</if>
<iftest="createName != null and createName != ''">
<iftest="createName != null and createName != ''">
AND create_name = #{createName}
AND create_name = #{createName}
...
@@ -114,6 +178,9 @@
...
@@ -114,6 +178,9 @@
<iftest="city != null and city != ''">
<iftest="city != null and city != ''">
AND city = #{city}
AND city = #{city}
</if>
</if>
<iftest="type != null and type >= 0 ">
AND type = #{type}
</if>
ORDER BY id DESC
ORDER BY id DESC
<iftest="start != null and start >= 0 ">
<iftest="start != null and start >= 0 ">
limit #{start},#{limit}
limit #{start},#{limit}
...
@@ -128,7 +195,8 @@
...
@@ -128,7 +195,8 @@
AND name LIKE CONCAT('%',#{name},'%')
AND name LIKE CONCAT('%',#{name},'%')
</if>
</if>
<iftest="createId != null and createId > 0 ">
<iftest="createId != null and createId > 0 ">
AND (create_id = #{createId} OR create_id IN (SELECT id FROM user WHERE depturlpath LIKE (SELECT CONCAT(depturlpath,'/%') FROM user WHERE id = #{createId})))
AND (create_id = #{createId} OR create_id IN (SELECT id FROM user WHERE depturlpath LIKE (SELECT
CONCAT(depturlpath,'/%') FROM user WHERE id = #{createId})))
</if>
</if>
<iftest="createName != null and createName != ''">
<iftest="createName != null and createName != ''">
AND (create_id = #{createId} OR create_id IN (SELECT id FROM user WHERE depturlpath LIKE (SELECT CONCAT(depturlpath,'/%') FROM user WHERE id = #{createId})))
AND (create_id = #{createId} OR create_id IN (SELECT id FROM user WHERE depturlpath LIKE (SELECT
CONCAT(depturlpath,'/%') FROM user WHERE id = #{createId})))
</if>
</if>
<iftest="createName != null and createName != ''">
<iftest="createName != null and createName != ''">
AND create_name = #{createName}
AND create_name = #{createName}
...
@@ -114,6 +178,9 @@
...
@@ -114,6 +178,9 @@
<iftest="city != null and city != ''">
<iftest="city != null and city != ''">
AND city = #{city}
AND city = #{city}
</if>
</if>
<iftest="type != null and type >= 0 ">
AND type = #{type}
</if>
ORDER BY id DESC
ORDER BY id DESC
<iftest="start != null and start >= 0 ">
<iftest="start != null and start >= 0 ">
limit #{start},#{limit}
limit #{start},#{limit}
...
@@ -128,7 +195,8 @@
...
@@ -128,7 +195,8 @@
AND name LIKE CONCAT('%',#{name},'%')
AND name LIKE CONCAT('%',#{name},'%')
</if>
</if>
<iftest="createId != null and createId > 0 ">
<iftest="createId != null and createId > 0 ">
AND (create_id = #{createId} OR create_id IN (SELECT id FROM user WHERE depturlpath LIKE (SELECT CONCAT(depturlpath,'/%') FROM user WHERE id = #{createId})))
AND (create_id = #{createId} OR create_id IN (SELECT id FROM user WHERE depturlpath LIKE (SELECT
CONCAT(depturlpath,'/%') FROM user WHERE id = #{createId})))
</if>
</if>
<iftest="createName != null and createName != ''">
<iftest="createName != null and createName != ''">
AND (create_id = #{createId} OR create_id IN (SELECT id FROM user WHERE depturlpath LIKE (SELECT CONCAT(depturlpath,'/%') FROM user WHERE id = #{createId})))
AND (create_id = #{createId} OR create_id IN (SELECT id FROM user WHERE depturlpath LIKE (SELECT
CONCAT(depturlpath,'/%') FROM user WHERE id = #{createId})))
</if>
</if>
<iftest="createName != null and createName != ''">
<iftest="createName != null and createName != ''">
AND create_name = #{createName}
AND create_name = #{createName}
...
@@ -114,6 +178,9 @@
...
@@ -114,6 +178,9 @@
<iftest="city != null and city != ''">
<iftest="city != null and city != ''">
AND city = #{city}
AND city = #{city}
</if>
</if>
<iftest="type != null and type >= 0 ">
AND type = #{type}
</if>
ORDER BY id DESC
ORDER BY id DESC
<iftest="start != null and start >= 0 ">
<iftest="start != null and start >= 0 ">
limit #{start},#{limit}
limit #{start},#{limit}
...
@@ -128,7 +195,8 @@
...
@@ -128,7 +195,8 @@
AND name LIKE CONCAT('%',#{name},'%')
AND name LIKE CONCAT('%',#{name},'%')
</if>
</if>
<iftest="createId != null and createId > 0 ">
<iftest="createId != null and createId > 0 ">
AND (create_id = #{createId} OR create_id IN (SELECT id FROM user WHERE depturlpath LIKE (SELECT CONCAT(depturlpath,'/%') FROM user WHERE id = #{createId})))
AND (create_id = #{createId} OR create_id IN (SELECT id FROM user WHERE depturlpath LIKE (SELECT
CONCAT(depturlpath,'/%') FROM user WHERE id = #{createId})))
</if>
</if>
<iftest="createName != null and createName != ''">
<iftest="createName != null and createName != ''">