|
|
@@ -1092,7 +1092,9 @@
|
|
|
d.id,
|
|
|
d.name,
|
|
|
d.keyword,
|
|
|
+ d.validity_period as validityPeriod,
|
|
|
d.industry_category_a AS industryCategoryA,
|
|
|
+ d.picture_url as pictureUrl,
|
|
|
fg.name AS industryCategoryAS,
|
|
|
fgg.name AS industryCategorBS,
|
|
|
d.budget_cost AS budgetCost,
|
|
|
@@ -1120,6 +1122,8 @@
|
|
|
d.id,
|
|
|
d.name,
|
|
|
d.keyword,
|
|
|
+ d.picture_url as pictureUrl,
|
|
|
+ d.validity_period as validityPeriod,
|
|
|
d.industry_category_a AS industryCategoryA,
|
|
|
fg.name AS industryCategoryAS,
|
|
|
fgg.name AS industryCategoryBS,
|
|
|
@@ -1178,6 +1182,7 @@
|
|
|
b.name as industryCategory,
|
|
|
a.picture_url as pictureUrl,
|
|
|
a.problem_des as sketch,
|
|
|
+ a.data_category as ownerType,
|
|
|
a.employer_name as personName
|
|
|
from
|
|
|
demand a
|
|
|
@@ -1205,4 +1210,51 @@
|
|
|
where
|
|
|
a.boutique = 1 and a.audit_status =3 and a.industry_category_a = #{industryCategoryA,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
+
|
|
|
+ <!-- 查询需求列表 -->
|
|
|
+ <select id="selectDemandList" parameterType="java.lang.Integer"
|
|
|
+ resultType="com.goafanti.demand.bo.DemandListBo">
|
|
|
+ SELECT
|
|
|
+ d.id,
|
|
|
+ d.name,
|
|
|
+ d.keyword,
|
|
|
+ d.fixed_budget as fixedbudget,
|
|
|
+ d.demand_type as demandType,
|
|
|
+ d.picture_url as pictureUrl,
|
|
|
+ d.industry_category_a AS industryCategoryA,
|
|
|
+ fg.name AS
|
|
|
+ industryCategoryAS,
|
|
|
+ fgg.name AS industryCategorBS,
|
|
|
+ d.budget_cost AS
|
|
|
+ budgetCost,
|
|
|
+ d.problem_des AS problemDes,
|
|
|
+ dg.name AS
|
|
|
+ province,
|
|
|
+ dgg.name AS
|
|
|
+ city,
|
|
|
+ interest.id as interestId,
|
|
|
+ d.employer_name as
|
|
|
+ employerName,
|
|
|
+ u.lvl as
|
|
|
+ level
|
|
|
+ FROM
|
|
|
+ demand d
|
|
|
+ LEFT JOIN `user` u on u.id = d.employer_id
|
|
|
+ LEFT JOIN
|
|
|
+ user_identity ui on ui.uid = d.employer_id
|
|
|
+ LEFT JOIN district_glossory
|
|
|
+ dg ON dg.id = ui.province
|
|
|
+ LEFT JOIN district_glossory dgg ON dgg.id =
|
|
|
+ ui.city
|
|
|
+ LEFT JOIN field_glossory fg on fg.id = d.industry_category_a
|
|
|
+ LEFT JOIN field_glossory fgg on fgg.id = d.industry_category_b
|
|
|
+ LEFT
|
|
|
+ JOIN demand_interest interest on interest.demand_id = d.id and
|
|
|
+ interest.uid = #{uid,jdbcType=VARCHAR}
|
|
|
+ WHERE
|
|
|
+ <if test="_parameter!= null">
|
|
|
+ d.boutique = #{_parameter,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ limit 0,30
|
|
|
+ </select>
|
|
|
</mapper>
|