<select id="checkLogin" resultMap="BaseResultMap"> SELECT <include refid="sql"/> FROM user where password = #{password} <if test="name!=null and name!=''"> and name = #{name} </if> <if test="name!=null and name!=''"> or tel = #{name} </if> <if test="name!=null and name!=''"> or identify = #{name} </if> </select>
根据用户名或者身份证或手机号码来登录
猜你喜欢
转载自www.cnblogs.com/java-jiangtao-home/p/10767749.html
今日推荐
周排行