|
@@ -18,13 +18,14 @@
|
|
|
<result column="in_urgent" jdbcType="INTEGER" property="inUrgent" />
|
|
<result column="in_urgent" jdbcType="INTEGER" property="inUrgent" />
|
|
|
<result column="authorized_date" jdbcType="TIMESTAMP" property="authorizedDate" />
|
|
<result column="authorized_date" jdbcType="TIMESTAMP" property="authorizedDate" />
|
|
|
<result column="certificate_url" jdbcType="VARCHAR" property="certificateUrl" />
|
|
<result column="certificate_url" jdbcType="VARCHAR" property="certificateUrl" />
|
|
|
|
|
+ <result column="copyright_number" jdbcType="VARCHAR" property="copyrightNumber" />
|
|
|
<result column="application_url" jdbcType="VARCHAR" property="applicationUrl" />
|
|
<result column="application_url" jdbcType="VARCHAR" property="applicationUrl" />
|
|
|
<result column="delete_sign" jdbcType="INTEGER" property="deleteSign" />
|
|
<result column="delete_sign" jdbcType="INTEGER" property="deleteSign" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
id, uid, serial_number, create_time, accept_time, principal, contact, copyright_info,
|
|
id, uid, serial_number, create_time, accept_time, principal, contact, copyright_info,
|
|
|
copyright_name, status, work_issue, comment, outsource, in_urgent, authorized_date,
|
|
copyright_name, status, work_issue, comment, outsource, in_urgent, authorized_date,
|
|
|
- certificate_url, application_url, delete_sign
|
|
|
|
|
|
|
+ certificate_url, application_url, delete_sign, copyright_number
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
select
|
|
@@ -42,14 +43,16 @@
|
|
|
contact, copyright_info, copyright_name,
|
|
contact, copyright_info, copyright_name,
|
|
|
status, work_issue, comment,
|
|
status, work_issue, comment,
|
|
|
outsource, in_urgent, authorized_date,
|
|
outsource, in_urgent, authorized_date,
|
|
|
- certificate_url, application_url, delete_sign
|
|
|
|
|
|
|
+ certificate_url, copyright_number, application_url, delete_sign
|
|
|
)
|
|
)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER},
|
|
values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER},
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{acceptTime,jdbcType=TIMESTAMP}, #{principal,jdbcType=VARCHAR},
|
|
#{createTime,jdbcType=TIMESTAMP}, #{acceptTime,jdbcType=TIMESTAMP}, #{principal,jdbcType=VARCHAR},
|
|
|
#{contact,jdbcType=INTEGER}, #{copyrightInfo,jdbcType=VARCHAR}, #{copyrightName,jdbcType=VARCHAR},
|
|
#{contact,jdbcType=INTEGER}, #{copyrightInfo,jdbcType=VARCHAR}, #{copyrightName,jdbcType=VARCHAR},
|
|
|
#{status,jdbcType=INTEGER}, #{workIssue,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR},
|
|
#{status,jdbcType=INTEGER}, #{workIssue,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR},
|
|
|
#{outsource,jdbcType=VARCHAR}, #{inUrgent,jdbcType=INTEGER}, #{authorizedDate,jdbcType=TIMESTAMP},
|
|
#{outsource,jdbcType=VARCHAR}, #{inUrgent,jdbcType=INTEGER}, #{authorizedDate,jdbcType=TIMESTAMP},
|
|
|
- #{certificateUrl,jdbcType=VARCHAR}, #{applicationUrl,jdbcType=VARCHAR}, #{deleteSign,jdbcType=INTEGER}
|
|
|
|
|
|
|
+ #{certificateUrl,jdbcType=VARCHAR},
|
|
|
|
|
+ #{copyrightNumber,jdbcType=VARCHAR},
|
|
|
|
|
+ #{applicationUrl,jdbcType=VARCHAR}, #{deleteSign,jdbcType=INTEGER}
|
|
|
)
|
|
)
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.CopyrightInfo">
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.CopyrightInfo">
|
|
@@ -103,6 +106,9 @@
|
|
|
<if test="certificateUrl != null">
|
|
<if test="certificateUrl != null">
|
|
|
certificate_url,
|
|
certificate_url,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="copyrightNumber != null">
|
|
|
|
|
+ copyright_number,
|
|
|
|
|
+ </if>
|
|
|
<if test="applicationUrl != null">
|
|
<if test="applicationUrl != null">
|
|
|
application_url,
|
|
application_url,
|
|
|
</if>
|
|
</if>
|
|
@@ -159,6 +165,9 @@
|
|
|
<if test="certificateUrl != null">
|
|
<if test="certificateUrl != null">
|
|
|
#{certificateUrl,jdbcType=VARCHAR},
|
|
#{certificateUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="copyrightNumber != null">
|
|
|
|
|
+ #{copyrightNumber,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
<if test="applicationUrl != null">
|
|
<if test="applicationUrl != null">
|
|
|
#{applicationUrl,jdbcType=VARCHAR},
|
|
#{applicationUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
@@ -215,6 +224,9 @@
|
|
|
<if test="certificateUrl != null">
|
|
<if test="certificateUrl != null">
|
|
|
certificate_url = #{certificateUrl,jdbcType=VARCHAR},
|
|
certificate_url = #{certificateUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="copyrightNumber != null">
|
|
|
|
|
+ copyright_number = #{copyrightNumber,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
<if test="applicationUrl != null">
|
|
<if test="applicationUrl != null">
|
|
|
application_url = #{applicationUrl,jdbcType=VARCHAR},
|
|
application_url = #{applicationUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
@@ -241,6 +253,7 @@
|
|
|
in_urgent = #{inUrgent,jdbcType=INTEGER},
|
|
in_urgent = #{inUrgent,jdbcType=INTEGER},
|
|
|
authorized_date = #{authorizedDate,jdbcType=TIMESTAMP},
|
|
authorized_date = #{authorizedDate,jdbcType=TIMESTAMP},
|
|
|
certificate_url = #{certificateUrl,jdbcType=VARCHAR},
|
|
certificate_url = #{certificateUrl,jdbcType=VARCHAR},
|
|
|
|
|
+ copyright_number = #{copyrightNumber,jdbcType=VARCHAR},
|
|
|
application_url = #{applicationUrl,jdbcType=VARCHAR},
|
|
application_url = #{applicationUrl,jdbcType=VARCHAR},
|
|
|
delete_sign = #{deleteSign,jdbcType=INTEGER}
|
|
delete_sign = #{deleteSign,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
@@ -250,7 +263,7 @@
|
|
|
select ci.id,ci.uid,ci.serial_number as serialNumber, ci.create_time as createTime,
|
|
select ci.id,ci.uid,ci.serial_number as serialNumber, ci.create_time as createTime,
|
|
|
ci.accept_time as acceptTime, ci.contact,
|
|
ci.accept_time as acceptTime, ci.contact,
|
|
|
ci.copyright_name as copyrightName, ci.status, ci.comment, ci.outsource, ci.in_urgent as inUrgent,
|
|
ci.copyright_name as copyrightName, ci.status, ci.comment, ci.outsource, ci.in_urgent as inUrgent,
|
|
|
- ci.authorized_date as authorizedDate, ci.work_issue as workIssue,
|
|
|
|
|
|
|
+ ci.authorized_date as authorizedDate, ci.work_issue as workIssue, ci.copyright_number as copyrightNumber,
|
|
|
oi.location_province as province,oi.unit_name as unitName,
|
|
oi.location_province as province,oi.unit_name as unitName,
|
|
|
concat(oi.first_contacts,' ', oi.first_mobile) as firstContact,
|
|
concat(oi.first_contacts,' ', oi.first_mobile) as firstContact,
|
|
|
concat(oi.second_contacts,' ', oi.second_mobile) as secondContact,
|
|
concat(oi.second_contacts,' ', oi.second_mobile) as secondContact,
|
|
@@ -349,7 +362,7 @@
|
|
|
<select id="findByPrimaryKey" parameterType="java.lang.String" resultType="com.goafanti.copyright.bo.CopyrightInfoDetail">
|
|
<select id="findByPrimaryKey" parameterType="java.lang.String" resultType="com.goafanti.copyright.bo.CopyrightInfoDetail">
|
|
|
select ci.id,ci.uid,ci.serial_number as serialNumber, ci.create_time as createTime,
|
|
select ci.id,ci.uid,ci.serial_number as serialNumber, ci.create_time as createTime,
|
|
|
ci.accept_time as acceptTime, ci.contact, ci.copyright_name as copyrightName, ci.copyright_info as copyrightInfo,
|
|
ci.accept_time as acceptTime, ci.contact, ci.copyright_name as copyrightName, ci.copyright_info as copyrightInfo,
|
|
|
- ci.status, ci.comment, ci.outsource, ci.in_urgent as inUrgent, ci.authorized_date as authorizedDate,
|
|
|
|
|
|
|
+ ci.status, ci.comment, ci.outsource, ci.in_urgent as inUrgent, ci.authorized_date as authorizedDate, ci.copyright_number as copyrightNumber,
|
|
|
ci.work_issue as workIssue,ci.application_url as applicationUrl,ci.certificate_url as certificateUrl,
|
|
ci.work_issue as workIssue,ci.application_url as applicationUrl,ci.certificate_url as certificateUrl,
|
|
|
oi.location_province as province, oi.location_city as city,oi.location_area as area, oi.postcode,
|
|
oi.location_province as province, oi.location_city as city,oi.location_area as area, oi.postcode,
|
|
|
oi.unit_name as unitName, oi.org_code as orgCode,
|
|
oi.unit_name as unitName, oi.org_code as orgCode,
|