src/main/resources/mapper/UserMapper.xml
@@ -410,5 +410,15 @@ limit 1 </select> <select id="selectByIdName" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from t_user <where> and deleted=0 and id = #{id} <if test="userName != null and userName != ''"> and user_name like concat('%',#{userName},"%") </if> </where> </select> </mapper>