Joburgess 5 年之前
父節點
當前提交
c37fbb38da
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      mec-biz/src/main/resources/config/mybatis/VipGroupActivityMapper.xml

+ 3 - 0
mec-biz/src/main/resources/config/mybatis/VipGroupActivityMapper.xml

@@ -143,6 +143,9 @@
 			<if test="enable != null and enable == false">
 				AND (NOW() >= end_time_ OR NOW() &lt;= start_time_)
 			</if>
+			<if test="search != null and search != ''">
+				AND (vga.id_=#{search} OR vga.name_ LIKE CONCAT('%', #{search}, '%'))
+			</if>
 		</where>
 	</sql>