代码整理。

master
kevin jiang 6 years ago
parent 9b2783a7f4
commit e11d4f80cf

@ -34,4 +34,6 @@ public class CompanyStoreDO {
* code
*/
private String shopCode;
private Long sellerId;
}

@ -45,4 +45,11 @@ public interface PoiStoreDOMapper extends BaseMapper<PoiStore> {
List<PoiStore> selectShopByNameOrCode (@Param("name") String name);
List<PoiStore> selectShopByCustomerIds(@Param("customerIds")List<Long> customerIds);
/**
*
* @return
*/
List<CompanyStoreDO> selectAllCompanyStore();
}

@ -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>

Loading…
Cancel
Save