<?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.orangesale.cn.mapper.UserMapper">
    <select id="userLogin" resultType="com.orangesale.cn.entity.OrangeUser">
        select * from orange_user where username=#{username} and password=#{password}
    </select>
    <insert id="userRegister">
        insert into orange_user(username,password,sex,city) values(#{username},#{password},#{sex},#{city})
    </insert>
</mapper>