|
|
|
@ -31,15 +31,19 @@
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectShopByCompany" resultType="com.kiisoo.ic.store.entity.PoiStore">
|
|
|
|
|
select t3.id,t3.name
|
|
|
|
|
from privilage_organizational_domain t1,
|
|
|
|
|
from privilage_organizational t,
|
|
|
|
|
privilage_organizational_domain t1,
|
|
|
|
|
privilage_domain_entity t2,
|
|
|
|
|
poi_store t3
|
|
|
|
|
where t1.domain_id = t2.domain_id
|
|
|
|
|
and t2.entity_id = t3.id
|
|
|
|
|
and t2.type = 3
|
|
|
|
|
where 1 = 1
|
|
|
|
|
<if test="orgId != null">
|
|
|
|
|
and t1.org_id = #{orgId}
|
|
|
|
|
and t.parent_id = #{orgId}
|
|
|
|
|
</if>
|
|
|
|
|
and t.level = 3
|
|
|
|
|
and t.id = t1.org_id
|
|
|
|
|
and t1.domain_id = t2.domain_id
|
|
|
|
|
and t2.entity_id = t3.id
|
|
|
|
|
and t2.type = 3
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectShopByCustomerIds" resultType="com.kiisoo.ic.store.entity.PoiStore">
|
|
|
|
|
select t3.id,t3.name
|
|
|
|
|