|
|
@@ -40,6 +40,7 @@
|
|
|
<result column="audit_status" property="auditStatus" jdbcType="INTEGER" />
|
|
|
<result column="tech_broker_id" property="techBrokerId" jdbcType="VARCHAR" />
|
|
|
<result column="boutique" property="boutique" jdbcType="INTEGER" />
|
|
|
+ <result column="uid" property="uid" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, serial_number, data_category, name, keyword, info_sources, industry_category_a,
|
|
|
@@ -1179,17 +1180,14 @@
|
|
|
<select id="findBoutiqueListByPage" parameterType="java.lang.Integer" resultType="com.goafanti.portal.bo.BoutiqueListBo">
|
|
|
select
|
|
|
a.id,a.name,
|
|
|
- b.name as industryCategory,
|
|
|
+ b.name as industryCatalog,
|
|
|
a.picture_url as pictureUrl,
|
|
|
a.problem_des as sketch,
|
|
|
a.data_category as ownerType,
|
|
|
a.employer_name as personName
|
|
|
from
|
|
|
demand a
|
|
|
- left join
|
|
|
- field_glossory b
|
|
|
- on
|
|
|
- a.industry_category_a = b.id
|
|
|
+ left join field_glossory b on a.industry_category_a = b.id
|
|
|
where
|
|
|
a.boutique = 1 and a.audit_status =3 and a.deleted_sign=0
|
|
|
<if test="industryCategoryA != null and industryCategoryA != ''">
|
|
|
@@ -1218,7 +1216,7 @@
|
|
|
</select>
|
|
|
|
|
|
<!-- 查询需求列表 -->
|
|
|
- <select id="selectDemandList" parameterType="java.lang.Integer"
|
|
|
+ <select id="selectDemandList"
|
|
|
resultType="com.goafanti.demand.bo.DemandListBo">
|
|
|
SELECT
|
|
|
d.id,
|
|
|
@@ -1239,7 +1237,6 @@
|
|
|
province,
|
|
|
dgg.name AS
|
|
|
city,
|
|
|
- interest.id as interestId,
|
|
|
d.employer_name as
|
|
|
employerName,
|
|
|
u.lvl as
|
|
|
@@ -1255,13 +1252,53 @@
|
|
|
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>
|
|
|
+ <!-- 猜你喜欢 -->
|
|
|
+ <select id="selectCsutomerLike"
|
|
|
+ resultType="com.goafanti.demand.bo.DemandListBo">
|
|
|
+ SELECT
|
|
|
+ d.id,
|
|
|
+ d.name,
|
|
|
+ d.keyword,
|
|
|
+ d.data_category as dataCategory,
|
|
|
+ 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,
|
|
|
+ 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
|
|
|
+ where
|
|
|
+ interest.uid = #{_parameter,jdbcType=INTEGER}
|
|
|
+ limit 0,4
|
|
|
+ </select>
|
|
|
+
|
|
|
</mapper>
|