|
@@ -51,7 +51,9 @@
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="release_status" jdbcType="INTEGER" property="releaseStatus" />
|
|
<result column="release_status" jdbcType="INTEGER" property="releaseStatus" />
|
|
|
<result column="release_date" jdbcType="TIMESTAMP" property="releaseDate" />
|
|
<result column="release_date" jdbcType="TIMESTAMP" property="releaseDate" />
|
|
|
- <result column="deleted_sign" jdbcType="INTEGER" property="deletedSign" />
|
|
|
|
|
|
|
+ <result column="deleted_sign" jdbcType="INTEGER" property="deletedSign" />
|
|
|
|
|
+ <result column="audit_status" jdbcType="INTEGER" property="auditStatus" />
|
|
|
|
|
+ <result column="tech_broker_id" jdbcType="VARCHAR" property="techBrokerId" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
id, serial_number, data_category, name, keyword, category, summary, introduction,
|
|
id, serial_number, data_category, name, keyword, category, summary, introduction,
|
|
@@ -61,7 +63,7 @@
|
|
|
bargaining_mode, transfer_price, technical_scene, breakthrough, patent_case, awards,
|
|
bargaining_mode, transfer_price, technical_scene, breakthrough, patent_case, awards,
|
|
|
team_des, parameter, tech_plan_url, business_plan_url, org_id, org_name, org_address,
|
|
team_des, parameter, tech_plan_url, business_plan_url, org_id, org_name, org_address,
|
|
|
org_email, org_contacts, org_contacts_mobile, contacts, manager_id, salesman_id,
|
|
org_email, org_contacts, org_contacts_mobile, contacts, manager_id, salesman_id,
|
|
|
- status, create_time, release_status, release_date, deleted_sign
|
|
|
|
|
|
|
+ status, create_time, release_status, release_date, deleted_sign, audit_status, tech_broker_id
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
select
|
|
@@ -90,7 +92,7 @@
|
|
|
org_contacts, org_contacts_mobile, contacts,
|
|
org_contacts, org_contacts_mobile, contacts,
|
|
|
manager_id, salesman_id, status,
|
|
manager_id, salesman_id, status,
|
|
|
create_time, release_status, release_date,
|
|
create_time, release_status, release_date,
|
|
|
- deleted_sign)
|
|
|
|
|
|
|
+ deleted_sign, audit_status, tech_broker_id)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER}, #{dataCategory,jdbcType=INTEGER},
|
|
values (#{id,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER}, #{dataCategory,jdbcType=INTEGER},
|
|
|
#{name,jdbcType=VARCHAR}, #{keyword,jdbcType=VARCHAR}, #{category,jdbcType=INTEGER},
|
|
#{name,jdbcType=VARCHAR}, #{keyword,jdbcType=VARCHAR}, #{category,jdbcType=INTEGER},
|
|
|
#{summary,jdbcType=VARCHAR}, #{introduction,jdbcType=VARCHAR}, #{technicalPictureUrl,jdbcType=VARCHAR},
|
|
#{summary,jdbcType=VARCHAR}, #{introduction,jdbcType=VARCHAR}, #{technicalPictureUrl,jdbcType=VARCHAR},
|
|
@@ -107,7 +109,7 @@
|
|
|
#{orgContacts,jdbcType=VARCHAR}, #{orgContactsMobile,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR},
|
|
#{orgContacts,jdbcType=VARCHAR}, #{orgContactsMobile,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR},
|
|
|
#{managerId,jdbcType=VARCHAR}, #{salesmanId,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
#{managerId,jdbcType=VARCHAR}, #{salesmanId,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{releaseStatus,jdbcType=INTEGER}, #{releaseDate,jdbcType=TIMESTAMP},
|
|
#{createTime,jdbcType=TIMESTAMP}, #{releaseStatus,jdbcType=INTEGER}, #{releaseDate,jdbcType=TIMESTAMP},
|
|
|
- #{deletedSign,jdbcType=INTEGER})
|
|
|
|
|
|
|
+ #{deletedSign,jdbcType=INTEGER}, #{auditStatus,jdbcType=INTEGER}, #{techBrokerId,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.Achievement">
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.Achievement">
|
|
|
insert into achievement
|
|
insert into achievement
|
|
@@ -261,6 +263,12 @@
|
|
|
</if>
|
|
</if>
|
|
|
<if test="deletedSign != null">
|
|
<if test="deletedSign != null">
|
|
|
deleted_sign,
|
|
deleted_sign,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="auditStatus != null">
|
|
|
|
|
+ audit_status,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="techBrokerId != null">
|
|
|
|
|
+ tech_broker_id,
|
|
|
</if>
|
|
</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
@@ -413,6 +421,12 @@
|
|
|
</if>
|
|
</if>
|
|
|
<if test="deletedSign != null">
|
|
<if test="deletedSign != null">
|
|
|
#{deletedSign,jdbcType=INTEGER},
|
|
#{deletedSign,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="auditStatus != null">
|
|
|
|
|
+ #{auditStatus,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="techBrokerId != null">
|
|
|
|
|
+ #{techBrokerId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
@@ -565,6 +579,12 @@
|
|
|
</if>
|
|
</if>
|
|
|
<if test="deletedSign != null">
|
|
<if test="deletedSign != null">
|
|
|
deleted_sign = #{deletedSign,jdbcType=INTEGER},
|
|
deleted_sign = #{deletedSign,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="auditStatus != null">
|
|
|
|
|
+ audit_status = #{auditStatus,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="techBrokerId != null">
|
|
|
|
|
+ tech_broker_id = #{techBrokerId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
@@ -619,21 +639,27 @@
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
release_status = #{releaseStatus,jdbcType=INTEGER},
|
|
release_status = #{releaseStatus,jdbcType=INTEGER},
|
|
|
release_date = #{releaseDate,jdbcType=TIMESTAMP},
|
|
release_date = #{releaseDate,jdbcType=TIMESTAMP},
|
|
|
- deleted_sign = #{deletedSign,jdbcType=INTEGER}
|
|
|
|
|
|
|
+ deleted_sign = #{deletedSign,jdbcType=INTEGER},
|
|
|
|
|
+ audit_status = #{auditStatus,jdbcType=INTEGER},
|
|
|
|
|
+ tech_broker_id = #{techBrokerId,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
<select id="findManageAchievementListByPage" parameterType="String" resultType="com.goafanti.achievement.bo.AchievementListBo">
|
|
<select id="findManageAchievementListByPage" parameterType="String" resultType="com.goafanti.achievement.bo.AchievementListBo">
|
|
|
select
|
|
select
|
|
|
- id, serial_number as serialNumber, data_category as dataCategory,
|
|
|
|
|
- name, keyword, category,
|
|
|
|
|
- owner_name as ownerName, owner_type as ownerType, owner_mobile as ownerMobile,
|
|
|
|
|
- status, release_date as releaseDate
|
|
|
|
|
- from achievement
|
|
|
|
|
|
|
+ a.id, a.serial_number as serialNumber, a.data_category as dataCategory,
|
|
|
|
|
+ a.name, a.keyword, a.category,
|
|
|
|
|
+ a.owner_name as ownerName, a.owner_type as ownerType, a.owner_mobile as ownerMobile,
|
|
|
|
|
+ a.status, a.release_date as releaseDate, a.audit_status as auditStatus, ad.name as techBrokerId
|
|
|
|
|
+ from achievement a
|
|
|
|
|
+ LEFT JOIN admin ad on a.id = a.tech_broker_id
|
|
|
where deleted_sign = 0
|
|
where deleted_sign = 0
|
|
|
<if test="serialNumber != null">
|
|
<if test="serialNumber != null">
|
|
|
and serial_number = #{serialNumber,jdbcType=INTEGER}
|
|
and serial_number = #{serialNumber,jdbcType=INTEGER}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="auditStatus != null">
|
|
|
|
|
+ and audit_status = #{auditStatus,jdbcType=INTEGER}
|
|
|
|
|
+ </if>
|
|
|
<if test="name != null">
|
|
<if test="name != null">
|
|
|
and name = #{name,jdbcType=VARCHAR}
|
|
and name = #{name,jdbcType=VARCHAR}
|
|
|
</if>
|
|
</if>
|
|
@@ -672,6 +698,9 @@
|
|
|
<if test="serialNumber != null">
|
|
<if test="serialNumber != null">
|
|
|
and serial_number = #{serialNumber,jdbcType=INTEGER}
|
|
and serial_number = #{serialNumber,jdbcType=INTEGER}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="auditStatus != null">
|
|
|
|
|
+ and audit_status = #{auditStatus,jdbcType=INTEGER}
|
|
|
|
|
+ </if>
|
|
|
<if test="name != null">
|
|
<if test="name != null">
|
|
|
and name = #{name,jdbcType=VARCHAR}
|
|
and name = #{name,jdbcType=VARCHAR}
|
|
|
</if>
|
|
</if>
|
|
@@ -716,12 +745,15 @@
|
|
|
id, serial_number as serialNumber, data_category as dataCategory,
|
|
id, serial_number as serialNumber, data_category as dataCategory,
|
|
|
name, keyword, category,
|
|
name, keyword, category,
|
|
|
owner_name as ownerName, owner_type as ownerType, owner_mobile as ownerMobile,
|
|
owner_name as ownerName, owner_type as ownerType, owner_mobile as ownerMobile,
|
|
|
- status, release_date as releaseDate
|
|
|
|
|
|
|
+ status, release_date as releaseDate, audit_status as auditStatus
|
|
|
from achievement
|
|
from achievement
|
|
|
where deleted_sign = 0 and owner_id = #{ownerId,jdbcType=VARCHAR}
|
|
where deleted_sign = 0 and owner_id = #{ownerId,jdbcType=VARCHAR}
|
|
|
<if test="serialNumber != null">
|
|
<if test="serialNumber != null">
|
|
|
and serial_number = #{serialNumber,jdbcType=INTEGER}
|
|
and serial_number = #{serialNumber,jdbcType=INTEGER}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="auditStatus != null">
|
|
|
|
|
+ and audit_status = #{auditStatus,jdbcType=INTEGER}
|
|
|
|
|
+ </if>
|
|
|
<if test="name != null">
|
|
<if test="name != null">
|
|
|
and name = #{name,jdbcType=VARCHAR}
|
|
and name = #{name,jdbcType=VARCHAR}
|
|
|
</if>
|
|
</if>
|
|
@@ -760,6 +792,9 @@
|
|
|
<if test="serialNumber != null">
|
|
<if test="serialNumber != null">
|
|
|
and serial_number = #{serialNumber,jdbcType=INTEGER}
|
|
and serial_number = #{serialNumber,jdbcType=INTEGER}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="auditStatus != null">
|
|
|
|
|
+ and audit_status = #{auditStatus,jdbcType=INTEGER}
|
|
|
|
|
+ </if>
|
|
|
<if test="name != null">
|
|
<if test="name != null">
|
|
|
and name = #{name,jdbcType=VARCHAR}
|
|
and name = #{name,jdbcType=VARCHAR}
|
|
|
</if>
|
|
</if>
|