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> list = xhpcChargingStationService.selectXhpcChargingStationList(xhpcChargingStation); + return getDataTable(list); + } + + /** + * 导出电站列表 + */ + @PreAuthorize(hasPermi = "system:station:export") + @Log(title = "电站", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, XhpcChargingStation xhpcChargingStation) throws IOException + { + //List list = xhpcChargingStationService.selectXhpcChargingStationList(xhpcChargingStation); + //ExcelUtil util = new ExcelUtil(XhpcChargingStation.class); + //util.exportExcel(response, list, "电站数据"); + } + + /** + * 获取电站详细信息 + */ + @PreAuthorize(hasPermi = "system:station:query") + @GetMapping(value = "/{chargingStationId}") + public AjaxResult getInfo(@PathVariable("chargingStationId") Long chargingStationId) + { + return AjaxResult.success(xhpcChargingStationService.selectXhpcChargingStationById(chargingStationId)); + } + + /** + * 新增电站 + */ + @PreAuthorize(hasPermi = "system:station:add") + @Log(title = "电站", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody XhpcChargingStation xhpcChargingStation) + { + return toAjax(xhpcChargingStationService.insertXhpcChargingStation(xhpcChargingStation)); + } + + /** + * 修改电站 + */ + @PreAuthorize(hasPermi = "system:station:edit") + @Log(title = "电站", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody XhpcChargingStation xhpcChargingStation) + { + return toAjax(xhpcChargingStationService.updateXhpcChargingStation(xhpcChargingStation)); + } + + /** + * 删除电站 + */ + //@PreAuthorize(hasPermi = "system:station:remove") + //@Log(title = "电站", businessType = BusinessType.DELETE) + @DeleteMapping("/{chargingStationIds}") + public AjaxResult remove(@PathVariable Long[] chargingStationIds) + { + return toAjax(xhpcChargingStationService.updateXhpcChargingStationByIds(chargingStationIds)); + } +} diff --git a/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/domain/XhpcChargingStation.java b/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/domain/XhpcChargingStation.java new file mode 100644 index 00000000..a0b346bb --- /dev/null +++ b/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/domain/XhpcChargingStation.java @@ -0,0 +1,249 @@ +package com.xhpc.charging.station.domain; + +import com.ruoyi.common.core.annotation.Excel; +import com.ruoyi.common.core.web.domain.BaseEntity; + +/** + * 电站对象 xhpc_charging_station + * + * @author yuyang + * @date 2021-07-19 + */ +public class XhpcChargingStation extends BaseEntity { + + + private static final long serialVersionUID = 1L; + + /** 电站id */ + private Long chargingStationId; + + /** 名称 */ + @Excel(name = "名称") + private String name; + + /** 运营商id */ + @Excel(name = "运营商id") + private Long operatorId; + + /** 电站类型 */ + @Excel(name = "电站类型") + private Integer type; + + /** 建设场所 */ + @Excel(name = "建设场所") + private String constructionSite; + + /** 服务设施 */ + @Excel(name = "服务设施") + private String serviceFacilities; + + /** 周边设施 */ + @Excel(name = "周边设施") + private String peripheryFacilities; + + /** 地址code */ + @Excel(name = "地址code") + private Integer areaCode; + + /** 地址 */ + @Excel(name = "地址") + private String address; + + /** 详细地址 */ + @Excel(name = "详细地址") + private String detailedAddress; + + /** 进度 */ + @Excel(name = "进度") + private String longitude; + + /** 维度 */ + @Excel(name = "维度") + private String latitude; + + /** 停车说明 */ + @Excel(name = "停车说明") + private String parkingInstructions; + + /** 编号 */ + @Excel(name = "编号") + private String serialNumber; + + /** 客户端可见类型 */ + @Excel(name = "客户端可见类型") + private String clientVisible; + + /** 状态(0正常 1停用) */ + @Excel(name = "状态", readConverterExp = "0=正常,1=停用") + private Integer status; + + /** 删除标志(0代表存在 2代表删除) */ + private Integer delFlag; + + /** 当前计费模型id */ + @Excel(name = "当前计费模型id") + private Long rateModelId; + + public void setChargingStationId(Long chargingStationId) + { + this.chargingStationId = chargingStationId; + } + + public Long getChargingStationId() + { + return chargingStationId; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setOperatorId(Long operatorId) + { + this.operatorId = operatorId; + } + + public Long getOperatorId() + { + return operatorId; + } + public void setType(Integer type) + { + this.type = type; + } + + public Integer getType() + { + return type; + } + public void setConstructionSite(String constructionSite) + { + this.constructionSite = constructionSite; + } + + public String getConstructionSite() + { + return constructionSite; + } + public void setServiceFacilities(String serviceFacilities) + { + this.serviceFacilities = serviceFacilities; + } + + public String getServiceFacilities() + { + return serviceFacilities; + } + public void setPeripheryFacilities(String peripheryFacilities) + { + this.peripheryFacilities = peripheryFacilities; + } + + public String getPeripheryFacilities() + { + return peripheryFacilities; + } + public void setAreaCode(Integer areaCode) + { + this.areaCode = areaCode; + } + + public Integer getAreaCode() + { + return areaCode; + } + public void setAddress(String address) + { + this.address = address; + } + + public String getAddress() + { + return address; + } + public void setDetailedAddress(String detailedAddress) + { + this.detailedAddress = detailedAddress; + } + + public String getDetailedAddress() + { + return detailedAddress; + } + public void setLongitude(String longitude) + { + this.longitude = longitude; + } + + public String getLongitude() + { + return longitude; + } + public void setLatitude(String latitude) + { + this.latitude = latitude; + } + + public String getLatitude() + { + return latitude; + } + public void setParkingInstructions(String parkingInstructions) + { + this.parkingInstructions = parkingInstructions; + } + + public String getParkingInstructions() + { + return parkingInstructions; + } + public void setSerialNumber(String serialNumber) + { + this.serialNumber = serialNumber; + } + + public String getSerialNumber() + { + return serialNumber; + } + public void setClientVisible(String clientVisible) + { + this.clientVisible = clientVisible; + } + + public String getClientVisible() + { + return clientVisible; + } + public void setStatus(Integer status) + { + this.status = status; + } + + public Integer getStatus() + { + return status; + } + public void setDelFlag(Integer delFlag) + { + this.delFlag = delFlag; + } + + public Integer getDelFlag() + { + return delFlag; + } + public void setRateModelId(Long rateModelId) + { + this.rateModelId = rateModelId; + } + + public Long getRateModelId() + { + return rateModelId; + } +} diff --git a/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/mapper/XhpcChargingStationMapper.java b/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/mapper/XhpcChargingStationMapper.java new file mode 100644 index 00000000..8c2e21c8 --- /dev/null +++ b/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/mapper/XhpcChargingStationMapper.java @@ -0,0 +1,63 @@ +package com.xhpc.charging.station.mapper; + +import com.xhpc.charging.station.domain.XhpcChargingStation; + +import java.util.List; +import java.util.Map; + +/** + * 电站Mapper接口 + * + * @author yuyang + * @date 2021-07-19 + */ +public interface XhpcChargingStationMapper { + + /** + * 查询电站 + * + * @param chargingStationId 电站ID + * @return 电站 + */ + public XhpcChargingStation selectXhpcChargingStationById(Long chargingStationId); + + /** + * 查询电站列表 + * + * @param xhpcChargingStation 电站 + * @return 电站集合 + */ + public List> selectXhpcChargingStationList(XhpcChargingStation xhpcChargingStation); + + /** + * 新增电站 + * + * @param xhpcChargingStation 电站 + * @return 结果 + */ + public int insertXhpcChargingStation(XhpcChargingStation xhpcChargingStation); + + /** + * 修改电站 + * + * @param xhpcChargingStation 电站 + * @return 结果 + */ + public int updateXhpcChargingStation(XhpcChargingStation xhpcChargingStation); + + /** + * 删除电站 + * + * @param chargingStationId 电站ID + * @return 结果 + */ + public int updateXhpcChargingStationById(Long chargingStationId); + + /** + * 批量删除电站 + * + * @param chargingStationIds 需要删除的数据ID + * @return 结果 + */ + public int updateXhpcChargingStationByIds(Long[] chargingStationIds); +} diff --git a/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/service/IXhpcChargingStationService.java b/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/service/IXhpcChargingStationService.java new file mode 100644 index 00000000..68700e5c --- /dev/null +++ b/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/service/IXhpcChargingStationService.java @@ -0,0 +1,63 @@ +package com.xhpc.charging.station.service; + +import com.xhpc.charging.station.domain.XhpcChargingStation; + +import java.util.List; +import java.util.Map; + +/** + * 电站Service接口 + * + * @author yuyang + * @date 2021-07-19 + */ +public interface IXhpcChargingStationService { + + /** + * 查询电站 + * + * @param chargingStationId 电站ID + * @return 电站 + */ + public XhpcChargingStation selectXhpcChargingStationById(Long chargingStationId); + + /** + * 查询电站列表 + * + * @param xhpcChargingStation 电站 + * @return 电站集合 + */ + public List> selectXhpcChargingStationList(XhpcChargingStation xhpcChargingStation); + + /** + * 新增电站 + * + * @param xhpcChargingStation 电站 + * @return 结果 + */ + public int insertXhpcChargingStation(XhpcChargingStation xhpcChargingStation); + + /** + * 修改电站 + * + * @param xhpcChargingStation 电站 + * @return 结果 + */ + public int updateXhpcChargingStation(XhpcChargingStation xhpcChargingStation); + + /** + * 批量删除电站 + * + * @param chargingStationIds 需要删除的电站ID + * @return 结果 + */ + public int updateXhpcChargingStationByIds(Long[] chargingStationIds); + + /** + * 删除电站信息 + * + * @param chargingStationId 电站ID + * @return 结果 + */ + public int updateXhpcChargingStationById(Long chargingStationId); +} diff --git a/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/service/XhpcChargingStationServiceImpl.java b/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/service/XhpcChargingStationServiceImpl.java new file mode 100644 index 00000000..5479a72a --- /dev/null +++ b/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/service/XhpcChargingStationServiceImpl.java @@ -0,0 +1,98 @@ +package com.xhpc.charging.station.service; + +import com.ruoyi.common.core.utils.DateUtils; +import com.xhpc.charging.station.domain.XhpcChargingStation; +import com.xhpc.charging.station.mapper.XhpcChargingStationMapper; +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 XhpcChargingStationServiceImpl implements IXhpcChargingStationService{ + + @Autowired + private XhpcChargingStationMapper xhpcChargingStationMapper; + + /** + * 查询电站 + * + * @param chargingStationId 电站ID + * @return 电站 + */ + @Override + public XhpcChargingStation selectXhpcChargingStationById(Long chargingStationId) + { + return xhpcChargingStationMapper.selectXhpcChargingStationById(chargingStationId); + } + + /** + * 查询电站列表 + * + * @param xhpcChargingStation 电站 + * @return 电站 + */ + @Override + public List> selectXhpcChargingStationList(XhpcChargingStation xhpcChargingStation) + { + //桩的统计、该时段金额 + return xhpcChargingStationMapper.selectXhpcChargingStationList(xhpcChargingStation); + } + + /** + * 新增电站 + * + * @param xhpcChargingStation 电站 + * @return 结果 + */ + @Override + public int insertXhpcChargingStation(XhpcChargingStation xhpcChargingStation) + { + xhpcChargingStation.setCreateTime(DateUtils.getNowDate()); + return xhpcChargingStationMapper.insertXhpcChargingStation(xhpcChargingStation); + } + + /** + * 修改电站 + * + * @param xhpcChargingStation 电站 + * @return 结果 + */ + @Override + public int updateXhpcChargingStation(XhpcChargingStation xhpcChargingStation) + { + xhpcChargingStation.setUpdateTime(DateUtils.getNowDate()); + return xhpcChargingStationMapper.updateXhpcChargingStation(xhpcChargingStation); + } + + /** + * 批量删除电站 + * + * @param chargingStationIds 需要删除的电站ID + * @return 结果 + */ + @Override + public int updateXhpcChargingStationByIds(Long[] chargingStationIds) + { + return xhpcChargingStationMapper.updateXhpcChargingStationByIds(chargingStationIds); + } + + /** + * 删除电站信息 + * + * @param chargingStationId 电站ID + * @return 结果 + */ + @Override + public int updateXhpcChargingStationById(Long chargingStationId) + { + return xhpcChargingStationMapper.updateXhpcChargingStationById(chargingStationId); + } +} diff --git a/xhpc-modules/xhpc-charging-station/src/main/resources/banner.txt b/xhpc-modules/xhpc-charging-station/src/main/resources/banner.txt new file mode 100644 index 00000000..27cacb9c --- /dev/null +++ b/xhpc-modules/xhpc-charging-station/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-charging-station/src/main/resources/bootstrap.yml b/xhpc-modules/xhpc-charging-station/src/main/resources/bootstrap.yml new file mode 100644 index 00000000..b92382c9 --- /dev/null +++ b/xhpc-modules/xhpc-charging-station/src/main/resources/bootstrap.yml @@ -0,0 +1,25 @@ +# Tomcat +server: + port: 9801 + +# Spring +spring: + application: + # 应用名称 + name: xhpc-charging-station + 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-charging-station/src/main/resources/logback.xml b/xhpc-modules/xhpc-charging-station/src/main/resources/logback.xml new file mode 100644 index 00000000..2795b2fe --- /dev/null +++ b/xhpc-modules/xhpc-charging-station/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-charging-station/src/main/resources/mapper/XhpcChargingStationMapper.xml b/xhpc-modules/xhpc-charging-station/src/main/resources/mapper/XhpcChargingStationMapper.xml new file mode 100644 index 00000000..094abe26 --- /dev/null +++ b/xhpc-modules/xhpc-charging-station/src/main/resources/mapper/XhpcChargingStationMapper.xml @@ -0,0 +1,151 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select charging_station_id, name, operator_id, type, construction_site, service_facilities, periphery_facilities, area_code, address, detailed_address, longitude, latitude, parking_instructions, serial_number, client_visible, status, del_flag, create_time, create_by, update_time, update_by, remark, rate_model_id from xhpc_charging_station + + + + + + + + + + insert into xhpc_charging_station + + charging_station_id, + name, + operator_id, + type, + construction_site, + service_facilities, + periphery_facilities, + area_code, + address, + detailed_address, + longitude, + latitude, + parking_instructions, + serial_number, + client_visible, + status, + del_flag, + create_time, + create_by, + update_time, + update_by, + remark, + rate_model_id, + + + #{chargingStationId}, + #{name}, + #{operatorId}, + #{type}, + #{constructionSite}, + #{serviceFacilities}, + #{peripheryFacilities}, + #{areaCode}, + #{address}, + #{detailedAddress}, + #{longitude}, + #{latitude}, + #{parkingInstructions}, + #{serialNumber}, + #{clientVisible}, + #{status}, + #{delFlag}, + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + #{remark}, + #{rateModelId}, + + + + + update xhpc_charging_station + + name = #{name}, + operator_id = #{operatorId}, + type = #{type}, + construction_site = #{constructionSite}, + service_facilities = #{serviceFacilities}, + periphery_facilities = #{peripheryFacilities}, + area_code = #{areaCode}, + address = #{address}, + detailed_address = #{detailedAddress}, + longitude = #{longitude}, + latitude = #{latitude}, + parking_instructions = #{parkingInstructions}, + serial_number = #{serialNumber}, + client_visible = #{clientVisible}, + status = #{status}, + del_flag = #{delFlag}, + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + remark = #{remark}, + rate_model_id = #{rateModelId}, + + where charging_station_id = #{chargingStationId} + + + + update xhpc_charging_station set delFlag =1 where charging_station_id = #{chargingStationId} + + + + update xhpc_charging_station set delFlag =1 where charging_station_id in + + #{chargingStationId} + + + \ No newline at end of file