|
|
|
@ -23,7 +23,7 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="getStationInfoByStationId" resultType="cc.yunxi.domain.vo.priceproduct.ProductRespVO">
|
|
|
|
|
select id,name,photo,parent_id, 0 recovery_price from nx_product as f where exists(
|
|
|
|
|
select distinct id,name,photo,parent_id, 0 recovery_price from nx_product as f where exists(
|
|
|
|
|
select e.parent_id
|
|
|
|
|
from nx_enterprise_recycle_station as a
|
|
|
|
|
left join nx_price_recycle as b on a.id=b.recycle_id
|
|
|
|
@ -33,13 +33,13 @@
|
|
|
|
|
where a.id=#{stationId} and e.parent_id=f.id
|
|
|
|
|
)
|
|
|
|
|
union all
|
|
|
|
|
select e.id,e.name,e.photo,e.parent_id, c.recovery_price
|
|
|
|
|
select distinct e.id,e.name,e.photo,e.parent_id, c.recovery_price
|
|
|
|
|
from nx_enterprise_recycle_station as a
|
|
|
|
|
left join nx_price_recycle as b on a.id=b.recycle_id
|
|
|
|
|
left join nx_price_product as c on b.price_id= c.price_id
|
|
|
|
|
left join nx_price as d on d.id=b.price_id
|
|
|
|
|
left join nx_product as e on e.id=c.product_id
|
|
|
|
|
where a.id=#{stationId}
|
|
|
|
|
where a.id=#{stationId} and isnull(e.parent_id)=false
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="getStationInfoFirstByStationId" resultType="cc.yunxi.domain.vo.priceproduct.ProductRespVO">
|
|
|
|
|