|
|
|
@ -108,4 +108,20 @@
|
|
|
|
|
CONCAT('%',#{name},'%'))
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectAllCompanyStore" resultType="com.kiisoo.ic.generalize.entity.CompanyStoreDO">
|
|
|
|
|
select t6.name as companyName,t5.name as shopName,t5.code as shopCode,t1.id as sellerId
|
|
|
|
|
from poi_store_staff t1,
|
|
|
|
|
privilage_organizational t2,
|
|
|
|
|
privilage_organizational t6,
|
|
|
|
|
privilage_organizational_domain t3,
|
|
|
|
|
privilage_domain_entity t4,
|
|
|
|
|
poi_store t5
|
|
|
|
|
where t2.id = t3.org_id
|
|
|
|
|
and t2.parent_id = t6.id
|
|
|
|
|
and t1.store_id = t5.id
|
|
|
|
|
and t3.domain_id = t4.domain_id
|
|
|
|
|
and t4.type = 3
|
|
|
|
|
and t1.store_id = t4.entity_id
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|
|
|
|
|