parent
a9f3a87f9b
commit
35ecc54e3f
@ -0,0 +1,16 @@
|
||||
package com.ssm.controller;
|
||||
|
||||
import com.ssm.entity.TingchexinxiModel;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("tingchexinxi")
|
||||
public class TingchexinxiController {
|
||||
@RequestMapping("add")
|
||||
public String test(TingchexinxiModel tingchexinxi) {
|
||||
System.out.println("停车信息" + tingchexinxi.toString());
|
||||
return "showTingchexinxi";
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,58 @@
|
||||
package com.ssm.entity;
|
||||
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class TingchexinxiModel {
|
||||
// 停车ID
|
||||
private Integer parkingId;
|
||||
// 车牌号
|
||||
private String licensePlate;
|
||||
// 进入时间
|
||||
private String entryTime;
|
||||
// 离开时间
|
||||
private String exitTime;
|
||||
|
||||
public Integer getParkingId() {
|
||||
return parkingId;
|
||||
}
|
||||
|
||||
public void setParkingId(Integer parkingId) {
|
||||
this.parkingId = parkingId;
|
||||
}
|
||||
|
||||
public String getLicensePlate() {
|
||||
return licensePlate;
|
||||
}
|
||||
|
||||
public void setLicensePlate(String licensePlate) {
|
||||
this.licensePlate = licensePlate;
|
||||
}
|
||||
|
||||
public String getEntryTime() {
|
||||
return entryTime;
|
||||
}
|
||||
|
||||
public void setEntryTime(String entryTime) {
|
||||
this.entryTime = entryTime;
|
||||
}
|
||||
|
||||
public String getExitTime() {
|
||||
return exitTime;
|
||||
}
|
||||
|
||||
public void setExitTime(String exitTime) {
|
||||
this.exitTime = exitTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TingchexinxiModel{" +
|
||||
"停车ID=" + parkingId +
|
||||
", 车牌号='" + licensePlate + '\'' +
|
||||
", 进入时间=" + entryTime +
|
||||
", 离开时间=" + exitTime +
|
||||
'}';
|
||||
}
|
||||
}
|
Loading…
Reference in new issue