|
|
@@ -1123,7 +1123,8 @@ left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchI
|
|
|
</select>
|
|
|
|
|
|
<select id="selectCompanyDemand" resultType="com.goafanti.demand.bo.DemandListBo">
|
|
|
- select d.name,picture_url as pictureUrl,d.id from demand d
|
|
|
+ select d.name,picture_url as pictureUrl,d.id ,data_category as dataCategory
|
|
|
+ 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})>0
|
|
|
@@ -1133,7 +1134,7 @@ left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchI
|
|
|
|
|
|
<select id="getUrgentDemand" resultType="com.goafanti.demand.bo.DemandListBo">
|
|
|
select name,release_date as releaseDate,d.id,problem_des as problemDes,research_type as researchType,budget_cost as fundForPersonnel,crowd_cost as fundForCrowd,demand_type as demandType,
|
|
|
- validity_period as validityPeriod
|
|
|
+ data_category as dataCategory,validity_period as validityPeriod
|
|
|
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
|
|
|
@@ -1143,7 +1144,7 @@ left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchI
|
|
|
|
|
|
<select id="getHotDemand" resultType="com.goafanti.demand.bo.DemandListBo">
|
|
|
select name,release_date as releaseDate,d.id,problem_des as problemDes,research_type as researchType,budget_cost as fundForPersonnel,crowd_cost as fundForCrowd,demand_type as demandType,
|
|
|
- validity_period as validityPeriod
|
|
|
+ data_category as dataCategory,validity_period as validityPeriod
|
|
|
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
|
|
|
@@ -1152,7 +1153,7 @@ left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchI
|
|
|
</select>
|
|
|
|
|
|
<select id="getAreaDemand" resultType="com.goafanti.demand.bo.DemandListBo">
|
|
|
- select name,picture_url as pictureUrl ,problem_des as problemDes ,d.id from demand d
|
|
|
+select name,picture_url as pictureUrl ,problem_des as problemDes , data_category as dataCategory,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})>0
|
|
|
@@ -1160,7 +1161,7 @@ left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchI
|
|
|
</select>
|
|
|
|
|
|
<select id="getProLearnStudyDemand" resultType="com.goafanti.demand.bo.DemandListBo">
|
|
|
- select d.name as name,picture_url as pictureUrl ,problem_des as problemDes,employer_name as employerName,d.id,fg.name as industryCategory1,fgg.name as industryCategory2 from demand d
|
|
|
+ select d.name as name,picture_url as pictureUrl ,problem_des as problemDes,employer_name as employerName,d.id,fg.name as industryCategory1,data_category as dataCategory,fgg.name as industryCategory2 from demand d
|
|
|
left join aft.field_glossory fg on fg.id=d.industry_category_a
|
|
|
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
|
|
|
@@ -1169,7 +1170,7 @@ left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchI
|
|
|
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
|
|
|
+ select d.name,picture_url as pictureUrl ,problem_des as problemDes ,d.id,crowd_cost as fundForCrowd,data_category as dataCategory,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})>0
|
|
|
@@ -1178,7 +1179,7 @@ left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchI
|
|
|
</select>
|
|
|
|
|
|
<select id="getPersonnelDemand" resultType="com.goafanti.demand.bo.DemandListBo">
|
|
|
- select d.name,picture_url as pictureUrl ,problem_des as problemDes ,d.id,budget_cost as fundForPersonnel from demand d
|
|
|
+ select d.name,picture_url as pictureUrl ,problem_des as problemDes ,d.id,data_category as dataCategory,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})>0
|
|
|
@@ -1186,7 +1187,7 @@ left join demand_publish dp on dp.demand_id=d.id and dp.publish_platform=branchI
|
|
|
</select>
|
|
|
|
|
|
<select id="getDemandDetail" resultType="com.goafanti.demand.bo.DemandListBo">
|
|
|
- select d.name,d.budget_cost as budgetCost,d.validity_period as validityPeriod,d.picture_url as pictureUrl,problem_des as problemDes,
|
|
|
+ select d.name,d.budget_cost as budgetCost,d.validity_period as validityPeriod,data_category as dataCategory,d.picture_url as pictureUrl,problem_des as problemDes,
|
|
|
fg.name as industryCategory1,fgg.name as industryCategory2
|
|
|
from demand d
|
|
|
left join aft.field_glossory fg on fg.id=d.industry_category_a
|