|
|
@@ -775,6 +775,7 @@
|
|
|
<if test="identifyName != null">
|
|
|
and b.identify_name like concat('%',#{identifyName,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
+ order by a.release_date desc
|
|
|
<if test="page_sql!=null">
|
|
|
${page_sql}
|
|
|
</if>
|
|
|
@@ -998,7 +999,7 @@
|
|
|
</select>
|
|
|
<select id="selectRecentDemand" resultType="com.goafanti.demand.bo.DemandListBo">
|
|
|
select d.name,employer_name as employerName,d.id ,data_category as dataCategory,release_date as releaseDate,demand_type as demandType,budget_cost as budgetCost
|
|
|
- ,fg.name as industryCategory1,fgg.name as industryCategory2
|
|
|
+ ,fg.name as industryCategory1,fgg.name as industryCategory2,problem_des as problemDes
|
|
|
from demand d
|
|
|
left join aft.industry_category fg on fg.id=d.industry_category_a
|
|
|
left join aft.industry_category fgg on fgg.id=d.industry_category_b
|
|
|
@@ -1014,7 +1015,7 @@ left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchI
|
|
|
from demand d
|
|
|
left join branch_information branchInfo on INSTR(#{1},branchInfo.domain_name)>0
|
|
|
left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchInfo.id
|
|
|
- where d.data_category=1 and info_sources=1 and d.audit_status=2 and dp.demand_id=d.id and dp.publish_platform=branchInfo.id and instr(dp.publish_page,#{2})>0
|
|
|
+ where d.demand_type=0 and info_sources=1 and d.audit_status=2 and dp.demand_id=d.id and dp.publish_platform=branchInfo.id and instr(dp.publish_page,#{2})>0
|
|
|
order by release_date desc limit #{0}
|
|
|
</select>
|
|
|
|