Mapper
<mapper namespace="com.rj182.dao.ClientDao">
<!-- 映射 -->
<resultMap type="com.rj182.entity.Client" id="BaseResultMap">
<id column="cli_Id" property="cliId"/>
<result column="cli_Name" property="cliName"/>
<result column="cli_Password" property="cliPassword"/>
<result column="cli_Realname" property="cliRealname"/>
<result column="cli_Create_Date" property="cliCreateDate"/>
<result column="cli_Salt" property="cliSalt"/>
</resultMap>
<!-- 查询list -->
<select id="selectUser" resultMap="BaseResultMap">
SELECT * FROM client WHERE cli_name=#{
cliName} AND cli_password=#{
cliPassword}
</select>
<!-- 用户注册 -->
<insert id="addUser">
INSERT INTO client(cli_id,cli_name,cli_password,cli_Realname)
VALUES(seq_client.nextval,#{
cliName},#{
cliPassword},#{
cliRealname<