|
|
@@ -17,10 +17,11 @@
|
|
|
<result column="finance_id" jdbcType="VARCHAR" property="financeId" />
|
|
|
<result column="ancestors_names" jdbcType="VARCHAR" property="ancestorsNames" />
|
|
|
<result column="accountant" jdbcType="VARCHAR" property="accountant" />
|
|
|
+ <result column="remarks" jdbcType="VARCHAR" property="remarks" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, parent_id, ancestors, `name`, order_num, leader, `status`, create_by, create_time,
|
|
|
- update_by, update_time, lvl, finance_id, ancestors_names, accountant
|
|
|
+ update_by, update_time, lvl, finance_id, ancestors_names, accountant, remarks
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -37,12 +38,14 @@
|
|
|
order_num, leader, `status`,
|
|
|
create_by, create_time, update_by,
|
|
|
update_time, lvl, finance_id,
|
|
|
- ancestors_names, accountant)
|
|
|
+ ancestors_names, accountant, remarks
|
|
|
+ )
|
|
|
values (#{parentId,jdbcType=BIGINT}, #{ancestors,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
|
|
#{orderNum,jdbcType=INTEGER}, #{leader,jdbcType=VARCHAR}, #{status,jdbcType=CHAR},
|
|
|
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
|
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{lvl,jdbcType=INTEGER}, #{financeId,jdbcType=VARCHAR},
|
|
|
- #{ancestorsNames,jdbcType=VARCHAR}, #{accountant,jdbcType=VARCHAR})
|
|
|
+ #{ancestorsNames,jdbcType=VARCHAR}, #{accountant,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.AmbSystem" useGeneratedKeys="true">
|
|
|
insert into amb_system
|
|
|
@@ -89,6 +92,9 @@
|
|
|
<if test="accountant != null">
|
|
|
accountant,
|
|
|
</if>
|
|
|
+ <if test="remarks != null">
|
|
|
+ remarks,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="parentId != null">
|
|
|
@@ -133,6 +139,9 @@
|
|
|
<if test="accountant != null">
|
|
|
#{accountant,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="remarks != null">
|
|
|
+ #{remarks,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.AmbSystem">
|
|
|
@@ -180,6 +189,9 @@
|
|
|
<if test="accountant != null">
|
|
|
accountant = #{accountant,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="remarks != null">
|
|
|
+ remarks = #{remarks,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
@@ -198,7 +210,8 @@
|
|
|
lvl = #{lvl,jdbcType=INTEGER},
|
|
|
finance_id = #{financeId,jdbcType=VARCHAR},
|
|
|
ancestors_names = #{ancestorsNames,jdbcType=VARCHAR},
|
|
|
- accountant = #{accountant,jdbcType=VARCHAR}
|
|
|
+ accountant = #{accountant,jdbcType=VARCHAR},
|
|
|
+ remarks = #{remarks,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
|