完善c端登录
This commit is contained in:
@@ -3,6 +3,49 @@
|
||||
<mapper namespace="com.ruoyi.system.mapper.ShopUserMapper">
|
||||
|
||||
<select id="selectShopUserByPhone" resultType="com.ruoyi.common.core.domain.entity.ShopUser">
|
||||
SELECT * FROM shop_user where userName = #{username}
|
||||
SELECT * FROM shop_user where phone = #{phone}
|
||||
</select>
|
||||
|
||||
<select id="selectShopUserByUsername" resultType="com.ruoyi.common.core.domain.entity.ShopUser">
|
||||
SELECT * FROM shop_user where username = #{username}
|
||||
</select>
|
||||
|
||||
<select id="selectShopUserByUsernameAndPass" resultType="com.ruoyi.common.core.domain.entity.ShopUser">
|
||||
SELECT * FROM shop_user where username = #{username} and password = #{password}
|
||||
</select>
|
||||
|
||||
<!-- Insert -->
|
||||
<insert id="insert" parameterType="com.ruoyi.common.core.domain.entity.ShopUser" useGeneratedKeys="true" keyProperty="id">
|
||||
INSERT INTO shop_user
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="username != null">username,</if>
|
||||
<if test="password != null">password,</if>
|
||||
<if test="phone != null">phone,</if>
|
||||
<if test="nickname != null">nickname,</if>
|
||||
<if test="sex != null">sex,</if>
|
||||
<if test="birthday != null">birthday,</if>
|
||||
<if test="addr != null">addr,</if>
|
||||
<if test="registerTime != null">register_time,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="vip != null">vip,</if>
|
||||
<if test="online != null">online,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="username != null">#{username},</if>
|
||||
<if test="password != null">#{password},</if>
|
||||
<if test="phone != null">#{phone},</if>
|
||||
<if test="nickname != null">#{nickname},</if>
|
||||
<if test="sex != null">#{sex},</if>
|
||||
<if test="birthday != null">#{birthday},</if>
|
||||
<if test="addr != null">#{addr},</if>
|
||||
<if test="registerTime != null">#{registerTime},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="vip != null">#{vip},</if>
|
||||
<if test="online != null">#{online},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user