From ebba99f4bcb5cec24ecb5d38673a8d6b64904b0e Mon Sep 17 00:00:00 2001
From: yuyang <2265829957@qq.com>
Date: Tue, 20 Jul 2021 10:30:25 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9C=BA=E7=AB=99=E6=A8=A1=E5=9D=97=E6=9C=8D?=
=?UTF-8?q?=E5=8A=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
xhpc-modules/xhpc-charging-station/pom.xml | 112 ++++++++
.../charging/station/XhpcChargingStation.java | 32 +++
.../XhpcChargingStationController.java | 100 +++++++
.../station/domain/XhpcChargingStation.java | 249 ++++++++++++++++++
.../mapper/XhpcChargingStationMapper.java | 63 +++++
.../service/IXhpcChargingStationService.java | 63 +++++
.../XhpcChargingStationServiceImpl.java | 98 +++++++
.../src/main/resources/banner.txt | 10 +
.../src/main/resources/bootstrap.yml | 25 ++
.../src/main/resources/logback.xml | 74 ++++++
.../mapper/XhpcChargingStationMapper.xml | 151 +++++++++++
11 files changed, 977 insertions(+)
create mode 100644 xhpc-modules/xhpc-charging-station/pom.xml
create mode 100644 xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/XhpcChargingStation.java
create mode 100644 xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/controller/XhpcChargingStationController.java
create mode 100644 xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/domain/XhpcChargingStation.java
create mode 100644 xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/mapper/XhpcChargingStationMapper.java
create mode 100644 xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/service/IXhpcChargingStationService.java
create mode 100644 xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/service/XhpcChargingStationServiceImpl.java
create mode 100644 xhpc-modules/xhpc-charging-station/src/main/resources/banner.txt
create mode 100644 xhpc-modules/xhpc-charging-station/src/main/resources/bootstrap.yml
create mode 100644 xhpc-modules/xhpc-charging-station/src/main/resources/logback.xml
create mode 100644 xhpc-modules/xhpc-charging-station/src/main/resources/mapper/XhpcChargingStationMapper.xml
diff --git a/xhpc-modules/xhpc-charging-station/pom.xml b/xhpc-modules/xhpc-charging-station/pom.xml
new file mode 100644
index 00000000..b4872501
--- /dev/null
+++ b/xhpc-modules/xhpc-charging-station/pom.xml
@@ -0,0 +1,112 @@
+
+
+
+ xhpc-modules
+ com.ruoyi
+ 3.0.0
+
+ 4.0.0
+
+ xhpc-charging-station
+
+
+ 电站服务
+
+
+
+ 8
+ 8
+
+
+
+
+
+
+ com.alibaba.cloud
+ spring-cloud-starter-alibaba-nacos-discovery
+
+
+
+
+ com.alibaba.cloud
+ spring-cloud-starter-alibaba-nacos-config
+
+
+
+
+ com.alibaba.cloud
+ spring-cloud-starter-alibaba-sentinel
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+
+
+ io.springfox
+ springfox-swagger-ui
+ ${swagger.fox.version}
+
+
+
+
+ mysql
+ mysql-connector-java
+
+
+
+
+ com.ruoyi
+ ruoyi-common-datasource
+
+
+
+
+ com.ruoyi
+ ruoyi-common-datascope
+
+
+
+
+ com.ruoyi
+ ruoyi-common-log
+
+
+
+
+ com.ruoyi
+ ruoyi-common-swagger
+
+
+ com.ruoyi
+ ruoyi-common-core
+
+
+ com.squareup.okhttp3
+ okhttp
+
+
+
+
+ ${project.artifactId}
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+ 2.4.0
+
+
+
+ repackage
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/XhpcChargingStation.java b/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/XhpcChargingStation.java
new file mode 100644
index 00000000..d3d68fd3
--- /dev/null
+++ b/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/XhpcChargingStation.java
@@ -0,0 +1,32 @@
+package com.xhpc.charging.station;
+
+import com.ruoyi.common.security.annotation.EnableCustomConfig;
+import com.ruoyi.common.security.annotation.EnableRyFeignClients;
+import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2;
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@EnableCustomConfig
+@EnableCustomSwagger2
+@EnableRyFeignClients
+@SpringBootApplication
+@MapperScan("com.xhpc.charging.station.mapper")
+public class XhpcChargingStation {
+
+ public static void main(String [] args){
+
+ SpringApplication.run(XhpcChargingStation.class,args);
+ System.out.println("(♥◠‿◠)ノ゙ 电站模块启动成功 ლ(´ڡ`ლ)゙ \n" +
+ " .-------. ____ __ \n" +
+ " | _ _ \\ \\ \\ / / \n" +
+ " | ( ' ) | \\ _. / ' \n" +
+ " |(_ o _) / _( )_ .' \n" +
+ " | (_,_).' __ ___(_ o _)' \n" +
+ " | |\\ \\ | || |(_,_)' \n" +
+ " | | \\ `' /| `-' / \n" +
+ " | | \\ / \\ / \n" +
+ " ''-' `'-' `-..-' ");
+ }
+
+}
diff --git a/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/controller/XhpcChargingStationController.java b/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/controller/XhpcChargingStationController.java
new file mode 100644
index 00000000..812a722b
--- /dev/null
+++ b/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/controller/XhpcChargingStationController.java
@@ -0,0 +1,100 @@
+package com.xhpc.charging.station.controller;
+
+import com.ruoyi.common.core.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.web.controller.BaseController;
+import com.ruoyi.common.core.web.domain.AjaxResult;
+import com.ruoyi.common.core.web.page.TableDataInfo;
+import com.ruoyi.common.log.annotation.Log;
+import com.ruoyi.common.log.enums.BusinessType;
+import com.ruoyi.common.security.annotation.PreAuthorize;
+import com.xhpc.charging.station.domain.XhpcChargingStation;
+import com.xhpc.charging.station.service.IXhpcChargingStationService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 电站Controller
+ *
+ * @author yuyang
+ * @date 2021-07-19
+ */
+@RestController
+@RequestMapping("/station")
+public class XhpcChargingStationController extends BaseController {
+
+ @Autowired
+ private IXhpcChargingStationService xhpcChargingStationService;
+
+ /**
+ * 查询电站列表
+ */
+ //@PreAuthorize(hasPermi = "system:station:list")
+ @GetMapping("/list")
+ public TableDataInfo list(XhpcChargingStation xhpcChargingStation)
+ {
+ startPage();
+ List