|
@@ -1154,7 +1154,7 @@
|
|
|
a.patent_case as patentCase, a.awards, a.team_des as teamDes, a.international_flag as internationalFlag,
|
|
a.patent_case as patentCase, a.awards, a.team_des as teamDes, a.international_flag as internationalFlag,
|
|
|
a.parameter, a.tech_plan_url as techPlanUrl, a.business_plan_url as businessPlanUrl,
|
|
a.parameter, a.tech_plan_url as techPlanUrl, a.business_plan_url as businessPlanUrl,
|
|
|
a.contacts, a.manager_id as managerId, a.salesman_id as salesmanId, f.name as field1,f2.name as field2,
|
|
a.contacts, a.manager_id as managerId, a.salesman_id as salesmanId, f.name as field1,f2.name as field2,
|
|
|
- a.create_time as createTime, a.release_status as releaseStatus,
|
|
|
|
|
|
|
+ a.create_time as createTime, a.release_status as releaseStatus, ifnull(t.x,0) as orderIntentionCount,ifnull(t2.x,0) as orderCount,
|
|
|
a.release_date as releaseDate, a.audit_status as auditStatus, a.tech_broker_id as techBrokerId,
|
|
a.release_date as releaseDate, a.audit_status as auditStatus, a.tech_broker_id as techBrokerId,
|
|
|
ui.username as iOwnerName, ui.province, ui.city, ui.area, u.email as iOwnerEmail,j.easemob_name as easemobName,
|
|
ui.username as iOwnerName, ui.province, ui.city, ui.area, u.email as iOwnerEmail,j.easemob_name as easemobName,
|
|
|
ui.id_number as iOwnerIdNumber, u.mobile as iOwnerMobile,a.boutique,ifnull(mm.effective,0) as hot,mm.cover_img as coverImg
|
|
ui.id_number as iOwnerIdNumber, u.mobile as iOwnerMobile,a.boutique,ifnull(mm.effective,0) as hot,mm.cover_img as coverImg
|
|
@@ -1164,6 +1164,12 @@
|
|
|
left join field_glossory f2 on a.field_b=f2.id
|
|
left join field_glossory f2 on a.field_b=f2.id
|
|
|
left join user_identity ui on a.owner_id = ui.uid
|
|
left join user_identity ui on a.owner_id = ui.uid
|
|
|
left join user u on u.id = a.owner_id
|
|
left join user u on u.id = a.owner_id
|
|
|
|
|
+ left join (select count(0) as x,commodity_id from t_order
|
|
|
|
|
+ where order_status != 4
|
|
|
|
|
+ group by commodity_id ) t on a.id=t.commodity_id
|
|
|
|
|
+ left join (select count(0) as x,commodity_id from t_order
|
|
|
|
|
+ where order_status != 4 and order_status != 0
|
|
|
|
|
+ group by commodity_id ) t2 on a.id=t.commodity_id
|
|
|
left join marketing_management mm on a.id = mm.product_id
|
|
left join marketing_management mm on a.id = mm.product_id
|
|
|
where a.id = #{id,jdbcType=VARCHAR}
|
|
where a.id = #{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
</select>
|
|
@@ -1716,11 +1722,14 @@
|
|
|
|
|
|
|
|
<select id="findMyAchievementListByPage" parameterType="String" resultType="com.goafanti.achievement.bo.AchievementListBo">
|
|
<select id="findMyAchievementListByPage" parameterType="String" resultType="com.goafanti.achievement.bo.AchievementListBo">
|
|
|
select
|
|
select
|
|
|
- a.id, a.boutique,a.name, a.audit_status as auditStatus,
|
|
|
|
|
|
|
+ a.id, a.boutique,a.name, a.audit_status as auditStatus,ifnull(t.x,0) as buyIntention,
|
|
|
a.release_date as releaseDate
|
|
a.release_date as releaseDate
|
|
|
from achievement a
|
|
from achievement a
|
|
|
|
|
+ left join (select count(0) as x,commodity_id from t_order
|
|
|
|
|
+ where order_status != 4
|
|
|
|
|
+ group by commodity_id ) t on a.id=t.commodity_id
|
|
|
where a.deleted_sign = 0
|
|
where a.deleted_sign = 0
|
|
|
- <if test="ownerId != null">
|
|
|
|
|
|
|
+ <if test="ownerId != null">
|
|
|
and a.owner_id = #{ownerId,jdbcType=VARCHAR}
|
|
and a.owner_id = #{ownerId,jdbcType=VARCHAR}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="page_sql!=null">
|
|
<if test="page_sql!=null">
|
|
@@ -1734,7 +1743,7 @@
|
|
|
from achievement a
|
|
from achievement a
|
|
|
where a.deleted_sign = 0
|
|
where a.deleted_sign = 0
|
|
|
<if test="ownerId != null">
|
|
<if test="ownerId != null">
|
|
|
- and i.uid = #{ownerId,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ and a.owner_id = #{ownerId,jdbcType=VARCHAR}
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|