|
@@ -13,7 +13,7 @@
|
|
|
<select id="findAll" parameterType="long" resultType="com.cloudcross.ssp.model.ZoneIndustry">
|
|
|
select t_zone_industry.zone_id as zoneId, t_zone_industry.industry_id as industryId, a.name as industryName, b.name as industryFatherName
|
|
|
from t_zone_industry, t_industry a, t_industry b
|
|
|
- where t_zone_industry.industry_id = a.id and a.father_id = b.id
|
|
|
+ where t_zone_industry.industry_id = a.id and (a.father_id = b.id || (a.id = b.id and a.father_id = 0) )
|
|
|
and t_zone_industry.zone_id = #{zoneId} and t_zone_industry.status = 0
|
|
|
</select>
|
|
|
|