wangyunpeng 2 kuukautta sitten
vanhempi
commit
ac93c1a4c7

+ 8 - 8
api-module/src/main/resources/mapper/contentplatform/ext/ContentPlatformPlanMapperExt.xml

@@ -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 &lt; #{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 &lt; #{param.createTimestampEnd}
         </if>
         <if test="param.title != null and param.title != ''">