he2802 3 жил өмнө
parent
commit
1e9c3ffae0

+ 2 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/bo/UserCourseAnswerQueryBo.java

@@ -74,4 +74,6 @@ public class UserCourseAnswerQueryBo extends BaseEntity {
 	private Long businessId;
 	@ApiModelProperty("业务层次id")
 	private List<Long> businessIds;
+	@ApiModelProperty("关键词")
+	private String searchKey;
 }

+ 3 - 0
zhongzheng-system/src/main/resources/mapper/modules/user/UserCourseAnswerMapper.xml

@@ -91,6 +91,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="msgType != null and msgType == 2">
             AND uca.assign_user_id>0
         </if>
+        <if test="searchKey != null and searchKey != '' ">
+            and (g.goods_name like concat('%', #{searchKey}, '%') or uca.answer_text like concat('%', #{searchKey}, '%'))
+        </if>
         <if test="msgType != null">
             <if test="educationTypeId != null and educationTypeId != ''">
                 AND g.education_type_id = #{educationTypeId}