|
|
@@ -30,7 +30,7 @@
|
|
|
<result column="employer_contacts" property="employerContacts" jdbcType="VARCHAR" />
|
|
|
<result column="employer_contacts_mobile" property="employerContactsMobile" jdbcType="VARCHAR" />
|
|
|
<result column="employer_contacts_mailbox" property="employerContactsMailbox" jdbcType="VARCHAR" />
|
|
|
- <result column="contacts" property="contacts" jdbcType="INTEGER" />
|
|
|
+ <result column="contacts" property="contacts" jdbcType="VARCHAR" />
|
|
|
<result column="status" property="status" jdbcType="INTEGER" />
|
|
|
<result column="release_status" property="releaseStatus" jdbcType="INTEGER" />
|
|
|
<result column="release_date" property="releaseDate" jdbcType="TIMESTAMP" />
|
|
|
@@ -68,7 +68,7 @@
|
|
|
d.employer_address AS employerAddress, d.employer_contacts AS employerContacts, d.employer_contacts_mobile AS employerContactsMobile, d.employer_contacts_mailbox AS employerContactsMailbox,
|
|
|
d.contacts, d.status, d.release_status AS releaseStatus, d.release_date AS releaseDate , d.create_time AS createTime, d.principal_id AS principalId, d.deleted_sign AS deletedSign,
|
|
|
d.audit_status AS auditStatus, d.tech_broker_id AS techBrokerId,d.boutique,d.urgent_money AS urgentMoney,d.urgent_days as urgentDays
|
|
|
- ,ifnull(t.x,0) as orderIntentionCount,ifnull(t2.x,0) as orderCount,j.easemob_name as easemobName
|
|
|
+ ,ifnull(t.x,0) as orderIntentionCount,ifnull(t2.x,0) as orderCount,j.easemob_name as easemobName,d.contacts,d.contact_mobile as contactMobile
|
|
|
from demand d
|
|
|
left join jpush_easemob_account j on d.employer_id=j.uid
|
|
|
left join (select count(0) as x,tl.commodity_id from t_order tr
|
|
|
@@ -97,7 +97,7 @@
|
|
|
employer_address, employer_contacts, employer_contacts_mobile,
|
|
|
employer_contacts_mailbox, contacts, status,
|
|
|
release_status, release_date, create_time,
|
|
|
- principal_id, deleted_sign, audit_status, tech_broker_id,boutique,remark,urgent_days,urgent_money)
|
|
|
+ principal_id, deleted_sign, audit_status, tech_broker_id,boutique,remark,urgent_days,urgent_money,contact_mobile)
|
|
|
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},
|
|
|
@@ -107,10 +107,10 @@
|
|
|
#{fixedScheme,jdbcType=VARCHAR}, #{costEscrow,jdbcType=DECIMAL}, #{budgetCost,jdbcType=DECIMAL},
|
|
|
#{validityPeriod,jdbcType=TIMESTAMP}, #{employerId,jdbcType=VARCHAR}, #{employerName,jdbcType=VARCHAR},
|
|
|
#{employerAddress,jdbcType=VARCHAR}, #{employerContacts,jdbcType=VARCHAR}, #{employerContactsMobile,jdbcType=VARCHAR},
|
|
|
- #{employerContactsMailbox,jdbcType=VARCHAR}, #{contacts,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
|
|
|
+ #{employerContactsMailbox,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
|
#{releaseStatus,jdbcType=INTEGER}, #{releaseDate,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
#{principalId,jdbcType=VARCHAR}, #{deletedSign,jdbcType=INTEGER}, #{auditStatus,jdbcType=INTEGER},
|
|
|
- #{techBrokerId,jdbcType=VARCHAR},#{boutique,jdbcType=INTEGER},#{remark,jdbcType=VARCHAR},#{urgentDays,jdbcType=VARCHAR},#{urgentMoney,jdbcType=VARCHAR})
|
|
|
+ #{techBrokerId,jdbcType=VARCHAR},#{boutique,jdbcType=INTEGER},#{remark,jdbcType=VARCHAR},#{urgentDays,jdbcType=VARCHAR},#{urgentMoney,jdbcType=VARCHAR},#{contactMobile,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.Demand" >
|
|
|
insert into demand
|
|
|
@@ -438,7 +438,11 @@
|
|
|
employer_contacts_mailbox = #{employerContactsMailbox,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="contacts != null" >
|
|
|
- contacts = #{contacts,jdbcType=INTEGER},
|
|
|
+ contacts = #{contacts,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="contactMobile != null" >
|
|
|
+ contact_mobile = #{contactMobile ,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
status = #{status,jdbcType=INTEGER},
|
|
|
@@ -474,7 +478,7 @@
|
|
|
urgent_days = #{urgentDays,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="urgentMoney != null" >
|
|
|
- urgent_money = #{urgentMoney,jdbcType=VARCHAR},
|
|
|
+ urgent_money = #{urgentMoney,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
@@ -894,7 +898,7 @@
|
|
|
d.employer_address as employerAddress, d.employer_contacts_mobile as employerContactsMobile,
|
|
|
d.employer_contacts_mailbox as employerContactsMailbox, d.employer_name as employerName,
|
|
|
d.tech_broker_id as techBrokerId, u.mobile as contactsName,d.urgent_days as urgentDays,d.urgent_money as urgentMoney,
|
|
|
- d.boutique,ifnull(mm.effective,0) as hot,mm.cover_img as coverImg,d.remark
|
|
|
+ d.boutique,ifnull(mm.effective,0) as hot,mm.cover_img as coverImg,d.remark,d.contacts,d.contact_mobile as contactMobile
|
|
|
from demand d
|
|
|
left join user_identity ui on ui.uid = d.employer_id
|
|
|
left join user u on u.id = d.employer_id
|
|
|
@@ -904,7 +908,8 @@
|
|
|
|
|
|
|
|
|
<select id="selectOrgDemandDetail" parameterType="java.lang.String" resultType="com.goafanti.demand.bo.DemandManageDetailBo">
|
|
|
- select
|
|
|
+
|
|
|
+select
|
|
|
d.id, d.serial_number as serialNumber, d.data_category as dataCategory,
|
|
|
d.name, d.keyword, d.info_sources as infoSources,
|
|
|
oi.unit_name as username, d.demand_type as demandType, d.validity_period as validityPeriod,
|
|
|
@@ -918,7 +923,7 @@
|
|
|
d.tech_broker_id as techBrokerId,d.remark,d.urgent_days as urgentDays,d.urgent_money as urgentMoney,
|
|
|
d.employer_address as employerAddress, d.employer_contacts_mobile as employerContactsMobile,
|
|
|
d.employer_contacts_mailbox as employerContactsMailbox, d.employer_name as employerName,
|
|
|
- d.boutique,ifnull(mm.effective,0) as hot,mm.cover_img as coverImg
|
|
|
+ d.boutique,ifnull(mm.effective,0) as hot,mm.cover_img as coverImg,d.contacts,d.contact_mobile as contactMobile
|
|
|
from demand d
|
|
|
left join organization_identity oi on oi.uid = d.employer_id
|
|
|
left join user u on u.id = d.employer_id
|