|
|
@@ -353,25 +353,25 @@
|
|
|
</select>
|
|
|
<select id="selectMarketList" resultType="com.goafanti.marketing.bo.MarketingManagementBo">
|
|
|
<if test="category == 1"> <!-- 成果 -->
|
|
|
- select
|
|
|
- x.id as productId,
|
|
|
- x.owner_type as ownerType,
|
|
|
- x.summary,
|
|
|
- x.name,
|
|
|
- x.technical_picture_url as coverImg,
|
|
|
- bi.platform_url
|
|
|
+ select
|
|
|
+ x.id as productId,x.owner_type as ownerType,x.summary,x.introduction,x.name,x.field_a,fg.name as fieldA,
|
|
|
+ x.field_b,fg1.name as fieldB,x.technical_picture_url as coverImg,bi.domain_name
|
|
|
from
|
|
|
achievement x
|
|
|
right join achievement_publish ap on ap.achievement_id=x.id
|
|
|
left join branch_information bi on bi.id=ap.publish_platform
|
|
|
+left join field_glossory fg on x.field_a=fg.id
|
|
|
+left join field_glossory fg1 on x.field_b=fg1.id
|
|
|
where x.audit_status = 3
|
|
|
and x.deleted_sign = 0
|
|
|
and ap.publish_client='0'
|
|
|
and ap.publish_page='W01'
|
|
|
- and bi.platform_url like "%"#{url,jdbcType=VARCHAR}"%"
|
|
|
+ and bi.domain_name like "%"#{url,jdbcType=VARCHAR}"%"
|
|
|
</if>
|
|
|
<if test="category == 2"> <!-- 需求 -->
|
|
|
- select x.id as productId,x.data_category as ownerType,x.name,x.picture_url as coverImg,x.problem_des
|
|
|
+ select x.id as productId,x.data_category as ownerType,x.name,
|
|
|
+ x.picture_url as coverImg,x.problem_des as problemDes,
|
|
|
+ x.urgent_days as urgentDays,x.urgent_money as urgentMoney,bi.domain_name
|
|
|
from demand x
|
|
|
right join demand_publish dp on dp.demand_id=x.id
|
|
|
left join branch_information bi on bi.id=dp.publish_platform
|
|
|
@@ -383,21 +383,36 @@ where x.audit_status = 3
|
|
|
</if>
|
|
|
<if test="category == 7"> <!-- 智者 -->
|
|
|
select
|
|
|
- u.id,i.username,ua.ability_label as abilityLabel,
|
|
|
- u.introduction as achievement,u.head_portrait_url as headPortraitUrl,u.type,i.expert
|
|
|
- from `user` u
|
|
|
- left join user_ability ua on u.id=ua.uid
|
|
|
- left join user_career c on u.id=c.uid
|
|
|
- left join user_identity i on u.id=i.uid
|
|
|
- right join expert_publish ep on ep.expert_id=u.id
|
|
|
- left join branch_information bi on bi.id=ep.publish_platform
|
|
|
- WHERE
|
|
|
- u.type = 0 and
|
|
|
- i.expert = 1
|
|
|
- and ep.publish_client='0'
|
|
|
- and ep.publish_page='W01'
|
|
|
- and bi.domain_name like "%"#{url,jdbcType=VARCHAR}"%"
|
|
|
-
|
|
|
- </if>
|
|
|
+ u.id,i.username,i.work_unit as workUnit,i.professional_title as professionalTitle,u.introduction,
|
|
|
+ u.head_portrait_url as headPortraitUrl,u.type,i.expert,bi.domain_name,ifnull(o.x,0) as reservationCount
|
|
|
+ from `user` u
|
|
|
+ left join user_ability ua on u.id=ua.uid
|
|
|
+ left join user_career c on u.id=c.uid
|
|
|
+ left join user_identity i on u.id=i.uid
|
|
|
+ left join (select count(0) as x,seller_id from t_order
|
|
|
+ where order_status != 4
|
|
|
+ group by seller_id ) o on u.id=o.seller_id
|
|
|
+ right join expert_publish ep on ep.expert_id=u.id
|
|
|
+ left join branch_information bi on bi.id=ep.publish_platform
|
|
|
+ WHERE
|
|
|
+ u.type = 0
|
|
|
+ and i.expert = 1
|
|
|
+ and ep.publish_client='0'
|
|
|
+ and ep.publish_page='W01'
|
|
|
+ and bi.domain_name like "%"#{url,jdbcType=VARCHAR}"%"
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectHotProject" resultType="com.goafanti.common.model.BusinessProject">
|
|
|
+ select
|
|
|
+ id, create_id as createId, create_time as createTime, update_time as updateTime, delete_sign as deleteSign, bname, cid, price, offset,
|
|
|
+ activity_price as activityPrice, activity_flag as activityFlag, member_price as memberPrice, introduce, status, country, province,
|
|
|
+ city, district, principal_id as principalId, Value_effect as ValueEffect, client_size as clientSize, max_logo as maxLogo, min_logo as minLogo, boutique,
|
|
|
+ project_url as projectUrl, first_payment as firstPayment
|
|
|
+ FROM business_project
|
|
|
+ where boutique=1
|
|
|
+ <if test="pSize != null">
|
|
|
+ LIMIT 0, #{pSize,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
</mapper>
|