change 3 жил өмнө
parent
commit
89881c1f15

+ 5 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/base/bo/UserProfileQueryBo.java

@@ -95,4 +95,9 @@ public class UserProfileQueryBo extends BaseEntity {
 	@Excel(name = "所属专业")
 	@ApiModelProperty("所属专业")
 	private Long majorId;
+
+	/** 所属专业 */
+	@Excel(name = "名字")
+	@ApiModelProperty("名字")
+	private String realname;
 }

+ 5 - 2
zhongzheng-system/src/main/resources/mapper/modules/base/UserProfileMapper.xml

@@ -87,8 +87,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="majorId != null and majorId !='' ">
             AND g.major_id =#{majorId}
         </if>
-        <if test="change_status != null and goodsId !='' ">
-            AND up.change_status =#{goodsId}
+        <if test="changeStatus != null and changeStatus !='' ">
+            AND up.change_status =#{changeStatus}
+        </if>
+        <if test="realname != null and realname !='' ">
+            AND (SELECT count(1) FROM `user` u where u.user_id = up.user_id and u.realname like concat('%', #{realname}, '%') )> 0
         </if>
         order by up.create_time desc
     </select>