|
@@ -14,16 +14,16 @@
|
|
|
select count(*)
|
|
|
from content_platform_gzh_plan
|
|
|
where create_account_id = #{createAccountId}
|
|
|
- <if test="param.accountId != null and param.accountId != ''">
|
|
|
+ <if test="param.accountId != null">
|
|
|
and account_id = #{param.accountId}
|
|
|
</if>
|
|
|
- <if test="param.publishStage != null and param.publishStage != ''">
|
|
|
+ <if test="param.publishStage != null">
|
|
|
and publish_stage = #{param.publishStage}
|
|
|
</if>
|
|
|
- <if test="param.createTimestampStart != null and param.createTimestampStart != ''">
|
|
|
+ <if test="param.createTimestampStart != null">
|
|
|
and create_timestamp > #{param.createTimestampStart}
|
|
|
</if>
|
|
|
- <if test="param.createTimestampEnd != null and param.createTimestampEnd != ''">
|
|
|
+ <if test="param.createTimestampEnd != null">
|
|
|
and create_timestamp < #{param.createTimestampEnd}
|
|
|
</if>
|
|
|
<if test="param.title != null and param.title != ''">
|
|
@@ -37,16 +37,16 @@
|
|
|
select *
|
|
|
from content_platform_gzh_plan
|
|
|
where create_account_id = #{createAccountId}
|
|
|
- <if test="param.accountId != null and param.accountId != ''">
|
|
|
+ <if test="param.accountId != null">
|
|
|
and account_id = #{param.accountId}
|
|
|
</if>
|
|
|
- <if test="param.publishStage != null and param.publishStage != ''">
|
|
|
+ <if test="param.publishStage != null">
|
|
|
and publish_stage = #{param.publishStage}
|
|
|
</if>
|
|
|
- <if test="param.createTimestampStart != null and param.createTimestampStart != ''">
|
|
|
+ <if test="param.createTimestampStart != null">
|
|
|
and create_timestamp > #{param.createTimestampStart}
|
|
|
</if>
|
|
|
- <if test="param.createTimestampEnd != null and param.createTimestampEnd != ''">
|
|
|
+ <if test="param.createTimestampEnd != null">
|
|
|
and create_timestamp < #{param.createTimestampEnd}
|
|
|
</if>
|
|
|
<if test="param.title != null and param.title != ''">
|