소스 검색

角色分配 根据用户名模糊查询
通讯录 增加性别信息

shenji 2 년 전
부모
커밋
639b9fe7d4
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/SysUserMapper.xml

+ 2 - 1
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/SysUserMapper.xml

@@ -63,7 +63,7 @@
 	<select id="getUserByRoleId" resultType="org.jeecg.modules.system.entity.SysUser">
 		select * from sys_user where del_flag = '0' and id in (select user_id from sys_user_role where role_id=#{roleId})
 		<if test="username!=null and username!=''">
-			and username = #{username}
+			and username like '%${username}%'
 		</if>
 	</select>
 
@@ -138,6 +138,7 @@
 			   a.id AS "id",
 			   a.realname AS "realname",
 			   a.work_no AS "work_no",
+				a.sex as "sex",
 				CASE when d.name = null or d.name = '' or d.name is null
 				THEN a.post
 				ELSE d.name