forked from integrated_whb/integrated_whb
				
			refactor(mybatis): 移除用户查询中的名称条件
- 删除了 UsersMapper.xml 文件中 getUserByUsername 方法的 NAME 条件判断- 优化了查询逻辑,减少了不必要的条件判断dev
							parent
							
								
									1beb025c2a
								
							
						
					
					
						commit
						c1029db0ac
					
				|  | @ -178,9 +178,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||
| 			<include refid="tableName"></include> | ||||
| 		where ISDELETE = 0 and | ||||
| 		USERNAME = #{USERNAME} | ||||
| 		<if test="NAME != null and NAME != ''"> | ||||
| 			and NAME = #{NAME} | ||||
| 		</if> | ||||
| 
 | ||||
| 		<if test="CORPINFO_ID != null and CORPINFO_ID != ''"> | ||||
| 			and CORPINFO_ID = #{CORPINFO_ID} | ||||
| 		</if> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue