|
|
@@ -16,13 +16,13 @@
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
|
</resultMap>
|
|
|
<sql id="baseColumns">
|
|
|
- id,company_id,username,password,salt,realname,email,mobile,type,creator_id,create_time,updater_id,update_time
|
|
|
+ id,username,password,salt,realname,email,mobile,type,creator_id,create_time,updater_id,update_time
|
|
|
</sql>
|
|
|
<insert id="insert" parameterType="com.usoftchina.saas.account.po.Account">
|
|
|
insert into ac_account(username,password,salt,realname,email,mobile,type,creator_id,create_time,updater_id,update_time)
|
|
|
values (#{username,jdbcType=VARCHAR},#{password,jdbcType=VARCHAR}, #{salt,jdbcType=VARCHAR},
|
|
|
#{realname,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER},
|
|
|
- #{createTime,jdbcType=TIMESTAMP}, #{updaterId,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP})
|
|
|
+ #{creatorId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updaterId,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.usoftchina.saas.account.po.Account">
|
|
|
insert into ac_account
|
|
|
@@ -48,16 +48,16 @@
|
|
|
<if test="type != null">
|
|
|
type,
|
|
|
</if>
|
|
|
- <if test="creator_id != null">
|
|
|
+ <if test="creatorId != null">
|
|
|
creator_id,
|
|
|
</if>
|
|
|
- <if test="create_time != null">
|
|
|
+ <if test="createTime != null">
|
|
|
create_time,
|
|
|
</if>
|
|
|
- <if test="updater_id != null">
|
|
|
+ <if test="updaterId != null">
|
|
|
updater_id,
|
|
|
</if>
|
|
|
- <if test="update_time != null">
|
|
|
+ <if test="updateTime != null">
|
|
|
update_time,
|
|
|
</if>
|
|
|
</trim>
|
|
|
@@ -106,4 +106,7 @@
|
|
|
<select id="selectByEmail" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select <include refid="baseColumns"/> from ac_account where email=#{email}
|
|
|
</select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
+ delete from ac_account where id=#{id}
|
|
|
+ </delete>
|
|
|
</mapper>
|