|
|
@@ -6,6 +6,8 @@
|
|
|
<result column="name" jdbcType="VARCHAR" property="name"/>
|
|
|
<result column="business_code" jdbcType="VARCHAR" property="businessCode"/>
|
|
|
<result column="address" jdbcType="VARCHAR" property="address"/>
|
|
|
+ <result column="logo_url" jdbcType="VARCHAR" property="logoUrl"/>
|
|
|
+ <result column="uu" jdbcType="BIGINT" property="uu"/>
|
|
|
<result column="creator_id" jdbcType="BIGINT" property="creatorId"/>
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
|
|
|
<result column="updater_id" jdbcType="BIGINT" property="updaterId"/>
|
|
|
@@ -21,9 +23,9 @@
|
|
|
</sql>
|
|
|
<insert id="insert" parameterType="com.usoftchina.saas.account.po.Company"
|
|
|
useGeneratedKeys="true" keyProperty="id">
|
|
|
- insert into ac_company(name, business_code, address, logo_url, creator_id, create_time, updater_id, update_time)
|
|
|
+ insert into ac_company(name, business_code, address, logo_url, uu, creator_id, create_time, updater_id, update_time)
|
|
|
values (#{name,jdbcType=VARCHAR}, #{businessCode,jdbcType=VARCHAR},
|
|
|
- #{address,jdbcType=VARCHAR}, #{logoUrl,jdbcType=VARCHAR}, #{creatorId,jdbcType=BIGINT},
|
|
|
+ #{address,jdbcType=VARCHAR}, #{logoUrl,jdbcType=VARCHAR}, #{uu,jdbcType=BIGINT}, #{creatorId,jdbcType=BIGINT},
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updaterId,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.usoftchina.saas.account.po.Company"
|
|
|
@@ -42,6 +44,9 @@
|
|
|
<if test="logoUrl != null">
|
|
|
logo_url,
|
|
|
</if>
|
|
|
+ <if test="uu != null">
|
|
|
+ uu,
|
|
|
+ </if>
|
|
|
<if test="creatorId != null">
|
|
|
creator_id,
|
|
|
</if>
|
|
|
@@ -68,6 +73,9 @@
|
|
|
<if test="logoUrl != null">
|
|
|
#{logoUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="uu != null">
|
|
|
+ #{uu,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
<if test="creatorId != null">
|
|
|
#{creatorId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
@@ -88,6 +96,9 @@
|
|
|
<select id="selectByName" parameterType="java.lang.String" resultMap="FullResultMap">
|
|
|
select <include refid="baseColumns"/> from ac_company where name=#{name,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
+ <select id="selectByUu" parameterType="java.lang.Long" resultMap="FullResultMap">
|
|
|
+ select <include refid="baseColumns"/> from ac_company where uu=#{uu,jdbcType=BIGINT}
|
|
|
+ </select>
|
|
|
<select id="selectByBusinessCode" parameterType="java.lang.String" resultMap="FullResultMap">
|
|
|
select <include refid="baseColumns"/> from ac_company where business_code=#{businessCode,jdbcType=VARCHAR}
|
|
|
</select>
|