id,name,customer_count as customerCount,wait_count as waitCount,
sent_count as sentCount,city,create_id as createId,create_name as createName,
create_time as createTime,is_delete as isDelete
id,name,customer_count as customerCount,wait_count as waitCount,
sent_count as sentCount,city,create_id as createId,create_name as createName,
create_time as createTime,is_delete as isDelete
FROM
cloud_activity
cloud_activity
where is_delete = 0
<iftest="name != null and name != ''">
AND name LIKE CONCAT('%',#{name},'%')
</if>
<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>
<iftest="createName != null and createName != ''">
AND create_name = #{createName}
...
...
@@ -114,6 +178,9 @@
<iftest="city != null and city != ''">
AND city = #{city}
</if>
<iftest="type != null and type >= 0 ">
AND type = #{type}
</if>
ORDER BY id DESC
<iftest="start != null and start >= 0 ">
limit #{start},#{limit}
...
...
@@ -128,7 +195,8 @@
AND name LIKE CONCAT('%',#{name},'%')
</if>
<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>
<iftest="createName != null and createName != ''">
id,name,customer_count as customerCount,wait_count as waitCount,
sent_count as sentCount,city,create_id as createId,create_name as createName,
create_time as createTime,is_delete as isDelete
id,name,customer_count as customerCount,wait_count as waitCount,
sent_count as sentCount,city,create_id as createId,create_name as createName,
create_time as createTime,is_delete as isDelete
FROM
cloud_activity
where is_delete = 0
...
...
@@ -103,7 +166,8 @@
AND name LIKE CONCAT('%',#{name},'%')
</if>
<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>
<iftest="createName != null and createName != ''">
AND create_name = #{createName}
...
...
@@ -114,6 +178,9 @@
<iftest="city != null and city != ''">
AND city = #{city}
</if>
<iftest="type != null and type >= 0 ">
AND type = #{type}
</if>
ORDER BY id DESC
<iftest="start != null and start >= 0 ">
limit #{start},#{limit}
...
...
@@ -128,7 +195,8 @@
AND name LIKE CONCAT('%',#{name},'%')
</if>
<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>
<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>
<iftest="createName != null and createName != ''">
AND create_name = #{createName}
...
...
@@ -114,6 +178,9 @@
<iftest="city != null and city != ''">
AND city = #{city}
</if>
<iftest="type != null and type >= 0 ">
AND type = #{type}
</if>
ORDER BY id DESC
<iftest="start != null and start >= 0 ">
limit #{start},#{limit}
...
...
@@ -128,7 +195,8 @@
AND name LIKE CONCAT('%',#{name},'%')
</if>
<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>
<iftest="createName != null and createName != ''">