|
|
@@ -106,6 +106,64 @@
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.account.po.Account">
|
|
|
+ update ac_account set
|
|
|
+ username=#{username,jdbcType=VARCHAR},
|
|
|
+ password=#{password,jdbcType=VARCHAR},
|
|
|
+ salt=#{salt,jdbcType=VARCHAR},
|
|
|
+ realname=#{realname,jdbcType=VARCHAR},
|
|
|
+ email=#{email,jdbcType=VARCHAR},
|
|
|
+ mobile=#{mobile,jdbcType=VARCHAR},
|
|
|
+ type=#{type,jdbcType=INTEGER},
|
|
|
+ enabled=#{enabled,jdbcType=BOOLEAN},
|
|
|
+ creator_id=#{creatorId,jdbcType=BIGINT},
|
|
|
+ create_time=#{createTime,jdbcType=TIMESTAMP},
|
|
|
+ updater_id=#{updaterId,jdbcType=BIGINT},
|
|
|
+ update_time=#{updateTime,jdbcType=TIMESTAMP})
|
|
|
+ where id=#{id,jdbcType=BIGINT}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.account.po.Account">
|
|
|
+ update ac_account
|
|
|
+ <set>
|
|
|
+ <if test="username != null">
|
|
|
+ username=#{username,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="password != null">
|
|
|
+ password=#{password,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="salt != null">
|
|
|
+ salt=#{salt,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="realname != null">
|
|
|
+ realname=#{realname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="email != null">
|
|
|
+ email=#{email,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="mobile != null">
|
|
|
+ mobile=#{mobile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="type != null">
|
|
|
+ type=#{type,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="enabled != null">
|
|
|
+ enabled=#{enabled,jdbcType=BOOLEAN},
|
|
|
+ </if>
|
|
|
+ <if test="creatorId != null">
|
|
|
+ creator_id=#{creatorId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time=#{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updaterId != null">
|
|
|
+ updater_id=#{updaterId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ update_time=#{updateTime,jdbcType=TIMESTAMP})
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id=#{id,jdbcType=BIGINT}
|
|
|
+ </update>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
select <include refid="baseColumns"/> from ac_account where id=#{id}
|
|
|
</select>
|