diff --git a/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/domain/XhpcRateTime.java b/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/domain/XhpcRateTime.java
index 73b2514d..a4aaad89 100644
--- a/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/domain/XhpcRateTime.java
+++ b/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/domain/XhpcRateTime.java
@@ -5,7 +5,7 @@ import com.ruoyi.common.core.web.domain.BaseEntity;
import java.util.Date;
/**
- * 费率时段
+ * 费率时段 xhpc_rate_time
*
* @author yuyang
* @date 2021-07-20
diff --git a/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/domain/XhpcTerminal.java b/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/domain/XhpcTerminal.java
index e5d6f3dd..9e59f565 100644
--- a/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/domain/XhpcTerminal.java
+++ b/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/domain/XhpcTerminal.java
@@ -3,7 +3,7 @@ package com.xhpc.charging.station.domain;
import com.ruoyi.common.core.web.domain.BaseEntity;
/**
- * 终端
+ * 终端 xhpc_terminal
*
* @author yuyang
* @date 2021-07-20
diff --git a/xhpc-modules/xhpc-common/pom.xml b/xhpc-modules/xhpc-common/pom.xml
new file mode 100644
index 00000000..76166ff5
--- /dev/null
+++ b/xhpc-modules/xhpc-common/pom.xml
@@ -0,0 +1,115 @@
+
+
+
+ xhpc-modules
+ com.ruoyi
+ 3.0.0
+
+ 4.0.0
+
+ xhpc-common
+
+
+ 公共服务
+
+
+ 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
+
+
+
+ cn.hutool
+ hutool-all
+ 5.7.5
+
+
+
+ ${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-common/src/main/java/com/xhpc/common/XhpcCommon.java b/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/XhpcCommon.java
new file mode 100644
index 00000000..cde83391
--- /dev/null
+++ b/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/XhpcCommon.java
@@ -0,0 +1,32 @@
+package com.xhpc.common;
+
+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.common.mapper")
+public class XhpcCommon {
+
+ public static void main(String [] args){
+
+ SpringApplication.run(XhpcCommon.class,args);
+ System.out.println("(♥◠‿◠)ノ゙ 公共模块模块启动成功 ლ(´ڡ`ლ)゙ \n" +
+ " .-------. ____ __ \n" +
+ " | _ _ \\ \\ \\ / / \n" +
+ " | ( ' ) | \\ _. / ' \n" +
+ " |(_ o _) / _( )_ .' \n" +
+ " | (_,_).' __ ___(_ o _)' \n" +
+ " | |\\ \\ | || |(_,_)' \n" +
+ " | | \\ `' /| `-' / \n" +
+ " | | \\ / \\ / \n" +
+ " ''-' `'-' `-..-' ");
+ }
+
+}
diff --git a/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/controller/XhpcDictBizController.java b/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/controller/XhpcDictBizController.java
new file mode 100644
index 00000000..b3b7a579
--- /dev/null
+++ b/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/controller/XhpcDictBizController.java
@@ -0,0 +1,36 @@
+package com.xhpc.common.controller;
+
+import com.ruoyi.common.core.web.controller.BaseController;
+import com.ruoyi.common.core.web.domain.AjaxResult;
+import com.xhpc.common.service.IXhpcDictBizService;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * 业务字典Controller
+ *
+ * @author yuyang
+ * @date 2021-07-19
+ */
+@RestController
+@RequestMapping("/dictBiz")
+public class XhpcDictBizController extends BaseController {
+
+ @Autowired
+ private IXhpcDictBizService xhpcDictBizService;
+ /**
+ * 根据code获取数据
+ */
+ //@PreAuthorize(hasPermi = "system:station:remove")
+ //@Log(title = "电站", businessType = BusinessType.DELETE)
+ @GetMapping(value = "/getCode")
+ public AjaxResult getCode(@Param("code")String code)
+ {
+ return AjaxResult.success(xhpcDictBizService.getCode(code));
+ }
+
+
+}
diff --git a/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/domain/XhpcDictBiz.java b/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/domain/XhpcDictBiz.java
new file mode 100644
index 00000000..65aee268
--- /dev/null
+++ b/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/domain/XhpcDictBiz.java
@@ -0,0 +1,106 @@
+package com.xhpc.common.domain;
+
+import com.ruoyi.common.core.web.domain.BaseEntity;
+
+/**
+ * 业务字典 xhpc_dict_biz
+ *
+ * @author yuyang
+ * @date 2021-07-20
+ */
+public class XhpcDictBiz extends BaseEntity {
+
+ private static final long serialVersionUID = 1L;
+
+ /** 业务字典id */
+ private Long dictBizId;
+
+ /** 父主键id */
+ private Long parentId;
+
+ /** 字典码 */
+ private String code;
+
+ /** 字典名称 */
+ private String dictKey;
+
+ /** 字典名称 */
+ private String dictValue;
+
+ /** 排序 */
+ private String sort;
+
+ /** 删除标志(0代表存在 1代表删除) */
+ private String delFlag;
+
+ public Long getDictBizId() {
+
+ return dictBizId;
+ }
+
+ public void setDictBizId(Long dictBizId) {
+
+ this.dictBizId = dictBizId;
+ }
+
+ public Long getParentId() {
+
+ return parentId;
+ }
+
+ public void setParentId(Long parentId) {
+
+ this.parentId = parentId;
+ }
+
+ public String getCode() {
+
+ return code;
+ }
+
+ public void setCode(String code) {
+
+ this.code = code;
+ }
+
+ public String getDictKey() {
+
+ return dictKey;
+ }
+
+ public void setDictKey(String dictKey) {
+
+ this.dictKey = dictKey;
+ }
+
+ public String getDictValue() {
+
+ return dictValue;
+ }
+
+ public void setDictValue(String dictValue) {
+
+ this.dictValue = dictValue;
+ }
+
+ public String getSort() {
+
+ return sort;
+ }
+
+ public void setSort(String sort) {
+
+ this.sort = sort;
+ }
+
+ public String getDelFlag() {
+
+ return delFlag;
+ }
+
+ public void setDelFlag(String delFlag) {
+
+ this.delFlag = delFlag;
+ }
+
+}
diff --git a/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/mapper/XhpcDictBizMapper.java b/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/mapper/XhpcDictBizMapper.java
new file mode 100644
index 00000000..09e55437
--- /dev/null
+++ b/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/mapper/XhpcDictBizMapper.java
@@ -0,0 +1,24 @@
+package com.xhpc.common.mapper;
+
+import com.xhpc.common.domain.XhpcDictBiz;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 业务字典Mapper接口
+ *
+ * @author yuyang
+ * @date 2021-07-19
+ */
+public interface XhpcDictBizMapper {
+
+ /**
+ * 根据code获取数据
+ *
+ * @param code 字典code
+ * @return 电站
+ */
+ public List getCode(String code);
+
+}
diff --git a/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/service/IXhpcDictBizService.java b/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/service/IXhpcDictBizService.java
new file mode 100644
index 00000000..fdc74917
--- /dev/null
+++ b/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/service/IXhpcDictBizService.java
@@ -0,0 +1,23 @@
+package com.xhpc.common.service;
+
+import com.xhpc.common.domain.XhpcDictBiz;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 业务字典Service接口
+ *
+ * @author yuyang
+ * @date 2021-07-19
+ */
+public interface IXhpcDictBizService {
+
+ /**
+ * 根据code获取数据
+ *
+ * @param code 字典code
+ * @return 电站
+ */
+ public List getCode(String code);
+}
diff --git a/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/service/XhpcDictBizServiceImpl.java b/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/service/XhpcDictBizServiceImpl.java
new file mode 100644
index 00000000..a6827633
--- /dev/null
+++ b/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/service/XhpcDictBizServiceImpl.java
@@ -0,0 +1,28 @@
+package com.xhpc.common.service;
+
+import com.xhpc.common.domain.XhpcDictBiz;
+import com.xhpc.common.mapper.XhpcDictBizMapper;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 业务字典Service业务层处理
+ *
+ * @author yuyang
+ * @date 2021-07-19
+ */
+@Service
+public class XhpcDictBizServiceImpl implements IXhpcDictBizService{
+
+ @Autowired
+ private XhpcDictBizMapper xhpcDictBizMapper;
+
+ @Override
+ public List getCode(String code) {
+ return xhpcDictBizMapper.getCode(code);
+ }
+
+}
diff --git a/xhpc-modules/xhpc-common/src/main/resources/banner.txt b/xhpc-modules/xhpc-common/src/main/resources/banner.txt
new file mode 100644
index 00000000..27cacb9c
--- /dev/null
+++ b/xhpc-modules/xhpc-common/src/main/resources/banner.txt
@@ -0,0 +1,10 @@
+Spring Boot Version: ${spring-boot.version}
+Spring Application Name: ${spring.application.name}
+ _ __ _ _
+ (_) / _|(_)| |
+ _ __ _ _ ___ _ _ _ ______ | |_ _ | | ___
+| '__|| | | | / _ \ | | | || ||______|| _|| || | / _ \
+| | | |_| || (_) || |_| || | | | | || || __/
+|_| \__,_| \___/ \__, ||_| |_| |_||_| \___|
+ __/ |
+ |___/
\ No newline at end of file
diff --git a/xhpc-modules/xhpc-common/src/main/resources/bootstrap.yml b/xhpc-modules/xhpc-common/src/main/resources/bootstrap.yml
new file mode 100644
index 00000000..7ef869c5
--- /dev/null
+++ b/xhpc-modules/xhpc-common/src/main/resources/bootstrap.yml
@@ -0,0 +1,25 @@
+# Tomcat
+server:
+ port: 9802
+
+# Spring
+spring:
+ application:
+ # 应用名称
+ name: xhpc-common
+ profiles:
+ # 环境配置
+ active: dev
+ cloud:
+ nacos:
+ discovery:
+ # 服务注册地址
+ server-addr: 127.0.0.1:8848
+ config:
+ # 配置中心地址
+ server-addr: 127.0.0.1:8848
+ # 配置文件格式
+ file-extension: yml
+ # 共享配置
+ shared-configs:
+ - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
diff --git a/xhpc-modules/xhpc-common/src/main/resources/logback.xml b/xhpc-modules/xhpc-common/src/main/resources/logback.xml
new file mode 100644
index 00000000..2795b2fe
--- /dev/null
+++ b/xhpc-modules/xhpc-common/src/main/resources/logback.xml
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+
+
+
+ ${log.pattern}
+
+
+
+
+
+ ${log.path}/info.log
+
+
+
+ ${log.path}/info.%d{yyyy-MM-dd}.log
+
+ 60
+
+
+ ${log.pattern}
+
+
+
+ INFO
+
+ ACCEPT
+
+ DENY
+
+
+
+
+ ${log.path}/error.log
+
+
+
+ ${log.path}/error.%d{yyyy-MM-dd}.log
+
+ 60
+
+
+ ${log.pattern}
+
+
+
+ ERROR
+
+ ACCEPT
+
+ DENY
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/xhpc-modules/xhpc-common/src/main/resources/mapper/XhpcDictBizMapper.xml b/xhpc-modules/xhpc-common/src/main/resources/mapper/XhpcDictBizMapper.xml
new file mode 100644
index 00000000..e9d519ff
--- /dev/null
+++ b/xhpc-modules/xhpc-common/src/main/resources/mapper/XhpcDictBizMapper.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file