|
@@ -25,12 +25,13 @@
|
|
|
<result column="deleted_sign" property="deletedSign" jdbcType="INTEGER" />
|
|
<result column="deleted_sign" property="deletedSign" jdbcType="INTEGER" />
|
|
|
<result column="founder" property="founder" jdbcType="VARCHAR" />
|
|
<result column="founder" property="founder" jdbcType="VARCHAR" />
|
|
|
<result column="tech_principal" property="techPrincipal" jdbcType="VARCHAR" />
|
|
<result column="tech_principal" property="techPrincipal" jdbcType="VARCHAR" />
|
|
|
|
|
+ <result column="contract_id" property="contractId" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
<sql id="Base_Column_List" >
|
|
|
id, uid, serial_number, contacts, comment, consultant, technical_field1, technical_field2,
|
|
id, uid, serial_number, contacts, comment, consultant, technical_field1, technical_field2,
|
|
|
technical_field3, basic_research_cost, accident, create_time, accept_date, issuing_date,
|
|
technical_field3, basic_research_cost, accident, create_time, accept_date, issuing_date,
|
|
|
certificate_number, certificate_url, state, year, record_time, large_order, deleted_sign,
|
|
certificate_number, certificate_url, state, year, record_time, large_order, deleted_sign,
|
|
|
- founder, tech_principal
|
|
|
|
|
|
|
+ founder, tech_principal, contract_id
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
select
|
|
@@ -49,7 +50,7 @@
|
|
|
basic_research_cost, accident, create_time,
|
|
basic_research_cost, accident, create_time,
|
|
|
accept_date, issuing_date, certificate_number,
|
|
accept_date, issuing_date, certificate_number,
|
|
|
certificate_url, state, year, record_time, large_order, deleted_sign, founder,
|
|
certificate_url, state, year, record_time, large_order, deleted_sign, founder,
|
|
|
- tech_principal
|
|
|
|
|
|
|
+ tech_principal, contract_id
|
|
|
)
|
|
)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER},
|
|
values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER},
|
|
|
#{contacts,jdbcType=INTEGER}, #{comment,jdbcType=VARCHAR}, #{consultant,jdbcType=VARCHAR},
|
|
#{contacts,jdbcType=INTEGER}, #{comment,jdbcType=VARCHAR}, #{consultant,jdbcType=VARCHAR},
|
|
@@ -58,7 +59,7 @@
|
|
|
#{acceptDate,jdbcType=TIMESTAMP}, #{issuingDate,jdbcType=TIMESTAMP}, #{certificateNumber,jdbcType=VARCHAR},
|
|
#{acceptDate,jdbcType=TIMESTAMP}, #{issuingDate,jdbcType=TIMESTAMP}, #{certificateNumber,jdbcType=VARCHAR},
|
|
|
#{certificateUrl,jdbcType=VARCHAR}, #{state,jdbcType=INTEGER}, #{year,jdbcType=INTEGER}, #{recordTime,jdbcType=TIMESTAMP},
|
|
#{certificateUrl,jdbcType=VARCHAR}, #{state,jdbcType=INTEGER}, #{year,jdbcType=INTEGER}, #{recordTime,jdbcType=TIMESTAMP},
|
|
|
#{largeOrder,jdbcType=INTEGER}, #{deletedSign,jdbcType=INTEGER}, #{founder,jdbcType=VARCHAR},
|
|
#{largeOrder,jdbcType=INTEGER}, #{deletedSign,jdbcType=INTEGER}, #{founder,jdbcType=VARCHAR},
|
|
|
- #{techPrincipal,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ #{techPrincipal,jdbcType=VARCHAR}, #{contractId,jdbcType=VARCHAR}
|
|
|
)
|
|
)
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.OrgCognizance" >
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.OrgCognizance" >
|
|
@@ -133,6 +134,9 @@
|
|
|
<if test="techPrincipal != null" >
|
|
<if test="techPrincipal != null" >
|
|
|
tech_principal,
|
|
tech_principal,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="contractId != null" >
|
|
|
|
|
+ contract_id,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
<if test="id != null" >
|
|
@@ -204,6 +208,9 @@
|
|
|
<if test="techPrincipal != null" >
|
|
<if test="techPrincipal != null" >
|
|
|
#{techPrincipal,jdbcType=VARCHAR},
|
|
#{techPrincipal,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="contractId != null" >
|
|
|
|
|
+ #{contractId,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.OrgCognizance" >
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.OrgCognizance" >
|
|
@@ -275,6 +282,9 @@
|
|
|
<if test="techPrincipal != null" >
|
|
<if test="techPrincipal != null" >
|
|
|
tech_principal = #{techPrincipal,jdbcType=VARCHAR},
|
|
tech_principal = #{techPrincipal,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="contractId != null" >
|
|
|
|
|
+ contract_id = #{contractId,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
@@ -301,7 +311,8 @@
|
|
|
large_order = #{largeOrder,jdbcType=INTEGER},
|
|
large_order = #{largeOrder,jdbcType=INTEGER},
|
|
|
deleted_sign = #{deletedSign,jdbcType=INTEGER},
|
|
deleted_sign = #{deletedSign,jdbcType=INTEGER},
|
|
|
founder = #{founder,jdbcType=VARCHAR},
|
|
founder = #{founder,jdbcType=VARCHAR},
|
|
|
- tech_principal = #{techPrincipal,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ tech_principal = #{techPrincipal,jdbcType=VARCHAR},
|
|
|
|
|
+ contract_id = #{contractId,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|