Commit 9c53d0ed by 谢海旭

[+]充电站添加“地址”属性

1 parent cd7895e9
......@@ -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正常
*
......
......@@ -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 {
......
......@@ -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>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!