Browse Source

新增字段

guoshuai 1 month ago
parent
commit
f210745f69

+ 1 - 1
src/main/java/com/qmrb/system/controller/CarParkStoredCardController.java

@@ -74,7 +74,7 @@ public class CarParkStoredCardController{
         // }
         List<CarParkStoredCard> list = carParkStoredCardService.list(new LambdaQueryWrapper<CarParkStoredCard>()
                 // .eq(CarParkStoredCard::getUserId,queryParams.getUserId())
-                .eq(StrUtil.isNotBlank(queryParams.getPlateNumber()),CarParkStoredCard::getPlateNumber,queryParams.getPlateNumber()));
+                .eq(CarParkStoredCard::getPlateNumber,queryParams.getPlateNumber()));
         return Result.success(list);
     }
     

+ 6 - 0
src/main/java/com/qmrb/system/pojo/entity/CarParkChargingRules.java

@@ -39,6 +39,12 @@ public class CarParkChargingRules extends BaseEntity {
      */
     @TableField("free_time")
     private Integer freeTime;
+    
+    /**
+     * 离场时长(分钟)
+     */
+    @TableField("out_interval")
+    private Integer outInterval;
 
     /**
      * 计费周期,每几分钟计一次费用

+ 6 - 0
src/main/java/com/qmrb/system/pojo/form/CarParkChargingRulesForm.java

@@ -1,5 +1,6 @@
 package com.qmrb.system.pojo.form;
 
+import com.baomidou.mybatisplus.annotation.TableField;
 import io.swagger.v3.oas.annotations.media.Schema;
 import lombok.Data;
 
@@ -54,4 +55,9 @@ public class CarParkChargingRulesForm {
     private BigDecimal firstFee;
 
 
+    /**
+     * 离场时长(分钟)
+     */
+    @Schema(description = "离场时长(分钟)",type="Integer")
+    private Integer outInterval;
 }

+ 5 - 1
src/main/java/com/qmrb/system/pojo/query/CarParkChargingRulesQuery.java

@@ -59,5 +59,9 @@ public class CarParkChargingRulesQuery extends BasePageQuery{
      */
     @Schema(description = "首周期计费金额",type="BigDecimal")
     private BigDecimal firstFee;
-
+    /**
+     * 离场时长(分钟)
+     */
+    @Schema(description = "离场时长(分钟)",type="Integer")
+    private Integer outInterval;
 }

+ 5 - 1
src/main/java/com/qmrb/system/pojo/vo/CarParkChargingRulesVO.java

@@ -56,5 +56,9 @@ public class CarParkChargingRulesVO {
      */
     @Schema(description = "首周期计费金额",type="BigDecimal")
     private BigDecimal firstFee;
-
+    /**
+     * 离场时长(分钟)
+     */
+    @Schema(description = "离场时长(分钟)",type="Integer")
+    private Integer outInterval;
 }