|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<select id="selectShopIdByRetail" resultType="com.kiisoo.ic.generalize.entity.CompanyStoreDO">
|
|
|
|
|
select t3.entity_id as shopId,t1.id as orgId,t1.parent_id as parentId
|
|
|
|
|
select distinct t3.entity_id as shopId,t1.id as orgId,t1.parent_id as parentId
|
|
|
|
|
from privilage_organizational t,
|
|
|
|
|
privilage_organizational t1,
|
|
|
|
|
privilage_organizational_domain t2,
|
|
|
|
@ -35,7 +35,7 @@
|
|
|
|
|
and t3.entity_id = t4.store_id
|
|
|
|
|
and t3.type = 3
|
|
|
|
|
<if test="orgId != null">
|
|
|
|
|
and t1.id = #{orgId}
|
|
|
|
|
and t.id = #{orgId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="shopId != null">
|
|
|
|
|
and t4.store_id = #{shopId}
|
|
|
|
|