insert id="insert" parameterType="com.zhangman.manman.entity.User" >
insert into user (id, username, password,name,desc,email,birthday,phone,status,createtime,roleId)
values (#{id,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR}, #{desc,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR},
#{birthday,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
#{createtime,jdbcType=DATE}, #{roleid,jdbcType=INTEGER})
/insert>
insert id="insert" parameterType="com.zhangman.manman.entity.User" >
INSERT INTO `user`
(username, `password`,`name`,`desc`,email,birthday,phone,`status`,createtime,roleId)
VALUES (#{username}, #{password},#{name}, #{desc},#{email},
#{birthday}, #{phone}, #{status},
#{createtime}, #{roleid})
/insert>