增加根据管理员id查询门店接口

This commit is contained in:
2025-07-30 14:13:55 +08:00
parent af4818102c
commit 78555a7cd2
9 changed files with 186 additions and 6 deletions

View File

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