代码拉取完成,页面将自动刷新
同步操作将从 chen/123兼职网 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ptj.dao.UserMapper">
<!-- 用户登录验证 -->
<select id="userLogin" resultType="user">
select * from user where userphone=#{userphone} and password=#{password}
</select>
<!-- 用户注册 -->
<insert id="userRegister">
insert into user(username,userphone,password,money) values(#{username},#{userphone},#{password},0)
</insert>
<!-- 用户信息完善 -->
<insert id="addUser">
update user set userimg=#{userimg},sex=#{sex},idcard=#{idcard} where id=#{id}
</insert>
<!-- 用户信息修改 -->
<update id="updateUser">
update user
<set><if test="username !=null and !username.equals('')">username=#{username}</if>
<if test="userimg !=null and !userimg.equals('')">,userimg=#{userimg}</if>
<if test="userphone !=null and !userphone.equals('')">,userphone=#{userphone}</if>
<if test="password !=null and !password.equals('')">,password=#{password}</if>
<if test="sex !=null and !sex.equals('')">,sex=#{sex}</if>
<if test="idcard !=null and !idcard.equals('')">,idcard=#{idcard}</if>
</set>
where id=#{id}
</update>
<!-- 头像 -->
<!-- <update id="updateUser">
update user
<set>
<if test="userimg !=null and !userimg.equals('')">userimg=#{userimg}</if>
</set>
where id=#{id}
</update> -->
<!-- 用户删除 -->
<delete id="deleteuser">
delete from user where id=#{id}
</delete>
<!-- 根据手机号查用户 -->
<select id="selectUserByPhone" resultType="user">
select * from user where userphone=#{userphone}
</select>
<!-- 根据name查用户 -->
<select id="selectUserByName" resultType="user">
select * from user where username=#{username}
</select>
<!-- 根据id查用户 -->
<select id="selectUserByid" resultType="user">
select * from user where id=#{id}
</select>
</mapper>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。