|
|
@@ -1048,11 +1048,15 @@
|
|
|
d.serial_number as serialNumber, d.data_category as dataCategory, d.industry_category_a as industryCategoryA,
|
|
|
d.industry_category_b as industryCategoryB, d.demand_type as demandType, d.budget_cost as budgetCost,
|
|
|
d.problem_des as problemDes, d.release_date as releaseDate, d.employer_name as employerName,d.boutique,
|
|
|
- u.lvl as level
|
|
|
+ u.lvl as level,dp.publish_page,dp.publish_platform,dp.publish_client,dp.if_top,dp.top_number,dp.show_number
|
|
|
from demand d
|
|
|
+ right join demand_publish dp on d.id=dp.demand_id
|
|
|
left join user u on u.id = d.employer_id
|
|
|
where d.deleted_sign = 0 and d.status = 0
|
|
|
- <if test="keyword != null">
|
|
|
+ and dp.publish_client=0
|
|
|
+ and dp.publish_page='W02'
|
|
|
+ and dp.publish_platform='112461d9-2120-4809-b709-3cb5f5acfcc3'
|
|
|
+ <if test="keyword != null">
|
|
|
and d.keyword like "%"#{keyword,jdbcType=VARCHAR}"%"
|
|
|
</if>
|
|
|
<if test="industryCategoryA != null">
|
|
|
@@ -1077,10 +1081,10 @@
|
|
|
and d.release_status = 1
|
|
|
and d.audit_status = 3
|
|
|
<if test="dateSort == 0">
|
|
|
- order by d.release_date asc
|
|
|
+ order by dp.if_top,dp.top_number,dp.show_number,d.release_date asc
|
|
|
</if>
|
|
|
<if test="dateSort == 1">
|
|
|
- order by d.release_date desc
|
|
|
+ order by dp.if_top asc,dp.top_number asc,dp.show_number asc,d.release_date desc
|
|
|
</if>
|
|
|
<if test="page_sql!=null">
|
|
|
${page_sql}
|
|
|
@@ -1091,7 +1095,12 @@
|
|
|
select
|
|
|
count(1)
|
|
|
from demand d
|
|
|
- where d.deleted_sign = 0 and d.status = 0
|
|
|
+ right join demand_publish dp on d.id=dp.demand_id
|
|
|
+ left join user u on u.id = d.employer_id
|
|
|
+ where d.deleted_sign = 0 and d.status = 0
|
|
|
+ and dp.publish_client=0
|
|
|
+ and dp.publish_page='W02'
|
|
|
+ and dp.publish_platform='112461d9-2120-4809-b709-3cb5f5acfcc3'
|
|
|
<if test="keyword != null">
|
|
|
and d.keyword like "%"#{keyword,jdbcType=VARCHAR}"%"
|
|
|
</if>
|