...
|
...
|
@@ -40,7 +40,7 @@ |
|
|
user_id, username, birthday, sex, address, state, mobilePhone,userFace, realName, email, age
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from users
|
|
|
where user_id = #{userId,jdbcType=INTEGER}
|
...
|
...
|
@@ -53,7 +53,9 @@ |
|
|
</select>
|
|
|
<select id="selectAllUser" resultMap="BaseResultMap" parameterType="com.tianbo.warehouse.model.USERS" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
<!-- <include refid="Base_Column_List" />-->
|
|
|
user_id, username, birthday, sex, address, state, mobilePhone, creatTime,
|
|
|
updateTime, userFace, realName, email, age,company_id
|
|
|
from users
|
|
|
WHERE 1=1
|
|
|
<if test=" username != null" >
|
...
|
...
|
@@ -68,14 +70,14 @@ |
|
|
where user_id = #{userId,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.tianbo.warehouse.model.USERS" >
|
|
|
insert into users (user_id, username, password,
|
|
|
birthday, sex, address,
|
|
|
state, mobilePhone, creatTime,
|
|
|
insert into users (user_id, username, password,
|
|
|
birthday, sex, address,
|
|
|
state, mobilePhone, creatTime,
|
|
|
updateTime, userFace, realName,
|
|
|
email, age)
|
|
|
values (#{userId,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
|
|
|
#{birthday,jdbcType=TIMESTAMP}, #{sex,jdbcType=CHAR}, #{address,jdbcType=VARCHAR},
|
|
|
#{state,jdbcType=BIT}, #{mobilephone,jdbcType=VARCHAR}, #{creattime,jdbcType=TIMESTAMP},
|
|
|
values (#{userId,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
|
|
|
#{birthday,jdbcType=TIMESTAMP}, #{sex,jdbcType=CHAR}, #{address,jdbcType=VARCHAR},
|
|
|
#{state,jdbcType=BIT}, #{mobilephone,jdbcType=VARCHAR}, #{creattime,jdbcType=TIMESTAMP},
|
|
|
#{updatetime,jdbcType=TIMESTAMP}, #{userface,jdbcType=VARCHAR}, #{realname,jdbcType=VARCHAR},
|
|
|
#{email,jdbcType=VARCHAR}, #{age,jdbcType=INTEGER})
|
|
|
</insert>
|
...
|
...
|
@@ -228,4 +230,4 @@ |
|
|
age = #{age,jdbcType=INTEGER}
|
|
|
where user_id = #{userId,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
|
|
</mapper> |
...
|
...
|
|