|
@@ -14,6 +14,8 @@
|
|
<result property="updateBy" column="update_by"/>
|
|
<result property="updateBy" column="update_by"/>
|
|
<result property="updateTime" column="update_time"/>
|
|
<result property="updateTime" column="update_time"/>
|
|
<result property="delFlag" column="del_flag"/>
|
|
<result property="delFlag" column="del_flag"/>
|
|
|
|
+ <result property="parentId" column="parent_id"/>
|
|
|
|
+ <result property="code" column="code_"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
<insert id="insert" parameterType="com.jpsoft.smart.modules.base.entity.CompanyInfo">
|
|
<insert id="insert" parameterType="com.jpsoft.smart.modules.base.entity.CompanyInfo">
|
|
<!--
|
|
<!--
|
|
@@ -23,7 +25,7 @@
|
|
-->
|
|
-->
|
|
<![CDATA[
|
|
<![CDATA[
|
|
insert into base_company_info
|
|
insert into base_company_info
|
|
- (id_,sort_no,name_,logo_,remark_,create_by,create_time,update_by,update_time,del_flag)
|
|
|
|
|
|
+ (id_,sort_no,name_,logo_,remark_,create_by,create_time,update_by,update_time,del_flag,parent_id,code_)
|
|
values
|
|
values
|
|
(
|
|
(
|
|
#{id,jdbcType=VARCHAR}
|
|
#{id,jdbcType=VARCHAR}
|
|
@@ -36,6 +38,8 @@
|
|
,#{updateBy,jdbcType=VARCHAR}
|
|
,#{updateBy,jdbcType=VARCHAR}
|
|
,#{updateTime,jdbcType= TIMESTAMP }
|
|
,#{updateTime,jdbcType= TIMESTAMP }
|
|
,#{delFlag,jdbcType= NUMERIC }
|
|
,#{delFlag,jdbcType= NUMERIC }
|
|
|
|
+ ,#{parentId,jdbcType=VARCHAR}
|
|
|
|
+ ,#{code,jdbcType=VARCHAR}
|
|
)
|
|
)
|
|
]]>
|
|
]]>
|
|
</insert>
|
|
</insert>
|
|
@@ -72,6 +76,12 @@
|
|
<if test="delFlag!=null">
|
|
<if test="delFlag!=null">
|
|
del_flag=#{delFlag,jdbcType= NUMERIC },
|
|
del_flag=#{delFlag,jdbcType= NUMERIC },
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="parentId!=null">
|
|
|
|
+ parent_id=#{parentId,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="code!=null">
|
|
|
|
+ code_=#{code,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where id_=#{id}
|
|
where id_=#{id}
|
|
</update>
|
|
</update>
|