增加根据管理员id查询门店接口
This commit is contained in:
@ -58,4 +58,37 @@
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
<select id="listStoresByManage" resultType="com.sczx.store.dto.CompanyStoreDTO">
|
||||
SELECT
|
||||
t.id,
|
||||
t.name,
|
||||
t.contact_person,
|
||||
t.phone,
|
||||
t.contact_person2,
|
||||
t.phone2,
|
||||
t.province_id,
|
||||
t.province_name,
|
||||
t.city_id,
|
||||
t.city_name,
|
||||
t.area_id,
|
||||
t.area_name,
|
||||
t.address,
|
||||
t.detailed_address,
|
||||
t.image,
|
||||
t.latitude,
|
||||
t.longitude,
|
||||
t.day_time,
|
||||
t.start_time,
|
||||
t.end_time,
|
||||
t.label,
|
||||
t.status
|
||||
FROM
|
||||
zc_company_store t
|
||||
JOIN
|
||||
zc_base_user_store s
|
||||
ON t.id = s.store_id
|
||||
WHERE
|
||||
s.user_id = #{managerId}
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user