From b85adc42d25273a2a9f599bae9559bcc2d679ae2 Mon Sep 17 00:00:00 2001
From: sxu <602087911@qq.com>
Date: Mon, 26 May 2025 18:00:14 +0800
Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=8D=95=E4=BD=8D-=E4=BB=93?=
=?UTF-8?q?=E5=BA=93=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../core/basic/domain/BasicCarouselImage.java | 4 ++
.../supermarket/domain/SupermarketInfo.java | 7 +++
.../supermarket/SupermarketInfoMapper.xml | 54 ++++++++++---------
3 files changed, 39 insertions(+), 26 deletions(-)
diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/basic/domain/BasicCarouselImage.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/basic/domain/BasicCarouselImage.java
index 13384eb..4d00aa4 100644
--- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/basic/domain/BasicCarouselImage.java
+++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/basic/domain/BasicCarouselImage.java
@@ -1,5 +1,6 @@
package com.bonus.canteen.core.basic.domain;
+import com.bonus.canteen.core.common.utils.FileUrlUtil;
import com.bonus.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -47,5 +48,8 @@ public class BasicCarouselImage extends BaseEntity {
@ApiModelProperty(value = "用途类型(1-后台;2-APP;3-双屏消费机)")
private String usageType;
+ public String getImgUrl() {
+ return FileUrlUtil.getFileUrl(this.imgUrl);
+ }
}
diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/supermarket/domain/SupermarketInfo.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/supermarket/domain/SupermarketInfo.java
index ad7557b..614fd5b 100644
--- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/supermarket/domain/SupermarketInfo.java
+++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/supermarket/domain/SupermarketInfo.java
@@ -1,5 +1,6 @@
package com.bonus.canteen.core.supermarket.domain;
+import com.bonus.canteen.core.common.utils.FileUrlUtil;
import com.bonus.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -32,6 +33,8 @@ public class SupermarketInfo extends BaseEntity {
@ApiModelProperty(value = "区域id")
private Long areaId;
+ private String areaName;
+
/** 管理员 */
@Excel(name = "管理员")
@ApiModelProperty(value = "管理员")
@@ -113,4 +116,8 @@ public class SupermarketInfo extends BaseEntity {
private String payCodeUrl;
+ public String getImgUrl() {
+ return FileUrlUtil.getFileUrl(this.imgUrl);
+ }
+
}
diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/supermarket/SupermarketInfoMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/supermarket/SupermarketInfoMapper.xml
index d38807d..bc9f76c 100644
--- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/supermarket/SupermarketInfoMapper.xml
+++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/supermarket/SupermarketInfoMapper.xml
@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+
@@ -31,42 +32,43 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- select supermarket_id, supermarket_name, area_id, manager, contact_tel,
- warehouse_id, address, img_url, if_print_now, app_sale_mode,
- min_delivery_time, select_time_interval, delivery_cost, auto_verify_day,
- delivery_way, refund_limit_time, if_relate_drp, meal_code, if_enable_pay_code,
- pay_code_url, create_by, create_time, update_by, update_time
- from supermarket_info
+ select si.supermarket_id, si.supermarket_name, si.area_id, si.manager, si.contact_tel,
+ si.warehouse_id, si.address, si.img_url, si.if_print_now, si.app_sale_mode,
+ si.min_delivery_time, si.select_time_interval, si.delivery_cost, si.auto_verify_day,
+ si.delivery_way, si.refund_limit_time, si.if_relate_drp, si.meal_code, si.if_enable_pay_code,
+ si.pay_code_url, si.create_by, si.create_time, si.update_by, si.update_time, ba.area_name
+ from supermarket_info si
+ left join basic_area ba on si.area_id = ba.area_id