|
|
@@ -22,11 +22,12 @@
|
|
|
<result column="application_url" jdbcType="VARCHAR" property="applicationUrl" />
|
|
|
<result column="delete_sign" jdbcType="INTEGER" property="deleteSign" />
|
|
|
<result column="founder" jdbcType="VARCHAR" property="founder" />
|
|
|
+ <result column="contract_id" jdbcType="VARCHAR" property="contractId" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, uid, serial_number, create_time, accept_time, principal, contact, copyright_info,
|
|
|
copyright_name, status, work_issue, comment, outsource, in_urgent, authorized_date,
|
|
|
- certificate_url, application_url, delete_sign, copyright_number, founder
|
|
|
+ certificate_url, application_url, delete_sign, copyright_number, founder, contract_id
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -44,7 +45,7 @@
|
|
|
contact, copyright_info, copyright_name,
|
|
|
status, work_issue, comment,
|
|
|
outsource, in_urgent, authorized_date,
|
|
|
- certificate_url, copyright_number, application_url, delete_sign, founder
|
|
|
+ certificate_url, copyright_number, application_url, delete_sign, founder, contract_id
|
|
|
)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER},
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{acceptTime,jdbcType=TIMESTAMP}, #{principal,jdbcType=VARCHAR},
|
|
|
@@ -53,7 +54,8 @@
|
|
|
#{outsource,jdbcType=VARCHAR}, #{inUrgent,jdbcType=INTEGER}, #{authorizedDate,jdbcType=TIMESTAMP},
|
|
|
#{certificateUrl,jdbcType=VARCHAR},
|
|
|
#{copyrightNumber,jdbcType=VARCHAR},
|
|
|
- #{applicationUrl,jdbcType=VARCHAR}, #{deleteSign,jdbcType=INTEGER}, #{founder,jdbcType=VARCHAR}
|
|
|
+ #{applicationUrl,jdbcType=VARCHAR}, #{deleteSign,jdbcType=INTEGER}, #{founder,jdbcType=VARCHAR},
|
|
|
+ #{contractId,jdbcType=VARCHAR}
|
|
|
)
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.CopyrightInfo">
|
|
|
@@ -119,6 +121,9 @@
|
|
|
<if test="founder != null">
|
|
|
founder,
|
|
|
</if>
|
|
|
+ <if test="contractId != null">
|
|
|
+ contract_id,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -181,6 +186,9 @@
|
|
|
<if test="founder != null">
|
|
|
#{founder,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="contractId != null">
|
|
|
+ #{contractId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.CopyrightInfo">
|
|
|
@@ -243,6 +251,9 @@
|
|
|
<if test="founder != null">
|
|
|
founder = #{founder,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="contractId != null">
|
|
|
+ contract_id = #{contractId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -266,7 +277,8 @@
|
|
|
copyright_number = #{copyrightNumber,jdbcType=VARCHAR},
|
|
|
application_url = #{applicationUrl,jdbcType=VARCHAR},
|
|
|
delete_sign = #{deleteSign,jdbcType=INTEGER},
|
|
|
- founder = #{founder,jdbcType=VARCHAR}
|
|
|
+ founder = #{founder,jdbcType=VARCHAR},
|
|
|
+ contract_id = #{contractId,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|