Merge branch 'main' of https://bdgit.educoder.net/p3ywjxab4/parkingmanagement-SpringMVCProject-2206
# Conflicts: # src/com/ssm/controller/TingchexinxiController.java # src/com/ssm/entity/TingchexinxiModel.java # web/WEB-INF/view/showNewType.jsp # web/WEB-INF/view/showTingchexinxi.jsp # web/addNewType.jsp # web/addTingchexinxi.jspmain
commit
9fe3208671
@ -1,15 +1,16 @@
|
||||
package com.ssm.controller;
|
||||
|
||||
import com.ssm.entity.NewTypeModel;
|
||||
import com.ssm.entity.TingchexinxiModel;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("tingchexinxi")
|
||||
public class TingchexinxiController {
|
||||
@RequestMapping("addtingchexinxi")
|
||||
public String test(TingchexinxiModel tingchexinxiModel) {
|
||||
System.out.println("停车车位信息" + tingchexinxiModel.toString());
|
||||
return "showTingchexinxi";
|
||||
}
|
||||
@RequestMapping("add")
|
||||
public String test(TingchexinxiModel tingchexinxi) {
|
||||
System.out.println("停车信息" + tingchexinxi.toString());
|
||||
return "showTingchexinxi";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,66 +1,58 @@
|
||||
package com.ssm.entity;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
public class TingchexinxiModel {
|
||||
// 车位编号
|
||||
private String spaceNumber;
|
||||
// 车位所在区域
|
||||
private String area;
|
||||
// 车位类型(普通车位、残疾人车位)
|
||||
private String spaceType;
|
||||
|
||||
public String getSpaceNumber() {
|
||||
return spaceNumber;
|
||||
}
|
||||
import java.util.Date;
|
||||
|
||||
public void setSpaceNumber(String spaceNumber) {
|
||||
this.spaceNumber = spaceNumber;
|
||||
}
|
||||
public class TingchexinxiModel {
|
||||
// 停车ID
|
||||
private Integer parkingId;
|
||||
// 车牌号
|
||||
private String licensePlate;
|
||||
// 进入时间
|
||||
private String entryTime;
|
||||
// 离开时间
|
||||
private String exitTime;
|
||||
|
||||
public String getArea() {
|
||||
return area;
|
||||
public Integer getParkingId() {
|
||||
return parkingId;
|
||||
}
|
||||
|
||||
public void setArea(String area) {
|
||||
this.area = area;
|
||||
public void setParkingId(Integer parkingId) {
|
||||
this.parkingId = parkingId;
|
||||
}
|
||||
|
||||
public String getSpaceType() {
|
||||
return spaceType;
|
||||
public String getLicensePlate() {
|
||||
return licensePlate;
|
||||
}
|
||||
|
||||
public void setSpaceType(String spaceType) {
|
||||
this.spaceType = spaceType;
|
||||
public void setLicensePlate(String licensePlate) {
|
||||
this.licensePlate = licensePlate;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
public String getEntryTime() {
|
||||
return entryTime;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
public void setEntryTime(String entryTime) {
|
||||
this.entryTime = entryTime;
|
||||
}
|
||||
|
||||
public double getPrice() {
|
||||
return price;
|
||||
public String getExitTime() {
|
||||
return exitTime;
|
||||
}
|
||||
|
||||
public void setPrice(double price) {
|
||||
this.price = price;
|
||||
public void setExitTime(String exitTime) {
|
||||
this.exitTime = exitTime;
|
||||
}
|
||||
|
||||
// 车位状态(空闲、已占用)
|
||||
private String status;
|
||||
// 车位价格
|
||||
private double price;
|
||||
public void printInfo() {
|
||||
System.out.println("ParkingLotSpace{" +
|
||||
"车位编号=" + spaceNumber +
|
||||
", 车位所在区域='" + area + '\'' +
|
||||
", 车位类型='" + spaceType + '\'' +
|
||||
", 车位状态='" + status + '\'' +
|
||||
", 车位价格='" + price + '\'' +
|
||||
'}');
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TingchexinxiModel{" +
|
||||
"停车ID=" + parkingId +
|
||||
", 车牌号='" + licensePlate + '\'' +
|
||||
", 进入时间=" + entryTime +
|
||||
", 离开时间=" + exitTime +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,41 @@
|
||||
package com.ssm.entity;
|
||||
|
||||
public class UserModel {
|
||||
private int userid;//用户id
|
||||
private String username;//用户名
|
||||
private int userpw;//用户密码
|
||||
private int userphone;//用户电话
|
||||
|
||||
public int getUserid() {
|
||||
return userid;
|
||||
}
|
||||
|
||||
public void setUserid(int userid) {
|
||||
this.userid = userid;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public int getUserpw() {
|
||||
return userpw;
|
||||
}
|
||||
|
||||
public void setUserpw(int userpw) {
|
||||
this.userpw = userpw;
|
||||
}
|
||||
|
||||
public int getUserphone() {
|
||||
return userphone;
|
||||
}
|
||||
|
||||
public void setUserphone(int userphone) {
|
||||
this.userphone = userphone;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in new issue