|
@@ -1013,7 +1013,7 @@
|
|
|
|
|
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectRecentDemand" resultType="com.goafanti.demand.bo.DemandListBo">
|
|
<select id="selectRecentDemand" resultType="com.goafanti.demand.bo.DemandListBo">
|
|
|
- select name,employer_name as employerName,id ,release_date as releaseDate,demand_type as demandType from demand where audit_status=2 order by release_date desc LIMIT 5
|
|
|
|
|
|
|
+ select name,employer_name as employerName,id ,release_date as releaseDate,demand_type as demandType from demand where audit_status=2 order by release_date desc limit #{size}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectCompanyDemand" resultType="com.goafanti.demand.bo.DemandListBo">
|
|
<select id="selectCompanyDemand" resultType="com.goafanti.demand.bo.DemandListBo">
|
|
@@ -1022,13 +1022,13 @@
|
|
|
<select id="getUrgentDemand" resultType="com.goafanti.demand.bo.DemandListBo">
|
|
<select id="getUrgentDemand" resultType="com.goafanti.demand.bo.DemandListBo">
|
|
|
select name,release_date as releaseDate,id,problem_des as problemDes,research_type as researchType,budget_cost as fundForPersonnel,crowd_cost as fundForCrowd,demand_type as demandType,
|
|
select name,release_date as releaseDate,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
|
|
validity_period as validityPeriod
|
|
|
- from demand d where d.is_urgent=1 and d.audit_status=2 order by release_date desc
|
|
|
|
|
|
|
+ from demand d where d.is_urgent=1 and d.audit_status=2 order by release_date desc limit #{size}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="getHotDemand" resultType="com.goafanti.demand.bo.DemandListBo">
|
|
<select id="getHotDemand" resultType="com.goafanti.demand.bo.DemandListBo">
|
|
|
select name,release_date as releaseDate,id,problem_des as problemDes,research_type as researchType,budget_cost as fundForPersonnel,crowd_cost as fundForCrowd,demand_type as demandType,
|
|
select name,release_date as releaseDate,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
|
|
validity_period as validityPeriod
|
|
|
- from demand d where d.is_hot=1 and d.audit_status=2 order by release_date desc
|
|
|
|
|
|
|
+ from demand d where d.is_hot=1 and d.audit_status=2 order by release_date desc limit #{size}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="getAreaDemand" resultType="com.goafanti.demand.bo.DemandListBo">
|
|
<select id="getAreaDemand" resultType="com.goafanti.demand.bo.DemandListBo">
|