|
|
@@ -1119,7 +1119,7 @@
|
|
|
left join aft.field_glossory fgg on fgg.id=d.industry_category_b
|
|
|
left join branch_information branchInfo on INSTR(branchInfo.domain_name,#{1})>0
|
|
|
left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchInfo.id
|
|
|
- where audit_status=2 and info_sources=1 and dp.demand_id=d.id and dp.publish_platform=branchInfo.id and instr(dp.publish_page,#{2})
|
|
|
+ where audit_status=2 and info_sources=1 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>
|
|
|
|
|
|
@@ -1127,7 +1127,7 @@ left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchI
|
|
|
select d.name,picture_url as pictureUrl,d.id from demand d
|
|
|
left join branch_information branchInfo on INSTR(branchInfo.domain_name,#{1})>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})
|
|
|
+ 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
|
|
|
order by release_date desc limit #{0}
|
|
|
</select>
|
|
|
|
|
|
@@ -1138,7 +1138,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(branchInfo.domain_name,#{1})>0
|
|
|
left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchInfo.id
|
|
|
- where d.is_urgent=1 and d.audit_status=2 and info_sources=1 and dp.demand_id=d.id and dp.publish_platform=branchInfo.id and instr(dp.publish_page,#{2})
|
|
|
+ where d.is_urgent=1 and d.audit_status=2 and info_sources=1 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>
|
|
|
|
|
|
@@ -1148,7 +1148,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(branchInfo.domain_name,#{1})>0
|
|
|
left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchInfo.id
|
|
|
- where d.is_hot=1 and d.audit_status=2 and info_sources=1 and dp.demand_id=d.id and dp.publish_platform=branchInfo.id and instr(dp.publish_page,#{2})
|
|
|
+ where d.is_hot=1 and d.audit_status=2 and info_sources=1 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>
|
|
|
|
|
|
@@ -1156,7 +1156,7 @@ left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchI
|
|
|
select name,picture_url as pictureUrl ,problem_des as problemDes ,d.id from demand d
|
|
|
left join branch_information branchInfo on INSTR(branchInfo.domain_name,#{1})>0
|
|
|
left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchInfo.id
|
|
|
- where d.demand_type=4 and d.audit_status=2 and info_sources=1 and dp.demand_id=d.id and dp.publish_platform=branchInfo.id and instr(dp.publish_page,#{2})
|
|
|
+ where d.demand_type=4 and d.audit_status=2 and info_sources=1 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>
|
|
|
|
|
|
@@ -1166,14 +1166,14 @@ left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchI
|
|
|
left join aft.field_glossory fgg on fgg.id=d.industry_category_b
|
|
|
left join branch_information branchInfo on INSTR(branchInfo.domain_name,#{1})>0
|
|
|
left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchInfo.id
|
|
|
- where d.demand_type=2 and d.audit_status=2 and info_sources=1 and dp.demand_id=d.id and dp.publish_platform=branchInfo.id and instr(dp.publish_page,#{2})
|
|
|
+ where d.demand_type=2 and d.audit_status=2 and info_sources=1 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>
|
|
|
<select id="getFundCrowdDemand" resultType="com.goafanti.demand.bo.DemandListBo">
|
|
|
select d.name,picture_url as pictureUrl ,problem_des as problemDes ,d.id,crowd_cost as fundForCrowd,research_type as researchType from demand d
|
|
|
left join branch_information branchInfo on INSTR(branchInfo.domain_name,#{1})>0
|
|
|
left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchInfo.id
|
|
|
- where d.demand_type=3 and d.audit_status=2 and info_sources=1 and dp.demand_id=d.id and dp.publish_platform=branchInfo.id and instr(dp.publish_page,#{2})
|
|
|
+ where d.demand_type=3 and d.audit_status=2 and info_sources=1 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>
|
|
|
@@ -1182,7 +1182,7 @@ left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchI
|
|
|
select d.name,picture_url as pictureUrl ,problem_des as problemDes ,d.id,budget_cost as fundForPersonnel from demand d
|
|
|
left join branch_information branchInfo on INSTR(branchInfo.domain_name,#{1})>0
|
|
|
left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchInfo.id
|
|
|
- where d.demand_type=5 and d.audit_status=2 and info_sources=1 and dp.demand_id=d.id and dp.publish_platform=branchInfo.id and instr(dp.publish_page,#{2})
|
|
|
+ where d.demand_type=5 and d.audit_status=2 and info_sources=1 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>
|
|
|
|
|
|
@@ -1199,7 +1199,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(branchInfo.domain_name,#{1})>0
|
|
|
left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchInfo.id
|
|
|
-where d.boutique=1 and dp.demand_id=d.id and dp.publish_platform=branchInfo.id and instr(dp.publish_page,#{2})
|
|
|
+where d.boutique=1 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> <select id="listMyDemand" resultType="com.goafanti.portal.bo.DemandSearchListBo">
|
|
|
select
|