发表于: 2018-01-21 22:21:18

0 743


今日完成

1.前后端验证码以及校验的完成。

(1)写一个自定义查询的sql,能够根据用户名或者手机号或者邮箱号码查询



<select id="findUserByname" parameterType="string" resultMap="BaseResultMap">
SELECT * FROM user WHERE name = #{name}
</select>

 <sql id="query_find_num">

   <if test="qqNum!=null and qqNum!=''">
     and qq_num = #{qqNum}
</if>

   <if test="phoneNum!=null and phoneNum!=''">
     and phone_num = #{phoneNum}
</if>
   <if test="name!=null and name!=''">
     and phone_num = #{name}
</if>
 </sql>

 <select id="findUserCustom" parameterType="lujing.pojo.User" resultMap="BaseResultMap">
   SELECT * FROM user
<where>
     <include refid="query_find_num"/>
   </where>
 </select>

(2)判断用户名,手机号,邮箱是否存在


(3)controller的实现

(4)debug

1.发送失败测试————关闭腾讯云信息的接口。

2.用户已存在测试——在数据库中加入该用户



2.小课堂

(1)example自定义查询的使用


明日计划

1.小课堂整理

2.完成任务7 。

遇到问题

收获

1.对ajax有了一定的认识。

2.浏览器写的js也可以debug调试。


返回列表 返回列表
评论

    分享到