|
|
@@ -37,6 +37,8 @@
|
|
|
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
|
|
<result column="principal_id" property="principalId" jdbcType="VARCHAR" />
|
|
|
<result column="deleted_sign" property="deletedSign" jdbcType="INTEGER" />
|
|
|
+ <result column="audit_status" property="auditStatus" jdbcType="INTEGER" />
|
|
|
+ <result column="tech_broker_id" property="techBrokerId" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, serial_number, data_category, name, keyword, info_sources, industry_category_a,
|
|
|
@@ -44,7 +46,8 @@
|
|
|
picture_url, text_file_url, video_url, fixed_budget, fixed_cycle, people_number,
|
|
|
fixed_scheme, cost_escrow, budget_cost, validity_period, employer_id, employer_name,
|
|
|
employer_address, employer_contacts, employer_contacts_mobile, employer_contacts_mailbox,
|
|
|
- contacts, status, release_status, release_date, create_time, principal_id, deleted_sign
|
|
|
+ contacts, status, release_status, release_date, create_time, principal_id, deleted_sign,
|
|
|
+ audit_status, tech_broker_id
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
|
@@ -68,7 +71,7 @@
|
|
|
employer_address, employer_contacts, employer_contacts_mobile,
|
|
|
employer_contacts_mailbox, contacts, status,
|
|
|
release_status, release_date, create_time,
|
|
|
- principal_id, deleted_sign)
|
|
|
+ principal_id, deleted_sign, audit_status, tech_broker_id)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER}, #{dataCategory,jdbcType=INTEGER},
|
|
|
#{name,jdbcType=VARCHAR}, #{keyword,jdbcType=VARCHAR}, #{infoSources,jdbcType=INTEGER},
|
|
|
#{industryCategoryA,jdbcType=INTEGER}, #{industryCategoryB,jdbcType=INTEGER}, #{industryCategoryC,jdbcType=INTEGER},
|
|
|
@@ -80,7 +83,8 @@
|
|
|
#{employerAddress,jdbcType=VARCHAR}, #{employerContacts,jdbcType=VARCHAR}, #{employerContactsMobile,jdbcType=VARCHAR},
|
|
|
#{employerContactsMailbox,jdbcType=VARCHAR}, #{contacts,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
|
|
|
#{releaseStatus,jdbcType=INTEGER}, #{releaseDate,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
- #{principalId,jdbcType=VARCHAR}, #{deletedSign,jdbcType=INTEGER})
|
|
|
+ #{principalId,jdbcType=VARCHAR}, #{deletedSign,jdbcType=INTEGER}, #{auditStatus,jdbcType=INTEGER},
|
|
|
+ #{techBrokerId,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.Demand" >
|
|
|
insert into demand
|
|
|
@@ -190,6 +194,12 @@
|
|
|
<if test="deletedSign != null" >
|
|
|
deleted_sign,
|
|
|
</if>
|
|
|
+ <if test="auditStatus != null" >
|
|
|
+ audit_status,
|
|
|
+ </if>
|
|
|
+ <if test="techBrokerId != null" >
|
|
|
+ tech_broker_id,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
@@ -297,6 +307,12 @@
|
|
|
<if test="deletedSign != null" >
|
|
|
#{deletedSign,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="auditStatus != null" >
|
|
|
+ #{auditStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="techBrokerId != null" >
|
|
|
+ #{techBrokerId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.Demand" >
|
|
|
@@ -404,6 +420,12 @@
|
|
|
<if test="deletedSign != null" >
|
|
|
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>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -442,7 +464,9 @@
|
|
|
release_date = #{releaseDate,jdbcType=TIMESTAMP},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
principal_id = #{principalId,jdbcType=VARCHAR},
|
|
|
- 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}
|
|
|
</update>
|
|
|
|
|
|
@@ -452,11 +476,11 @@
|
|
|
d.name, d.keyword, d.info_sources as infoSources,
|
|
|
ui.username, d.demand_type as demandType, d.validity_period as validityPeriod,
|
|
|
d.employer_name as employerName, ui.province, d.status,
|
|
|
- d.release_status as releaseStatus, d.release_date as releaseDate, a.name as principalId,
|
|
|
- d.employer_id as employerId
|
|
|
+ d.release_status as releaseStatus, d.release_date as releaseDate, a.name as techBrokerId,
|
|
|
+ d.employer_id as employerId, d.audit_status as auditStatus
|
|
|
from demand d
|
|
|
LEFT JOIN user_identity ui on d.employer_id = ui.uid
|
|
|
- LEFT JOIN admin a on a.id = d.principal_id
|
|
|
+ LEFT JOIN admin a on a.id = d.tech_broker_id
|
|
|
<if test="mid != null">
|
|
|
LEFT JOIN user u on d.employer_id = u.id
|
|
|
</if>
|
|
|
@@ -467,9 +491,15 @@
|
|
|
<if test="principal != null">
|
|
|
and d.principal_id = #{principal,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
+ <if test="techBroker != null">
|
|
|
+ and d.tech_broker_id = #{techBroker,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
<if test="province != null">
|
|
|
and ui.province = #{province,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
+ <if test="auditStatus != null">
|
|
|
+ and d.audit_status = #{auditStatus,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
<if test="serialNumber != null">
|
|
|
and d.serial_number = #{serialNumber,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
@@ -517,7 +547,7 @@
|
|
|
count(1)
|
|
|
from demand d
|
|
|
LEFT JOIN user_identity ui on d.employer_id = ui.uid
|
|
|
- LEFT JOIN admin a on a.id = d.principal_id
|
|
|
+ LEFT JOIN admin a on a.id = d.tech_broker_id
|
|
|
<if test="mid != null">
|
|
|
LEFT JOIN user u on d.employer_id = u.id
|
|
|
</if>
|
|
|
@@ -528,12 +558,18 @@
|
|
|
<if test="principal != null">
|
|
|
and d.principal_id = #{principal,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
+ <if test="techBroker != null">
|
|
|
+ and d.tech_broker_id = #{techBroker,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
<if test="serialNumber != null">
|
|
|
and d.serial_number = #{serialNumber,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="province != null">
|
|
|
and ui.province = #{province,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
+ <if test="auditStatus != null">
|
|
|
+ and d.audit_status = #{auditStatus,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
<if test="name != null">
|
|
|
and d.name = #{name,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
@@ -575,11 +611,11 @@
|
|
|
d.name, d.keyword, d.info_sources as infoSources,
|
|
|
oi.unit_name as username, d.demand_type as demandType, d.validity_period as validityPeriod,
|
|
|
d.employer_name as employerName, oi.licence_province as province, d.status,
|
|
|
- d.release_status as releaseStatus, d.release_date as releaseDate, a.name as principalId,
|
|
|
- d.employer_id as employerId
|
|
|
+ d.release_status as releaseStatus, d.release_date as releaseDate, a.name as techBrokerId,
|
|
|
+ d.employer_id as employerId, d.audit_status as auditStatus
|
|
|
from demand d
|
|
|
LEFT JOIN organization_identity oi on d.employer_id = oi.uid
|
|
|
- LEFT JOIN admin a on a.id = d.principal_id
|
|
|
+ LEFT JOIN admin a on a.id = d.tech_broker_id
|
|
|
<if test="mid != null">
|
|
|
LEFT JOIN user u on d.employer_id = u.id
|
|
|
</if>
|
|
|
@@ -590,12 +626,18 @@
|
|
|
<if test="principal != null">
|
|
|
and d.principal_id = #{principal,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
+ <if test="techBroker != null">
|
|
|
+ and d.tech_broker_id = #{techBroker,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
<if test="province != null">
|
|
|
and oi.licence_province = #{province,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="serialNumber != null">
|
|
|
and d.serial_number = #{serialNumber,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
+ <if test="auditStatus != null">
|
|
|
+ and d.audit_status = #{auditStatus,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
<if test="name != null">
|
|
|
and d.name = #{name,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
@@ -640,7 +682,7 @@
|
|
|
count(1)
|
|
|
from demand d
|
|
|
LEFT JOIN organization_identity oi on d.employer_id = oi.uid
|
|
|
- LEFT JOIN admin a on a.id = d.principal_id
|
|
|
+ LEFT JOIN admin a on a.id = d.tech_broker_id
|
|
|
<if test="mid != null">
|
|
|
LEFT JOIN user u on d.employer_id = u.id
|
|
|
</if>
|
|
|
@@ -651,9 +693,15 @@
|
|
|
<if test="principal != null">
|
|
|
and d.principal_id = #{principal,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
+ <if test="techBroker != null">
|
|
|
+ and d.tech_broker_id = #{techBroker,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
<if test="serialNumber != null">
|
|
|
and d.serial_number = #{serialNumber,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
+ <if test="auditStatus != null">
|
|
|
+ and d.audit_status = #{auditStatus,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
<if test="province != null">
|
|
|
and oi.licence_province = #{province,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
@@ -703,7 +751,7 @@
|
|
|
d.picture_url as pictureUrl, d.text_file_url as textFileUrl, d.video_url as videoUrl,
|
|
|
d.budget_cost as budgetCost, d.fixed_cycle as fixedCycle, d.people_number as peopleNumber,
|
|
|
d.fixed_scheme as fixedScheme, d.cost_escrow as costEscrow, d.employer_id as employerId,
|
|
|
- info.postal_address as address, u.email as mailbox, u.mobile as mobile
|
|
|
+ info.postal_address as address, u.email as mailbox, u.mobile as mobile, d.audit_status as auditStatus
|
|
|
from demand d
|
|
|
left join user_identity ui on ui.uid = d.employer_id
|
|
|
left join user_info info on info.uid = d.employer_id
|
|
|
@@ -723,7 +771,7 @@
|
|
|
d.picture_url as pictureUrl, d.text_file_url as textFileUrl, d.video_url as videoUrl,
|
|
|
d.budget_cost as budgetCost, d.fixed_cycle as fixedCycle, d.people_number as peopleNumber,
|
|
|
d.fixed_scheme as fixedScheme, d.cost_escrow as costEscrow, d.employer_id as employerId,
|
|
|
- oi.postal_address as address, u.email as mailbox, d.contacts
|
|
|
+ oi.postal_address as address, u.email as mailbox, d.contacts, d.audit_status as auditStatus
|
|
|
from demand d
|
|
|
left join organization_identity oi on oi.uid = d.employer_id
|
|
|
left join user u on u.id = d.employer_id
|