Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-evbusiness-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9c53d0ed
authored
Nov 16, 2023
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]充电站添加“地址”属性
1 parent
cd7895e9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/entity/ChargingStation.java
platform-evbusiness/src/main/java/cn/com/glsx/evbusiness/modules/controller/ChargingStationController.java
platform-evbusiness/src/main/resources/mapper/ChargingStationMapper.xml
platform-evbusiness-api/src/main/java/cn/com/glsx/evbusiness/modules/entity/ChargingStation.java
View file @
9c53d0e
...
...
@@ -48,6 +48,11 @@ public class ChargingStation implements Serializable {
private
String
latitude
;
/**
* 地址
*/
private
String
address
;
/**
* 充电站启用状态,0关闭 1正常
*/
private
Boolean
status
;
...
...
@@ -204,6 +209,14 @@ public class ChargingStation implements Serializable {
this
.
latitude
=
latitude
==
null
?
null
:
latitude
.
trim
();
}
public
String
getAddress
()
{
return
address
;
}
public
void
setAddress
(
String
address
)
{
this
.
address
=
address
;
}
/**
* 获取充电站启用状态,0关闭 1正常
*
...
...
platform-evbusiness/src/main/java/cn/com/glsx/evbusiness/modules/controller/ChargingStationController.java
View file @
9c53d0e
...
...
@@ -23,7 +23,7 @@ import org.springframework.web.bind.annotation.RestController;
@Slf4j
@Tag
(
name
=
"充电站接口"
)
@RestController
@RequestMapping
(
value
=
"/chargeStations"
)
@RequestMapping
(
value
=
"/
api/
chargeStations"
)
@ResponseResultBody
public
class
ChargingStationController
{
...
...
platform-evbusiness/src/main/resources/mapper/ChargingStationMapper.xml
View file @
9c53d0e
...
...
@@ -12,6 +12,7 @@
<result
column=
"model_id"
jdbcType=
"INTEGER"
property=
"modelId"
/>
<result
column=
"longitude"
jdbcType=
"VARCHAR"
property=
"longitude"
/>
<result
column=
"latitude"
jdbcType=
"VARCHAR"
property=
"latitude"
/>
<result
column=
"address"
jdbcType=
"VARCHAR"
property=
"address"
/>
<result
column=
"status"
jdbcType=
"BIT"
property=
"status"
/>
<result
column=
"created_by"
jdbcType=
"INTEGER"
property=
"createdBy"
/>
<result
column=
"updated_by"
jdbcType=
"INTEGER"
property=
"updatedBy"
/>
...
...
@@ -22,7 +23,7 @@
<!--
WARNING - @mbg.generated
-->
id, `name`, start_time, end_time, model_id, longitude, latitude,
`status`, created_by,
id, `name`, start_time, end_time, model_id, longitude, latitude,
address, `status`, created_by,
updated_by, created_time, updated_time
</sql>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment