|
@@ -487,11 +487,7 @@
|
|
|
where d.deleted_sign = 0 and d.data_category = 0
|
|
where d.deleted_sign = 0 and d.data_category = 0
|
|
|
<if test="adminId != null">
|
|
<if test="adminId != null">
|
|
|
and (u.mid = #{adminId,jdbcType=VARCHAR}
|
|
and (u.mid = #{adminId,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
|
|
- <if test="adminId != null">
|
|
|
|
|
or d.principal_id = #{adminId,jdbcType=VARCHAR}
|
|
or d.principal_id = #{adminId,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
|
|
- <if test="adminId != null">
|
|
|
|
|
or d.tech_broker_id = #{adminId,jdbcType=VARCHAR}
|
|
or d.tech_broker_id = #{adminId,jdbcType=VARCHAR}
|
|
|
)
|
|
)
|
|
|
</if>
|
|
</if>
|
|
@@ -515,6 +511,7 @@
|
|
|
</if>
|
|
</if>
|
|
|
<if test="employerName != null">
|
|
<if test="employerName != null">
|
|
|
and d.employer_name like CONCAT('%',#{employerName,jdbcType=VARCHAR},'%')
|
|
and d.employer_name like CONCAT('%',#{employerName,jdbcType=VARCHAR},'%')
|
|
|
|
|
+ and d.employer_id is null
|
|
|
</if>
|
|
</if>
|
|
|
<if test="infoSources != null">
|
|
<if test="infoSources != null">
|
|
|
and d.info_sources = #{infoSources,jdbcType=INTEGER}
|
|
and d.info_sources = #{infoSources,jdbcType=INTEGER}
|
|
@@ -558,11 +555,7 @@
|
|
|
where d.deleted_sign = 0 and d.data_category = 0
|
|
where d.deleted_sign = 0 and d.data_category = 0
|
|
|
<if test="adminId != null">
|
|
<if test="adminId != null">
|
|
|
and (u.mid = #{adminId,jdbcType=VARCHAR}
|
|
and (u.mid = #{adminId,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
|
|
- <if test="adminId != null">
|
|
|
|
|
or d.principal_id = #{adminId,jdbcType=VARCHAR}
|
|
or d.principal_id = #{adminId,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
|
|
- <if test="adminId != null">
|
|
|
|
|
or d.tech_broker_id = #{adminId,jdbcType=VARCHAR}
|
|
or d.tech_broker_id = #{adminId,jdbcType=VARCHAR}
|
|
|
)
|
|
)
|
|
|
</if>
|
|
</if>
|
|
@@ -586,6 +579,7 @@
|
|
|
</if>
|
|
</if>
|
|
|
<if test="employerName != null">
|
|
<if test="employerName != null">
|
|
|
and d.employer_name like CONCAT('%',#{employerName,jdbcType=VARCHAR},'%')
|
|
and d.employer_name like CONCAT('%',#{employerName,jdbcType=VARCHAR},'%')
|
|
|
|
|
+ and d.employer_id is null
|
|
|
</if>
|
|
</if>
|
|
|
<if test="infoSources != null">
|
|
<if test="infoSources != null">
|
|
|
and d.info_sources = #{infoSources,jdbcType=INTEGER}
|
|
and d.info_sources = #{infoSources,jdbcType=INTEGER}
|
|
@@ -659,6 +653,7 @@
|
|
|
</if>
|
|
</if>
|
|
|
<if test="employerName != null">
|
|
<if test="employerName != null">
|
|
|
and d.employer_name like CONCAT('%',#{employerName,jdbcType=VARCHAR},'%')
|
|
and d.employer_name like CONCAT('%',#{employerName,jdbcType=VARCHAR},'%')
|
|
|
|
|
+ and d.employer_id is null
|
|
|
</if>
|
|
</if>
|
|
|
<if test="infoSources != null">
|
|
<if test="infoSources != null">
|
|
|
and d.info_sources = #{infoSources,jdbcType=INTEGER}
|
|
and d.info_sources = #{infoSources,jdbcType=INTEGER}
|
|
@@ -730,6 +725,7 @@
|
|
|
</if>
|
|
</if>
|
|
|
<if test="employerName != null">
|
|
<if test="employerName != null">
|
|
|
and d.employer_name like CONCAT('%',#{employerName,jdbcType=VARCHAR},'%')
|
|
and d.employer_name like CONCAT('%',#{employerName,jdbcType=VARCHAR},'%')
|
|
|
|
|
+ and d.employer_id is null
|
|
|
</if>
|
|
</if>
|
|
|
<if test="infoSources != null">
|
|
<if test="infoSources != null">
|
|
|
and d.info_sources = #{infoSources,jdbcType=INTEGER}
|
|
and d.info_sources = #{infoSources,jdbcType=INTEGER}
|
|
@@ -1092,7 +1088,7 @@
|
|
|
u.lvl as level
|
|
u.lvl as level
|
|
|
FROM
|
|
FROM
|
|
|
demand d
|
|
demand d
|
|
|
- LEFT JOIN <![CDATA[ user ]]> u on u.id = d.employer_id
|
|
|
|
|
|
|
+ LEFT JOIN `user` u on u.id = d.employer_id
|
|
|
LEFT JOIN user_identity ui on ui.uid = 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 dg ON dg.id = ui.province
|
|
|
LEFT JOIN district_glossory dgg ON dgg.id = ui.city
|
|
LEFT JOIN district_glossory dgg ON dgg.id = ui.city
|
|
@@ -1109,8 +1105,8 @@
|
|
|
d.name,
|
|
d.name,
|
|
|
d.keyword,
|
|
d.keyword,
|
|
|
d.industry_category_a AS industryCategoryA,
|
|
d.industry_category_a AS industryCategoryA,
|
|
|
- fg.name AS industryCategoryB,
|
|
|
|
|
- fgg.name AS industryCategoryC,
|
|
|
|
|
|
|
+ fg.name AS industryCategoryAS,
|
|
|
|
|
+ fgg.name AS industryCategoryBS,
|
|
|
d.budget_cost AS budgetCost,
|
|
d.budget_cost AS budgetCost,
|
|
|
d.problem_des AS problemDes,
|
|
d.problem_des AS problemDes,
|
|
|
dg.name AS province,
|
|
dg.name AS province,
|
|
@@ -1120,7 +1116,7 @@
|
|
|
u.lvl as level
|
|
u.lvl as level
|
|
|
FROM
|
|
FROM
|
|
|
demand d
|
|
demand d
|
|
|
- LEFT JOIN <![CDATA[ user ]]> u on u.id = d.employer_id
|
|
|
|
|
|
|
+ LEFT JOIN `user` u on u.id = d.employer_id
|
|
|
LEFT JOIN organization_identity oi on oi.uid = d.employer_id
|
|
LEFT JOIN organization_identity oi on oi.uid = d.employer_id
|
|
|
LEFT JOIN district_glossory dg ON dg.id = oi.licence_province
|
|
LEFT JOIN district_glossory dg ON dg.id = oi.licence_province
|
|
|
LEFT JOIN district_glossory dgg ON dgg.id = oi.licence_city
|
|
LEFT JOIN district_glossory dgg ON dgg.id = oi.licence_city
|