Преглед изворни кода

feat(station): 添加提示语和盈利字段

- 在AppletStationSearchVO中新增提示语字段tips
- 在FirmInfo实体中新增当前盈利currentProfit和累计盈利totalProfit字段
- 在ThirdPartyStationInfoMapper.xml中添加tips字段映射及查询字段station_tips支持
- 更新相关映射确保提示语数据正确加载和保存
SheepHy пре 20 часа
родитељ
комит
292d64d386

+ 8 - 0
src/main/java/com/zsElectric/boot/business/model/entity/FirmInfo.java

@@ -45,6 +45,14 @@ public class FirmInfo extends BaseEntity {
      * 累计充值
      */
     private BigDecimal totalRecharge;
+    /**
+     * 当前盈利
+     */
+    private BigDecimal currentProfit;
+    /**
+     * 累计盈利
+     */
+    private BigDecimal totalProfit;
     /**
      * 创建人
      */

+ 3 - 0
src/main/java/com/zsElectric/boot/business/model/vo/applet/AppletStationSearchVO.java

@@ -31,6 +31,9 @@ public class AppletStationSearchVO implements Serializable {
     @Schema(description = "地址")
     private String address;
 
+    @Schema(description = "提示语")
+    private String tips;
+
     @Schema(description = "距离(km)")
     private BigDecimal distance;
 

+ 2 - 0
src/main/resources/mapper/business/ThirdPartyStationInfoMapper.xml

@@ -645,6 +645,7 @@
         <result property="stationId" column="station_id"/>
         <result property="stationName" column="station_name"/>
         <result property="address" column="address"/>
+        <result property="tips" column="station_tips"/>
         <result property="distance" column="distance"/>
         <result property="fastIdleCount" column="fast_idle_count"/>
         <result property="fastTotalCount" column="fast_total_count"/>
@@ -658,6 +659,7 @@
             tpsi.id AS station_id,
             tpsi.station_name,
             tpsi.address,
+            tpsi.station_tips,
             <if test="longitude != null and latitude != null">
             ROUND(
                 ST_Distance_Sphere(