wangyunpeng 2 months ago
parent
commit
f54996e2cb

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

@@ -27,8 +27,10 @@
             and create_timestamp < #{param.createTimestampEnd}
         </if>
         <if test="param.title != null and param.title != ''">
-            and id in (select plan_id from content_platform_gzh_plan_video where title like concat('%', #{param.title},
-            '%'))
+            and id in (select plan_id
+            from content_platform_gzh_plan_video
+            where title like concat('%', #{param.title}, '%')
+            or custom_title like concat('%', #{param.title}, '%'))
         </if>
     </select>
 
@@ -50,8 +52,10 @@
             and create_timestamp &lt; #{param.createTimestampEnd}
         </if>
         <if test="param.title != null and param.title != ''">
-            and id in (select plan_id from content_platform_gzh_plan_video where title like concat('%', #{param.title},
-            '%'))
+            and id in (select plan_id
+                       from content_platform_gzh_plan_video
+                       where title like concat('%', #{param.title}, '%')
+                       or custom_title like concat('%', #{param.title}, '%'))
         </if>
         order by create_timestamp desc
         limit #{offset}, #{pageSize}