|
|
@@ -28,12 +28,13 @@
|
|
|
<result column="target_type" jdbcType="INTEGER" property="targetType" />
|
|
|
<result column="liquidation_status" jdbcType="INTEGER" property="liquidationStatus" />
|
|
|
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
|
|
|
+ <result column="check_no" jdbcType="VARCHAR" property="checkNo" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, prid, order_no, aid, aname, `type`, type_other, `status`, process_status, total_amount,
|
|
|
attachment_url, apply_dep, pay_dep, eaaid, create_time, district_name, user_names,
|
|
|
release_start, release_end, duration, examine_name, settlement_amount, debit_id,
|
|
|
- target_type, liquidation_status, remarks
|
|
|
+ target_type, liquidation_status, remarks, check_no
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -54,7 +55,7 @@
|
|
|
user_names, release_start, release_end,
|
|
|
duration, examine_name, settlement_amount,
|
|
|
debit_id, target_type, liquidation_status,
|
|
|
- remarks)
|
|
|
+ remarks, check_no)
|
|
|
values (#{prid,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, #{aid,jdbcType=VARCHAR},
|
|
|
#{aname,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{typeOther,jdbcType=VARCHAR},
|
|
|
#{status,jdbcType=INTEGER}, #{processStatus,jdbcType=INTEGER}, #{totalAmount,jdbcType=DECIMAL},
|
|
|
@@ -63,7 +64,7 @@
|
|
|
#{userNames,jdbcType=VARCHAR}, #{releaseStart,jdbcType=TIMESTAMP}, #{releaseEnd,jdbcType=TIMESTAMP},
|
|
|
#{duration,jdbcType=DOUBLE}, #{examineName,jdbcType=VARCHAR}, #{settlementAmount,jdbcType=DECIMAL},
|
|
|
#{debitId,jdbcType=INTEGER}, #{targetType,jdbcType=INTEGER}, #{liquidationStatus,jdbcType=INTEGER},
|
|
|
- #{remarks,jdbcType=VARCHAR})
|
|
|
+ #{remarks,jdbcType=VARCHAR}, #{checkNo,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.ExpenseAccount" useGeneratedKeys="true">
|
|
|
insert into expense_account
|
|
|
@@ -143,6 +144,9 @@
|
|
|
<if test="remarks != null">
|
|
|
remarks,
|
|
|
</if>
|
|
|
+ <if test="checkNo != null">
|
|
|
+ check_no,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="prid != null">
|
|
|
@@ -220,6 +224,9 @@
|
|
|
<if test="remarks != null">
|
|
|
#{remarks,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="checkNo != null">
|
|
|
+ #{checkNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.ExpenseAccount">
|
|
|
@@ -300,6 +307,9 @@
|
|
|
<if test="remarks != null">
|
|
|
remarks = #{remarks,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="checkNo != null">
|
|
|
+ check_no = #{checkNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -329,7 +339,8 @@
|
|
|
debit_id = #{debitId,jdbcType=INTEGER},
|
|
|
target_type = #{targetType,jdbcType=INTEGER},
|
|
|
liquidation_status = #{liquidationStatus,jdbcType=INTEGER},
|
|
|
- remarks = #{remarks,jdbcType=VARCHAR}
|
|
|
+ remarks = #{remarks,jdbcType=VARCHAR},
|
|
|
+ check_no = #{checkNo,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|