- 在 AppSiteMapper.xml 中添加 type 字段的查询 - 在 PlaceVO 和 SearchVO 中添加 type 属性,用于表示门店类型 - 门店类型:0 表示学校,1表示体育馆包场
@@ -26,6 +26,8 @@ public class PlaceVO extends Page<PlaceVO> {
private String address;
@Schema(description = "图片")
private String cover;
+ @Schema(description = "门店类型 0学校 1体育馆包场 ")
+ private int type;
@Schema(description = "距离(KM)")
private double km;
@Schema(description = "是否有票")
@@ -159,6 +159,8 @@ public class SearchVO{
private String comments;
@Schema(description = "地址")
@@ -10,7 +10,8 @@
b.category_id,
b.latitude,
b.longitude,
- a.cover
+ a.cover,
+ a.type
FROM
nm_site_place a
LEFT JOIN nm_site b ON a.site_id = b.id
@@ -40,6 +41,7 @@
a.address,
a.cover,
a.category_id,
+ a.type,
CASE
WHEN EXISTS (
SELECT SUM(inventory)