parent
f5c2870a70
commit
e7dcfcfcf7
@ -0,0 +1,18 @@
|
||||
package com.ssm.controller;
|
||||
|
||||
import com.ssm.entity.CheweixinxiModel;
|
||||
import com.ssm.entity.TingchexinxiModel;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
@Controller
|
||||
@RequestMapping("cheweixinxi")
|
||||
public class CheweixinxiController{
|
||||
@RequestMapping("add")
|
||||
public ModelAndView test(CheweixinxiModel cheweixinxi){
|
||||
ModelAndView mvw=new ModelAndView("showCheweixinxi");
|
||||
mvw.addObject("cheweixinxiInfo", cheweixinxi);
|
||||
return mvw;
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,64 @@
|
||||
package com.ssm.entity;
|
||||
|
||||
public class CheweixinxiModel {
|
||||
private String spaceNumber;
|
||||
// 车位所在区域
|
||||
private String area;
|
||||
// 车位类型(普通车位、残疾人车位)
|
||||
private String spaceType;
|
||||
// 车位状态(空闲、已占用)
|
||||
private String status;
|
||||
// 车位价格
|
||||
private double price;
|
||||
|
||||
public String getSpaceNumber() {
|
||||
return spaceNumber;
|
||||
}
|
||||
|
||||
public void setSpaceNumber(String spaceNumber) {
|
||||
this.spaceNumber = spaceNumber;
|
||||
}
|
||||
|
||||
public String getArea() {
|
||||
return area;
|
||||
}
|
||||
|
||||
public void setArea(String area) {
|
||||
this.area = area;
|
||||
}
|
||||
|
||||
public String getSpaceType() {
|
||||
return spaceType;
|
||||
}
|
||||
|
||||
public void setSpaceType(String spaceType) {
|
||||
this.spaceType = spaceType;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public double getPrice() {
|
||||
return price;
|
||||
}
|
||||
|
||||
public void setPrice(double price) {
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CheweixinxiModel{" +
|
||||
"车位编号='" + spaceNumber + '\'' +
|
||||
", 车位所在区域='" + area + '\'' +
|
||||
", 车位类型='" + spaceType + '\'' +
|
||||
", 车位状态='" + status + '\'' +
|
||||
", 车位价格=" + price +
|
||||
'}';
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<html>
|
||||
<head>
|
||||
<title>添加停车车位信息</title>
|
||||
</head>
|
||||
<body>
|
||||
<form action="cheweixinxi/add" method="post">
|
||||
区域编号:<input type="text" name="spaceNumber">
|
||||
<br>
|
||||
区域名称:<input type="text" name="area">
|
||||
<br>
|
||||
车位类型:<input type="text" name="spaceType">
|
||||
<br>
|
||||
车位状态:<input type="text" name="status">
|
||||
<br>
|
||||
车位价格:<input type="text" name="price">
|
||||
<input type="submit" value="添加">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in new issue