diff --git a/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/WEB-INF/classes/com/ssm/controller/TestTcqyController.class b/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/WEB-INF/classes/com/ssm/controller/TestTcqyController.class new file mode 100644 index 0000000..2f70bce Binary files /dev/null and b/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/WEB-INF/classes/com/ssm/controller/TestTcqyController.class differ diff --git a/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/WEB-INF/classes/com/ssm/entity/TcqyModel.class b/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/WEB-INF/classes/com/ssm/entity/TcqyModel.class new file mode 100644 index 0000000..871087a Binary files /dev/null and b/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/WEB-INF/classes/com/ssm/entity/TcqyModel.class differ diff --git a/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/WEB-INF/view/showTcqy.jsp b/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/WEB-INF/view/showTcqy.jsp new file mode 100644 index 0000000..56c62f3 --- /dev/null +++ b/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/WEB-INF/view/showTcqy.jsp @@ -0,0 +1,30 @@ +<%-- + Created by IntelliJ IDEA. + User: DELL + Date: 2025/3/31 + Time: 16:56 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 展示车位分类信息 + + +Success! +
+区域编号:${tcqyInfo.id} +
+区域名称:${tcqyInfo.tingchequyuName} +
+是否有车位:${tcqyInfo.tingchequyusf} +
+车位数量:${tcqyInfo.tingchequyuNumber} +
+车分类名称:${tcqyInfo.tingchequyufl} +
+详情:${tcqyInfo.tingchequyuContent} +
+停车日期:${tcqyInfo.tingchequyuDate} + + diff --git a/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/addTcqy.jsp b/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/addTcqy.jsp new file mode 100644 index 0000000..0c2e765 --- /dev/null +++ b/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/addTcqy.jsp @@ -0,0 +1,42 @@ +<%-- + Created by IntelliJ IDEA. + User: DELL + Date: 2025/3/31 + Time: 16:16 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 添加停车区域信息 + + +
+ 区域编号: +
+ 区域名称: +
+ 是否有车位: +
+ 车位数量: +
+ 车位价格: +
+ 车位照片: +
+ 车分类名称: +
+ 详情: +
+ 停车日期: +
+ +                                +                                + +
+ + diff --git a/out/production/parkingmanagement-SpringMVCProject-2403/com/ssm/controller/TestTcqyController.class b/out/production/parkingmanagement-SpringMVCProject-2403/com/ssm/controller/TestTcqyController.class new file mode 100644 index 0000000..2f70bce Binary files /dev/null and b/out/production/parkingmanagement-SpringMVCProject-2403/com/ssm/controller/TestTcqyController.class differ diff --git a/out/production/parkingmanagement-SpringMVCProject-2403/com/ssm/entity/TcqyModel.class b/out/production/parkingmanagement-SpringMVCProject-2403/com/ssm/entity/TcqyModel.class new file mode 100644 index 0000000..871087a Binary files /dev/null and b/out/production/parkingmanagement-SpringMVCProject-2403/com/ssm/entity/TcqyModel.class differ diff --git a/src/com/ssm/controller/TestTcqyController.java b/src/com/ssm/controller/TestTcqyController.java new file mode 100644 index 0000000..07214f4 --- /dev/null +++ b/src/com/ssm/controller/TestTcqyController.java @@ -0,0 +1,22 @@ +package com.ssm.controller; + +import com.ssm.entity.TcqyModel; +import com.ssm.entity.TingchequyuModel; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.servlet.ModelAndView; + +@Controller +@RequestMapping("tcqy") +public class TestTcqyController { + //ʽݣModelAndViewӦ + @RequestMapping("tianjia") + public ModelAndView test(TcqyModel tcqy){ + //ModelAndViewͬʱviewϢ + ModelAndView mv=new ModelAndView("showTcqy"); + //showTingchequyu浽ModelAndView + mv.addObject("tcqyInfo", tcqy); + return mv; + } + + } diff --git a/src/com/ssm/entity/TcqyModel.java b/src/com/ssm/entity/TcqyModel.java new file mode 100644 index 0000000..07425ff --- /dev/null +++ b/src/com/ssm/entity/TcqyModel.java @@ -0,0 +1,149 @@ +package com.ssm.entity; + +import org.springframework.format.annotation.DateTimeFormat; + +import java.util.Date; + +public class TcqyModel { + /** + * + */ + private Integer id; + + + /** + * + */ + private String tingchequyuName; + + + /** + * λ + */ + private Integer tingchequyuNumber; + + + /** + * Ϣ + */ + private String tingchequyuContent; + + + /** + * ¼ʱ + */ + private String insertTime; + + + /** + * ʱ + */ + private String createTime; + + + /** + * Ƿ + */ + private String tingchequyusf; + + + /** + * + */ + @DateTimeFormat(pattern = "yyyy-MM-dd") + private Date tingchequyuDate; + + + /** + * ۸ + */ + private Float tingchequyuMoney; + + + /** + * + */ + private String tingchequyufl; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getTingchequyuName() { + return tingchequyuName; + } + + public void setTingchequyuName(String tingchequyuName) { + this.tingchequyuName = tingchequyuName; + } + + public Integer getTingchequyuNumber() { + return tingchequyuNumber; + } + + public void setTingchequyuNumber(Integer tingchequyuNumber) { + this.tingchequyuNumber = tingchequyuNumber; + } + + public String getTingchequyuContent() { + return tingchequyuContent; + } + + public void setTingchequyuContent(String tingchequyuContent) { + this.tingchequyuContent = tingchequyuContent; + } + + public String getInsertTime() { + return insertTime; + } + + public void setInsertTime(String insertTime) { + this.insertTime = insertTime; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getTingchequyusf() { + return tingchequyusf; + } + + public Date getTingchequyuDate() { + return tingchequyuDate; + } + + public void setTingchequyuDate(Date tingchequyuDate) { + this.tingchequyuDate = tingchequyuDate; + } + + public Float getTingchequyuMoney() { + return tingchequyuMoney; + } + + public void setTingchequyuMoney(Float tingchequyuMoney) { + this.tingchequyuMoney = tingchequyuMoney; + } + + public String getTingchequyufl() { + return tingchequyufl; + } + + public void setTingchequyufl(String tingchequyufl) { + this.tingchequyufl = tingchequyufl; + } + + public void setTingchequyusf(String tingchequyusf) { + this.tingchequyusf = tingchequyusf; + + + } +} diff --git a/web/WEB-INF/view/showTcqy.jsp b/web/WEB-INF/view/showTcqy.jsp new file mode 100644 index 0000000..56c62f3 --- /dev/null +++ b/web/WEB-INF/view/showTcqy.jsp @@ -0,0 +1,30 @@ +<%-- + Created by IntelliJ IDEA. + User: DELL + Date: 2025/3/31 + Time: 16:56 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 展示车位分类信息 + + +Success! +
+区域编号:${tcqyInfo.id} +
+区域名称:${tcqyInfo.tingchequyuName} +
+是否有车位:${tcqyInfo.tingchequyusf} +
+车位数量:${tcqyInfo.tingchequyuNumber} +
+车分类名称:${tcqyInfo.tingchequyufl} +
+详情:${tcqyInfo.tingchequyuContent} +
+停车日期:${tcqyInfo.tingchequyuDate} + + diff --git a/web/addTcqy.jsp b/web/addTcqy.jsp new file mode 100644 index 0000000..0c2e765 --- /dev/null +++ b/web/addTcqy.jsp @@ -0,0 +1,42 @@ +<%-- + Created by IntelliJ IDEA. + User: DELL + Date: 2025/3/31 + Time: 16:16 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 添加停车区域信息 + + +
+ 区域编号: +
+ 区域名称: +
+ 是否有车位: +
+ 车位数量: +
+ 车位价格: +
+ 车位照片: +
+ 车分类名称: +
+ 详情: +
+ 停车日期: +
+ +                                +                                + +
+ +