Browse Source

BaseStudentBehaviorManageMapper.xml 中getMobilePage的sql姓名从全名字查找改为模糊查询

phoenix 1 year ago
parent
commit
302cc03712

+ 2 - 2
src/main/resources/mapper/student/BaseStudentBehaviorManageMapper.xml

@@ -69,8 +69,8 @@
         SELECT t1.sort_code,t1.name,t1.class_name,t.assessment_date,
         t3.name AS categoryName,t4.name AS projectName,t.score,t4.score_type  FROM base_student_behavior_manage t
         INNER JOIN base_student_behavior_student_relation t1 ON t1.base_student_behavior_manage_id = t.id
-        <if test="dto.studentName != null and dto.endDate != ''">
-            and t1.name = #{dto.studentName}
+        <if test="dto.studentName != null and dto.studentName != ''">
+            and t1.name like concat('%',#{dto.studentName},'%')
         </if>
         LEFT JOIN xjr_user t2 ON t2.id = t.assessment_user_id
         LEFT JOIN base_student_behavior_category t3 ON t3.id = t.base_student_behavior_category_id