|
@@ -21,12 +21,13 @@
|
|
|
<result column="state" property="state" jdbcType="INTEGER" />
|
|
<result column="state" property="state" jdbcType="INTEGER" />
|
|
|
<result column="year" property="year" jdbcType="INTEGER" />
|
|
<result column="year" property="year" jdbcType="INTEGER" />
|
|
|
<result column="record_time" property="recordTime" jdbcType="TIMESTAMP" />
|
|
<result column="record_time" property="recordTime" jdbcType="TIMESTAMP" />
|
|
|
|
|
+ <result column="large_order" property="largeOrder" jdbcType="INTEGER" />
|
|
|
<result column="deleted_sign" property="deletedSign" jdbcType="INTEGER" />
|
|
<result column="deleted_sign" property="deletedSign" jdbcType="INTEGER" />
|
|
|
</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, deleted_sign
|
|
|
|
|
|
|
+ certificate_number, certificate_url, state, year, record_time, large_order, deleted_sign
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
select
|
|
@@ -44,7 +45,7 @@
|
|
|
technical_field1, technical_field2, technical_field3,
|
|
technical_field1, technical_field2, technical_field3,
|
|
|
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, deleted_sign
|
|
|
|
|
|
|
+ certificate_url, state, year, record_time, large_order, deleted_sign
|
|
|
)
|
|
)
|
|
|
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},
|
|
@@ -52,7 +53,7 @@
|
|
|
#{basicResearchCost,jdbcType=DECIMAL}, #{accident,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
#{basicResearchCost,jdbcType=DECIMAL}, #{accident,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
#{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},
|
|
|
- #{deletedSign,jdbcType=INTEGER}
|
|
|
|
|
|
|
+ #{largeOrder,jdbcType=INTEGER}, #{deletedSign,jdbcType=INTEGER}
|
|
|
)
|
|
)
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.OrgCognizance" >
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.OrgCognizance" >
|
|
@@ -115,6 +116,9 @@
|
|
|
<if test="recordTime != null" >
|
|
<if test="recordTime != null" >
|
|
|
record_time,
|
|
record_time,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="largeOrder != null" >
|
|
|
|
|
+ large_order,
|
|
|
|
|
+ </if>
|
|
|
<if test="deletedSign != null" >
|
|
<if test="deletedSign != null" >
|
|
|
deleted_sign,
|
|
deleted_sign,
|
|
|
</if>
|
|
</if>
|
|
@@ -177,6 +181,9 @@
|
|
|
<if test="recordTime != null" >
|
|
<if test="recordTime != null" >
|
|
|
#{recordTime,jdbcType=TIMESTAMP},
|
|
#{recordTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="largeOrder != null" >
|
|
|
|
|
+ #{largeOrder,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
<if test="deletedSign != null" >
|
|
<if test="deletedSign != null" >
|
|
|
#{deletedSign,jdbcType=INTEGER},
|
|
#{deletedSign,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
@@ -239,6 +246,9 @@
|
|
|
<if test="recordTime != null" >
|
|
<if test="recordTime != null" >
|
|
|
record_time = #{recordTime,jdbcType=TIMESTAMP},
|
|
record_time = #{recordTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="largeOrder != null" >
|
|
|
|
|
+ large_order = #{largeOrder,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
<if test="deletedSign != null" >
|
|
<if test="deletedSign != null" >
|
|
|
deleted_sign = #{deletedSign,jdbcType=INTEGER},
|
|
deleted_sign = #{deletedSign,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
@@ -265,6 +275,7 @@
|
|
|
state = #{state,jdbcType=INTEGER},
|
|
state = #{state,jdbcType=INTEGER},
|
|
|
year = #{year,jdbcType=INTEGER},
|
|
year = #{year,jdbcType=INTEGER},
|
|
|
record_time = #{recordTime,jdbcType=TIMESTAMP},
|
|
record_time = #{recordTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ large_order = #{largeOrder,jdbcType=INTEGER},
|
|
|
deleted_sign = #{deletedSign,jdbcType=INTEGER}
|
|
deleted_sign = #{deletedSign,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
@@ -272,7 +283,7 @@
|
|
|
<select id="findCognizanceBoByPage" parameterType="String" resultType="com.goafanti.cognizance.bo.CognizanceBo">
|
|
<select id="findCognizanceBoByPage" parameterType="String" resultType="com.goafanti.cognizance.bo.CognizanceBo">
|
|
|
select c.id as cid, c.uid as uid, c.serial_number as serialNumber, i.location_province as locationProvince,
|
|
select c.id as cid, c.uid as uid, c.serial_number as serialNumber, i.location_province as locationProvince,
|
|
|
i.unit_name as unitName, c.contacts, c.create_time as createTime,
|
|
i.unit_name as unitName, c.contacts, c.create_time as createTime,
|
|
|
- c.comment, c.state, c.certificate_number as certificateNumber,
|
|
|
|
|
|
|
+ c.comment, c.state, c.certificate_number as certificateNumber, c.large_order as largeOrder,
|
|
|
c.issuing_date as issuingDate, c.year, a.name as consultant,
|
|
c.issuing_date as issuingDate, c.year, a.name as consultant,
|
|
|
CONCAT(i.first_contacts,' ', i.first_mobile) as firstContacts,
|
|
CONCAT(i.first_contacts,' ', i.first_mobile) as firstContacts,
|
|
|
CONCAT(i.second_contacts,' ', i.second_mobile) as secondContacts,
|
|
CONCAT(i.second_contacts,' ', i.second_mobile) as secondContacts,
|
|
@@ -335,7 +346,7 @@
|
|
|
<select id="selectCognizanceOrgInfoBoByUidAndCid" resultType="com.goafanti.cognizance.bo.CognizanceOrgInfoBo">
|
|
<select id="selectCognizanceOrgInfoBoByUidAndCid" resultType="com.goafanti.cognizance.bo.CognizanceOrgInfoBo">
|
|
|
select u.id as uid, c.id as cid, o.unit_name as unitName, o.org_code as orgCode, o.postal_address as postalAddress,
|
|
select u.id as uid, c.id as cid, o.unit_name as unitName, o.org_code as orgCode, o.postal_address as postalAddress,
|
|
|
c.contacts, c.technical_field1 as technicalField1, c.technical_field2 as technicalField2, c.technical_field3 as technicalField3,
|
|
c.contacts, c.technical_field1 as technicalField1, c.technical_field2 as technicalField2, c.technical_field3 as technicalField3,
|
|
|
- c.basic_research_cost as basicResearchCost, c.accident
|
|
|
|
|
|
|
+ c.basic_research_cost as basicResearchCost, c.accident, c.large_order as largeOrder, c.year
|
|
|
from (select id from user where id = #{0}) u
|
|
from (select id from user where id = #{0}) u
|
|
|
LEFT JOIN organization_identity o on u.id = o.uid
|
|
LEFT JOIN organization_identity o on u.id = o.uid
|
|
|
INNER JOIN org_cognizance c on c.uid = u.id and c.deleted_sign = 0 and c.id = #{1}
|
|
INNER JOIN org_cognizance c on c.uid = u.id and c.deleted_sign = 0 and c.id = #{1}
|