|
|
@@ -32,11 +32,12 @@
|
|
|
SELECT LAST_INSERT_ID() AS ID
|
|
|
</selectKey>
|
|
|
insert into ac_company(name, business_code, address, logo_url, creator_id, create_time, updater_id, update_time,
|
|
|
- tel, fax, signet, uu)
|
|
|
+ tel, fax, signet, uu, type)
|
|
|
values (#{name,jdbcType=VARCHAR}, #{businessCode,jdbcType=VARCHAR},
|
|
|
#{address,jdbcType=VARCHAR}, #{logoUrl,jdbcType=VARCHAR}, #{creatorId,jdbcType=BIGINT},
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updaterId,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- #{tel,jdbcType=VARCHAR}, #{fax,jdbcType=VARCHAR}, #{signet,jdbcType=VARCHAR}, #{uu,jdbcType=VARCHAR})
|
|
|
+ #{tel,jdbcType=VARCHAR}, #{fax,jdbcType=VARCHAR}, #{signet,jdbcType=VARCHAR}, #{uu,jdbcType=VARCHAR},
|
|
|
+ #{type,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.usoftchina.saas.account.po.Company"
|
|
|
useGeneratedKeys="true" keyProperty="id">
|
|
|
@@ -140,6 +141,9 @@
|
|
|
<if test="signet != null">
|
|
|
signet = #{signet,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="type != null">
|
|
|
+ type = #{type,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id}
|
|
|
</update>
|