|
|
@@ -36,6 +36,7 @@
|
|
|
<result property="viceCeoExamine" column="vice_ceo_examine" jdbcType="INTEGER"/>
|
|
|
<result property="cashierExamine" column="cashier_examine" jdbcType="INTEGER"/>
|
|
|
<result property="techAdminId" column="tech_admin_id" jdbcType="VARCHAR"/>
|
|
|
+ <result property="operationGuaranteeId" column="operation_guarantee_id" jdbcType="VARCHAR"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
@@ -49,7 +50,7 @@
|
|
|
retrial_finance_id,approval,approval_aid,
|
|
|
expense_finance_id,expense_retrial_finance_examine,ceo_examine,
|
|
|
cfo_examine,vice_ceo_examine,cashier_examine,
|
|
|
- tech_admin_id
|
|
|
+ tech_admin_id,operation_guarantee_id
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
@@ -75,7 +76,7 @@
|
|
|
,retrial_finance_id,approval,approval_aid
|
|
|
,expense_finance_id,expense_retrial_finance_examine,ceo_examine
|
|
|
,cfo_examine,vice_ceo_examine,cashier_examine
|
|
|
- ,tech_admin_id)
|
|
|
+ ,tech_admin_id,operation_guarantee_id)
|
|
|
values (#{id,jdbcType=VARCHAR},#{createId,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP}
|
|
|
,#{updateTime,jdbcType=TIMESTAMP},#{deletedSign,jdbcType=INTEGER},#{name,jdbcType=VARCHAR}
|
|
|
,#{type,jdbcType=VARCHAR},#{managerId,jdbcType=VARCHAR},#{depNo,jdbcType=VARCHAR}
|
|
|
@@ -86,7 +87,7 @@
|
|
|
,#{retrialFinanceId,jdbcType=VARCHAR},#{approval,jdbcType=INTEGER},#{approvalAid,jdbcType=VARCHAR}
|
|
|
,#{expenseFinanceId,jdbcType=VARCHAR},#{expenseRetrialFinanceExamine,jdbcType=INTEGER},#{ceoExamine,jdbcType=INTEGER}
|
|
|
,#{cfoExamine,jdbcType=INTEGER},#{viceCeoExamine,jdbcType=INTEGER},#{cashierExamine,jdbcType=INTEGER}
|
|
|
- ,#{techAdminId,jdbcType=VARCHAR})
|
|
|
+ ,#{techAdminId,jdbcType=VARCHAR},#{operationGuaranteeId,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.Department" useGeneratedKeys="true">
|
|
|
insert into department
|
|
|
@@ -122,6 +123,7 @@
|
|
|
<if test="viceCeoExamine != null">vice_ceo_examine,</if>
|
|
|
<if test="cashierExamine != null">cashier_examine,</if>
|
|
|
<if test="techAdminId != null">tech_admin_id,</if>
|
|
|
+ <if test="operationGuaranteeId != null">operation_guarantee_id,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id,jdbcType=VARCHAR},</if>
|
|
|
@@ -155,6 +157,7 @@
|
|
|
<if test="viceCeoExamine != null">#{viceCeoExamine,jdbcType=INTEGER},</if>
|
|
|
<if test="cashierExamine != null">#{cashierExamine,jdbcType=INTEGER},</if>
|
|
|
<if test="techAdminId != null">#{techAdminId,jdbcType=VARCHAR},</if>
|
|
|
+ <if test="operationGuaranteeId != null">#{operationGuaranteeId,jdbcType=VARCHAR},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.Department">
|
|
|
@@ -250,6 +253,9 @@
|
|
|
<if test="techAdminId != null">
|
|
|
tech_admin_id = #{techAdminId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="operationGuaranteeId != null">
|
|
|
+ operation_guarantee_id = #{operationGuaranteeId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -285,7 +291,8 @@
|
|
|
cfo_examine = #{cfoExamine,jdbcType=INTEGER},
|
|
|
vice_ceo_examine = #{viceCeoExamine,jdbcType=INTEGER},
|
|
|
cashier_examine = #{cashierExamine,jdbcType=INTEGER},
|
|
|
- tech_admin_id = #{techAdminId,jdbcType=VARCHAR}
|
|
|
+ tech_admin_id = #{techAdminId,jdbcType=VARCHAR},
|
|
|
+ operation_guarantee_id = #{operationGuaranteeId,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
|
@@ -613,5 +620,4 @@
|
|
|
where a.process_status =3 and a.status =0 and a.auditor = #{useFinanceId}
|
|
|
and b.id= #{newFinanceId}
|
|
|
</update>
|
|
|
-
|
|
|
</mapper>
|