From 3f8119235ed60b8e1ceb5aaf12d7ee846aa1dcc8 Mon Sep 17 00:00:00 2001 From: xuhy <3313886187@qq.com> Date: 星期四, 08 八月 2024 13:43:12 +0800 Subject: [PATCH] 表生成 --- ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/model/TRepair.java | 54 ++++ ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TRepairServiceImpl.java | 20 + ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/model/TChargingPileNotification.java | 57 ++++ ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TRepairController.java | 4 ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TParkingRecordServiceImpl.java | 20 + ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/model/TParkingRecord.java | 84 +++++++ ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TParkingRecordService.java | 16 + ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TParkingRecordMapper.java | 16 + ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TRepairService.java | 4 ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TPartnerSiteService.java | 4 ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TFaultMessageMapper.java | 16 + ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TChargingPileNotificationService.java | 16 + ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TChargingPileNotificationServiceImpl.java | 20 + ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TPartnerSiteController.java | 4 ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TChargingPileNotificationMapper.java | 16 + ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TParkingRecordMapper.xml | 27 ++ ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TPartnerSiteMapper.xml | 18 + ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TPartnerSiteMapper.java | 16 + ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TChargingPileNotificationController.java | 4 ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/model/TPartnerSite.java | 47 +++ ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TParkingRecordController.java | 4 ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TFaultMessageController.java | 4 /dev/null | 50 ---- ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TFaultMessageMapper.xml | 22 + ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TRepairMapper.java | 4 ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TPartnerSiteServiceImpl.java | 20 + ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TFaultMessageServiceImpl.java | 20 + ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TRepairMapper.xml | 22 + ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TFaultMessageService.java | 16 + ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TChargingPileNotificationMapper.xml | 20 + ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/model/TFaultMessage.java | 53 ++++ 31 files changed, 632 insertions(+), 66 deletions(-) diff --git a/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/model/TChargingPileNotification.java b/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/model/TChargingPileNotification.java new file mode 100644 index 0000000..3fd2438 --- /dev/null +++ b/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/model/TChargingPileNotification.java @@ -0,0 +1,57 @@ +package com.ruoyi.chargingPile.api.model; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + * <p> + * + * </p> + * + * @author xiaochen + * @since 2024-08-08 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("t_charging_pile_notification") +@ApiModel(value="TChargingPileNotification对象", description="") +public class TChargingPileNotification implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "主键") + @TableId("id") + private Long id; + + @ApiModelProperty(value = "站点id") + @TableField("site_id") + private Integer siteId; + + @ApiModelProperty(value = "充电桩id") + @TableField("charging_pile_id") + private Integer chargingPileId; + + @ApiModelProperty(value = "通知内容") + @TableField("content") + private String content; + + @ApiModelProperty(value = "发送时间") + @TableField("create_time") + private LocalDateTime createTime; + + @ApiModelProperty(value = "删除状态(0=否,1=是)") + @TableField("del_flag") + @TableLogic + private Integer delFlag; + + +} diff --git a/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/model/TFaultMessage.java b/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/model/TFaultMessage.java new file mode 100644 index 0000000..236e989 --- /dev/null +++ b/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/model/TFaultMessage.java @@ -0,0 +1,53 @@ +package com.ruoyi.chargingPile.api.model; + +import com.baomidou.mybatisplus.annotation.*; +import com.ruoyi.common.core.web.domain.BasePojo; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + * <p> + * + * </p> + * + * @author xiaochen + * @since 2024-08-08 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("t_fault_message") +@ApiModel(value="TFaultMessage对象", description="") +public class TFaultMessage extends BasePojo { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "主键") + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + @ApiModelProperty(value = "用户id") + @TableField("app_user_id") + private Long appUserId; + + @ApiModelProperty(value = "站点id") + @TableField("site_id") + private Integer siteId; + + @ApiModelProperty(value = "充电桩id") + @TableField("charging_pile_id") + private Integer chargingPileId; + + @ApiModelProperty(value = "状态(1=离线,2=故障)") + @TableField("status") + private Integer status; + + @ApiModelProperty(value = "故障时间") + @TableField("down_time") + private LocalDateTime downTime; + +} diff --git a/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/model/TParkingRecord.java b/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/model/TParkingRecord.java new file mode 100644 index 0000000..2756fbb --- /dev/null +++ b/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/model/TParkingRecord.java @@ -0,0 +1,84 @@ +package com.ruoyi.chargingPile.api.model; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.time.LocalDateTime; + +/** + * <p> + * + * </p> + * + * @author xiaochen + * @since 2024-08-08 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("t_parking_record") +@ApiModel(value="TParkingRecord对象", description="") +public class TParkingRecord implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "订单id") + @TableId("id") + private Long id; + + @ApiModelProperty(value = "用户id") + @TableField("app_user_id") + private Long appUserId; + + @ApiModelProperty(value = "车牌号") + @TableField("license_plate") + private String licensePlate; + + @ApiModelProperty(value = "车辆颜色") + @TableField("vehicle_color") + private String vehicleColor; + + @ApiModelProperty(value = "充电订单id") + @TableField("charging_order_id") + private Long chargingOrderId; + + @ApiModelProperty(value = "停车场id") + @TableField("parking_lot_id") + private Integer parkingLotId; + + @ApiModelProperty(value = "入场时间") + @TableField("in_parking_time") + private LocalDateTime inParkingTime; + + @ApiModelProperty(value = "出场时间") + @TableField("out_parking_time") + private LocalDateTime outParkingTime; + + @ApiModelProperty(value = "停车时长(分钟)") + @TableField("parking_duration") + private Integer parkingDuration; + + @ApiModelProperty(value = "总费用") + @TableField("order_amount") + private BigDecimal orderAmount; + + @ApiModelProperty(value = "状态(1=已进场,2=已出场,3=已缴费出场)") + @TableField("status") + private Integer status; + + @ApiModelProperty(value = "出场方式(1=缴费出场,2=免费时长内放行)") + @TableField("out_parking_type") + private Integer outParkingType; + + @ApiModelProperty(value = "添加时间") + @TableField("create_time") + private LocalDateTime createTime; + + +} diff --git a/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/model/TPartnerSite.java b/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/model/TPartnerSite.java new file mode 100644 index 0000000..fb5482c --- /dev/null +++ b/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/model/TPartnerSite.java @@ -0,0 +1,47 @@ +package com.ruoyi.chargingPile.api.model; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.io.Serializable; + +/** + * <p> + * + * </p> + * + * @author xiaochen + * @since 2024-08-08 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("t_partner_site") +@ApiModel(value="TPartnerSite对象", description="") +public class TPartnerSite implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "主键") + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + @ApiModelProperty(value = "站点id") + @TableField("site_id") + private Integer siteId; + + @ApiModelProperty(value = "合作商id") + @TableField("partner_id") + private Integer partnerId; + + @ApiModelProperty(value = "菜单id") + @TableField("site_menu_id") + private Integer siteMenuId; + + +} diff --git a/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/model/TRepair.java b/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/model/TRepair.java new file mode 100644 index 0000000..49f609b --- /dev/null +++ b/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/model/TRepair.java @@ -0,0 +1,54 @@ +package com.ruoyi.chargingPile.api.model; + +import com.baomidou.mybatisplus.annotation.*; +import com.ruoyi.common.core.web.domain.BasePojo; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + * <p> + * + * </p> + * + * @author xiaochen + * @since 2024-08-08 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName("t_repair") +@ApiModel(value="TRepair对象", description="") +public class TRepair extends BasePojo { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "主键") + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + @ApiModelProperty(value = "报修人") + @TableField("repairman") + private String repairman; + + @ApiModelProperty(value = "站点id") + @TableField("site_id") + private Integer siteId; + + @ApiModelProperty(value = "充电桩id") + @TableField("charging_pile_id") + private Integer chargingPileId; + + @ApiModelProperty(value = "报修内容") + @TableField("content") + private String content; + + @ApiModelProperty(value = "报修时间") + @TableField("repair_time") + private LocalDateTime repairTime; + + +} diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TSiteController.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TChargingPileNotificationController.java similarity index 73% copy from ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TSiteController.java copy to ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TChargingPileNotificationController.java index cca7998..1827a95 100644 --- a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TSiteController.java +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TChargingPileNotificationController.java @@ -13,8 +13,8 @@ * @since 2024-08-08 */ @RestController -@RequestMapping("/t-site") -public class TSiteController { +@RequestMapping("/t-charging-pile-notification") +public class TChargingPileNotificationController { } diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TSiteController.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TFaultMessageController.java similarity index 78% copy from ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TSiteController.java copy to ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TFaultMessageController.java index cca7998..bfacc04 100644 --- a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TSiteController.java +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TFaultMessageController.java @@ -13,8 +13,8 @@ * @since 2024-08-08 */ @RestController -@RequestMapping("/t-site") -public class TSiteController { +@RequestMapping("/t-fault-message") +public class TFaultMessageController { } diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TSiteController.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TParkingRecordController.java similarity index 78% copy from ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TSiteController.java copy to ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TParkingRecordController.java index cca7998..dbe9c26 100644 --- a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TSiteController.java +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TParkingRecordController.java @@ -13,8 +13,8 @@ * @since 2024-08-08 */ @RestController -@RequestMapping("/t-site") -public class TSiteController { +@RequestMapping("/t-parking-record") +public class TParkingRecordController { } diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TSiteController.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TPartnerSiteController.java similarity index 79% copy from ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TSiteController.java copy to ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TPartnerSiteController.java index cca7998..ba92715 100644 --- a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TSiteController.java +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TPartnerSiteController.java @@ -13,8 +13,8 @@ * @since 2024-08-08 */ @RestController -@RequestMapping("/t-site") -public class TSiteController { +@RequestMapping("/t-partner-site") +public class TPartnerSiteController { } diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TSiteController.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TRepairController.java similarity index 81% rename from ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TSiteController.java rename to ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TRepairController.java index cca7998..e67572d 100644 --- a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TSiteController.java +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TRepairController.java @@ -13,8 +13,8 @@ * @since 2024-08-08 */ @RestController -@RequestMapping("/t-site") -public class TSiteController { +@RequestMapping("/t-repair") +public class TRepairController { } diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TChargingPileNotificationMapper.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TChargingPileNotificationMapper.java new file mode 100644 index 0000000..5cbc4f4 --- /dev/null +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TChargingPileNotificationMapper.java @@ -0,0 +1,16 @@ +package com.ruoyi.chargingPile.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.chargingPile.api.model.TChargingPileNotification; + +/** + * <p> + * Mapper 接口 + * </p> + * + * @author xiaochen + * @since 2024-08-08 + */ +public interface TChargingPileNotificationMapper extends BaseMapper<TChargingPileNotification> { + +} diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TFaultMessageMapper.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TFaultMessageMapper.java new file mode 100644 index 0000000..1b2b56e --- /dev/null +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TFaultMessageMapper.java @@ -0,0 +1,16 @@ +package com.ruoyi.chargingPile.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.chargingPile.api.model.TFaultMessage; + +/** + * <p> + * Mapper 接口 + * </p> + * + * @author xiaochen + * @since 2024-08-08 + */ +public interface TFaultMessageMapper extends BaseMapper<TFaultMessage> { + +} diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TParkingRecordMapper.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TParkingRecordMapper.java new file mode 100644 index 0000000..0876ee7 --- /dev/null +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TParkingRecordMapper.java @@ -0,0 +1,16 @@ +package com.ruoyi.chargingPile.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.chargingPile.api.model.TParkingRecord; + +/** + * <p> + * Mapper 接口 + * </p> + * + * @author xiaochen + * @since 2024-08-08 + */ +public interface TParkingRecordMapper extends BaseMapper<TParkingRecord> { + +} diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TPartnerSiteMapper.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TPartnerSiteMapper.java new file mode 100644 index 0000000..1ed9edc --- /dev/null +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TPartnerSiteMapper.java @@ -0,0 +1,16 @@ +package com.ruoyi.chargingPile.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.chargingPile.api.model.TPartnerSite; + +/** + * <p> + * Mapper 接口 + * </p> + * + * @author xiaochen + * @since 2024-08-08 + */ +public interface TPartnerSiteMapper extends BaseMapper<TPartnerSite> { + +} diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TSiteMapper.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TRepairMapper.java similarity index 62% rename from ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TSiteMapper.java rename to ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TRepairMapper.java index 34a1b07..e649544 100644 --- a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TSiteMapper.java +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/mapper/TRepairMapper.java @@ -1,7 +1,7 @@ package com.ruoyi.chargingPile.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.ruoyi.chargingPile.api.model.TSite; +import com.ruoyi.chargingPile.api.model.TRepair; /** * <p> @@ -11,6 +11,6 @@ * @author xiaochen * @since 2024-08-08 */ -public interface TSiteMapper extends BaseMapper<TSite> { +public interface TRepairMapper extends BaseMapper<TRepair> { } diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TChargingPileNotificationService.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TChargingPileNotificationService.java new file mode 100644 index 0000000..077787b --- /dev/null +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TChargingPileNotificationService.java @@ -0,0 +1,16 @@ +package com.ruoyi.chargingPile.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ruoyi.chargingPile.api.model.TChargingPileNotification; + +/** + * <p> + * 服务类 + * </p> + * + * @author xiaochen + * @since 2024-08-08 + */ +public interface TChargingPileNotificationService extends IService<TChargingPileNotification> { + +} diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TFaultMessageService.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TFaultMessageService.java new file mode 100644 index 0000000..3605b47 --- /dev/null +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TFaultMessageService.java @@ -0,0 +1,16 @@ +package com.ruoyi.chargingPile.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ruoyi.chargingPile.api.model.TFaultMessage; + +/** + * <p> + * 服务类 + * </p> + * + * @author xiaochen + * @since 2024-08-08 + */ +public interface TFaultMessageService extends IService<TFaultMessage> { + +} diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TParkingRecordService.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TParkingRecordService.java new file mode 100644 index 0000000..1a1b349 --- /dev/null +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TParkingRecordService.java @@ -0,0 +1,16 @@ +package com.ruoyi.chargingPile.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ruoyi.chargingPile.api.model.TParkingRecord; + +/** + * <p> + * 服务类 + * </p> + * + * @author xiaochen + * @since 2024-08-08 + */ +public interface TParkingRecordService extends IService<TParkingRecord> { + +} diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TSiteService.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TPartnerSiteService.java similarity index 60% copy from ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TSiteService.java copy to ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TPartnerSiteService.java index bbcca46..9393963 100644 --- a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TSiteService.java +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TPartnerSiteService.java @@ -1,7 +1,7 @@ package com.ruoyi.chargingPile.service; import com.baomidou.mybatisplus.extension.service.IService; -import com.ruoyi.chargingPile.api.model.TSite; +import com.ruoyi.chargingPile.api.model.TPartnerSite; /** * <p> @@ -11,6 +11,6 @@ * @author xiaochen * @since 2024-08-08 */ -public interface TSiteService extends IService<TSite> { +public interface TPartnerSiteService extends IService<TPartnerSite> { } diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TSiteService.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TRepairService.java similarity index 63% rename from ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TSiteService.java rename to ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TRepairService.java index bbcca46..8f2487a 100644 --- a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TSiteService.java +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/TRepairService.java @@ -1,7 +1,7 @@ package com.ruoyi.chargingPile.service; import com.baomidou.mybatisplus.extension.service.IService; -import com.ruoyi.chargingPile.api.model.TSite; +import com.ruoyi.chargingPile.api.model.TRepair; /** * <p> @@ -11,6 +11,6 @@ * @author xiaochen * @since 2024-08-08 */ -public interface TSiteService extends IService<TSite> { +public interface TRepairService extends IService<TRepair> { } diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TChargingPileNotificationServiceImpl.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TChargingPileNotificationServiceImpl.java new file mode 100644 index 0000000..f29d988 --- /dev/null +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TChargingPileNotificationServiceImpl.java @@ -0,0 +1,20 @@ +package com.ruoyi.chargingPile.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.chargingPile.api.model.TChargingPileNotification; +import com.ruoyi.chargingPile.mapper.TChargingPileNotificationMapper; +import com.ruoyi.chargingPile.service.TChargingPileNotificationService; +import org.springframework.stereotype.Service; + +/** + * <p> + * 服务实现类 + * </p> + * + * @author xiaochen + * @since 2024-08-08 + */ +@Service +public class TChargingPileNotificationServiceImpl extends ServiceImpl<TChargingPileNotificationMapper, TChargingPileNotification> implements TChargingPileNotificationService { + +} diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TFaultMessageServiceImpl.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TFaultMessageServiceImpl.java new file mode 100644 index 0000000..c5e9e20 --- /dev/null +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TFaultMessageServiceImpl.java @@ -0,0 +1,20 @@ +package com.ruoyi.chargingPile.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.chargingPile.api.model.TFaultMessage; +import com.ruoyi.chargingPile.mapper.TFaultMessageMapper; +import com.ruoyi.chargingPile.service.TFaultMessageService; +import org.springframework.stereotype.Service; + +/** + * <p> + * 服务实现类 + * </p> + * + * @author xiaochen + * @since 2024-08-08 + */ +@Service +public class TFaultMessageServiceImpl extends ServiceImpl<TFaultMessageMapper, TFaultMessage> implements TFaultMessageService { + +} diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TParkingRecordServiceImpl.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TParkingRecordServiceImpl.java new file mode 100644 index 0000000..12d98fa --- /dev/null +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TParkingRecordServiceImpl.java @@ -0,0 +1,20 @@ +package com.ruoyi.chargingPile.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.chargingPile.api.model.TParkingRecord; +import com.ruoyi.chargingPile.mapper.TParkingRecordMapper; +import com.ruoyi.chargingPile.service.TParkingRecordService; +import org.springframework.stereotype.Service; + +/** + * <p> + * 服务实现类 + * </p> + * + * @author xiaochen + * @since 2024-08-08 + */ +@Service +public class TParkingRecordServiceImpl extends ServiceImpl<TParkingRecordMapper, TParkingRecord> implements TParkingRecordService { + +} diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TPartnerSiteServiceImpl.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TPartnerSiteServiceImpl.java new file mode 100644 index 0000000..564eaa1 --- /dev/null +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TPartnerSiteServiceImpl.java @@ -0,0 +1,20 @@ +package com.ruoyi.chargingPile.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.chargingPile.api.model.TPartnerSite; +import com.ruoyi.chargingPile.mapper.TPartnerSiteMapper; +import com.ruoyi.chargingPile.service.TPartnerSiteService; +import org.springframework.stereotype.Service; + +/** + * <p> + * 服务实现类 + * </p> + * + * @author xiaochen + * @since 2024-08-08 + */ +@Service +public class TPartnerSiteServiceImpl extends ServiceImpl<TPartnerSiteMapper, TPartnerSite> implements TPartnerSiteService { + +} diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TRepairServiceImpl.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TRepairServiceImpl.java new file mode 100644 index 0000000..c2a86c8 --- /dev/null +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TRepairServiceImpl.java @@ -0,0 +1,20 @@ +package com.ruoyi.chargingPile.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.chargingPile.api.model.TRepair; +import com.ruoyi.chargingPile.mapper.TRepairMapper; +import com.ruoyi.chargingPile.service.TRepairService; +import org.springframework.stereotype.Service; + +/** + * <p> + * 服务实现类 + * </p> + * + * @author xiaochen + * @since 2024-08-08 + */ +@Service +public class TRepairServiceImpl extends ServiceImpl<TRepairMapper, TRepair> implements TRepairService { + +} diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TSiteServiceImpl.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TSiteServiceImpl.java deleted file mode 100644 index 9fba9fc..0000000 --- a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TSiteServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.ruoyi.chargingPile.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.ruoyi.chargingPile.api.model.TSite; -import com.ruoyi.chargingPile.mapper.TSiteMapper; -import com.ruoyi.chargingPile.service.TSiteService; -import org.springframework.stereotype.Service; - -/** - * <p> - * 服务实现类 - * </p> - * - * @author xiaochen - * @since 2024-08-08 - */ -@Service -public class TSiteServiceImpl extends ServiceImpl<TSiteMapper, TSite> implements TSiteService { - -} diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TChargingPileNotificationMapper.xml b/ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TChargingPileNotificationMapper.xml new file mode 100644 index 0000000..031175c --- /dev/null +++ b/ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TChargingPileNotificationMapper.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.ruoyi.chargingPile.mapper.TChargingPileNotificationMapper"> + + <!-- 通用查询映射结果 --> + <resultMap id="BaseResultMap" type="com.ruoyi.chargingPile.api.model.TChargingPileNotification"> + <id column="id" property="id" /> + <result column="site_id" property="siteId" /> + <result column="charging_pile_id" property="chargingPileId" /> + <result column="content" property="content" /> + <result column="create_time" property="createTime" /> + <result column="del_flag" property="delFlag" /> + </resultMap> + + <!-- 通用查询结果列 --> + <sql id="Base_Column_List"> + id, site_id, charging_pile_id, content, create_time, del_flag + </sql> + +</mapper> diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TFaultMessageMapper.xml b/ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TFaultMessageMapper.xml new file mode 100644 index 0000000..fc21cd6 --- /dev/null +++ b/ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TFaultMessageMapper.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.ruoyi.chargingPile.mapper.TFaultMessageMapper"> + + <!-- 通用查询映射结果 --> + <resultMap id="BaseResultMap" type="com.ruoyi.chargingPile.api.model.TFaultMessage"> + <id column="id" property="id" /> + <result column="app_user_id" property="appUserId" /> + <result column="site_id" property="siteId" /> + <result column="charging_pile_id" property="chargingPileId" /> + <result column="status" property="status" /> + <result column="down_time" property="downTime" /> + <result column="create_time" property="createTime" /> + <result column="del_flag" property="delFlag" /> + </resultMap> + + <!-- 通用查询结果列 --> + <sql id="Base_Column_List"> + id, app_user_id, site_id, charging_pile_id, status, down_time, create_time, del_flag + </sql> + +</mapper> diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TParkingRecordMapper.xml b/ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TParkingRecordMapper.xml new file mode 100644 index 0000000..1ef7f1a --- /dev/null +++ b/ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TParkingRecordMapper.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.ruoyi.chargingPile.mapper.TParkingRecordMapper"> + + <!-- 通用查询映射结果 --> + <resultMap id="BaseResultMap" type="com.ruoyi.chargingPile.api.model.TParkingRecord"> + <id column="id" property="id" /> + <result column="app_user_id" property="appUserId" /> + <result column="license_plate" property="licensePlate" /> + <result column="vehicle_color" property="vehicleColor" /> + <result column="charging_order_id" property="chargingOrderId" /> + <result column="parking_lot_id" property="parkingLotId" /> + <result column="in_parking_time" property="inParkingTime" /> + <result column="out_parking_time" property="outParkingTime" /> + <result column="parking_duration" property="parkingDuration" /> + <result column="order_amount" property="orderAmount" /> + <result column="status" property="status" /> + <result column="out_parking_type" property="outParkingType" /> + <result column="create_time" property="createTime" /> + </resultMap> + + <!-- 通用查询结果列 --> + <sql id="Base_Column_List"> + id, app_user_id, license_plate, vehicle_color, charging_order_id, parking_lot_id, in_parking_time, out_parking_time, parking_duration, order_amount, status, out_parking_type, create_time + </sql> + +</mapper> diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TPartnerSiteMapper.xml b/ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TPartnerSiteMapper.xml new file mode 100644 index 0000000..b5b1a7f --- /dev/null +++ b/ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TPartnerSiteMapper.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.ruoyi.chargingPile.mapper.TPartnerSiteMapper"> + + <!-- 通用查询映射结果 --> + <resultMap id="BaseResultMap" type="com.ruoyi.chargingPile.api.model.TPartnerSite"> + <id column="id" property="id" /> + <result column="site_id" property="siteId" /> + <result column="partner_id" property="partnerId" /> + <result column="site_menu_id" property="siteMenuId" /> + </resultMap> + + <!-- 通用查询结果列 --> + <sql id="Base_Column_List"> + id, site_id, partner_id, site_menu_id + </sql> + +</mapper> diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TRepairMapper.xml b/ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TRepairMapper.xml new file mode 100644 index 0000000..526a1ba --- /dev/null +++ b/ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TRepairMapper.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.ruoyi.chargingPile.mapper.TRepairMapper"> + + <!-- 通用查询映射结果 --> + <resultMap id="BaseResultMap" type="com.ruoyi.chargingPile.api.model.TRepair"> + <id column="id" property="id" /> + <result column="repairman" property="repairman" /> + <result column="site_id" property="siteId" /> + <result column="charging_pile_id" property="chargingPileId" /> + <result column="content" property="content" /> + <result column="repair_time" property="repairTime" /> + <result column="create_time" property="createTime" /> + <result column="del_flag" property="delFlag" /> + </resultMap> + + <!-- 通用查询结果列 --> + <sql id="Base_Column_List"> + id, repairman, site_id, charging_pile_id, content, repair_time, create_time, del_flag + </sql> + +</mapper> diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TSiteMapper.xml b/ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TSiteMapper.xml deleted file mode 100644 index 0e4e881..0000000 --- a/ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TSiteMapper.xml +++ /dev/null @@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> -<mapper namespace="com.ruoyi.chargingPile.mapper.TSiteMapper"> - - <!-- 通用查询映射结果 --> - <resultMap id="BaseResultMap" type="com.ruoyi.chargingPile.api.model.TSite"> - <id column="id" property="id" /> - <result column="partner_id" property="partnerId" /> - <result column="code" property="code" /> - <result column="name" property="name" /> - <result column="site_type" property="siteType" /> - <result column="business_category" property="businessCategory" /> - <result column="status" property="status" /> - <result column="construction_site" property="constructionSite" /> - <result column="img_url" property="imgUrl" /> - <result column="province" property="province" /> - <result column="province_code" property="provinceCode" /> - <result column="city" property="city" /> - <result column="city_code" property="cityCode" /> - <result column="districts" property="districts" /> - <result column="districts_code" property="districtsCode" /> - <result column="lon" property="lon" /> - <result column="lat" property="lat" /> - <result column="address" property="address" /> - <result column="country_code" property="countryCode" /> - <result column="phone" property="phone" /> - <result column="service_phone" property="servicePhone" /> - <result column="guide" property="guide" /> - <result column="start_service_time" property="startServiceTime" /> - <result column="end_service_time" property="endServiceTime" /> - <result column="service_description" property="serviceDescription" /> - <result column="vehicle_description" property="vehicleDescription" /> - <result column="parking_space" property="parkingSpace" /> - <result column="rate_description" property="rateDescription" /> - <result column="space_charge_explain" property="spaceChargeExplain" /> - <result column="accounting_strategy_id" property="accountingStrategyId" /> - <result column="establishment_time" property="establishmentTime" /> - <result column="sort" property="sort" /> - <result column="remark" property="remark" /> - <result column="create_time" property="createTime" /> - <result column="del_flag" property="delFlag" /> - <result column="mark" property="mark" /> - </resultMap> - - <!-- 通用查询结果列 --> - <sql id="Base_Column_List"> - id, partner_id, code, `name`, site_type, business_category, status, construction_site, img_url, province, province_code, city, city_code, districts, districts_code, lon, lat, address, country_code, phone, service_phone, guide, start_service_time, end_service_time, service_description, vehicle_description, parking_space, rate_description, space_charge_explain, accounting_strategy_id, establishment_time, sort, remark, create_time, del_flag, mark - </sql> - -</mapper> -- Gitblit v1.7.1