From 27946162d3735ade75a2290ca69fd7dd0e871c28 Mon Sep 17 00:00:00 2001 From: Wangyixin <1572093253@qq.com> Date: Wed, 2 Apr 2025 17:41:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=B7=E8=BE=93=E5=85=A5=E8=BE=93=E4=B8=80?= =?UTF-8?q?=E8=B7=B3=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/encodings.xml | 7 + .idea/uiDesigner.xml | 124 ++++++++++++++++++ .../ssm/controller/TestTcqyController.class | Bin 1012 -> 1011 bytes .../com/ssm/controller/YuyueController.class | Bin 1061 -> 1049 bytes .../WEB-INF/classes/springmvc.xml | 12 +- .../WEB-INF/view/showYuyue.jsp | 15 --- .../ssm/controller/TestTcqyController.class | Bin 1012 -> 1011 bytes .../com/ssm/controller/YuyueController.class | Bin 1061 -> 1049 bytes .../springmvc.xml | 12 +- .../ssm/controller/TestYyxtController.java | 19 +++ src/com/ssm/entity/TcqyModel.java | 20 +-- src/com/ssm/entity/YyxtModel.java | 121 +++++++++++++++++ src/springmvc.xml | 12 +- web/WEB-INF/view/showYuyue.jsp | 15 --- web/WEB-INF/view/showYyxt.jsp | 30 +++++ web/addYyxt.jsp | 42 ++++++ 16 files changed, 380 insertions(+), 49 deletions(-) create mode 100644 .idea/encodings.xml create mode 100644 .idea/uiDesigner.xml delete mode 100644 out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/WEB-INF/view/showYuyue.jsp create mode 100644 src/com/ssm/controller/TestYyxtController.java create mode 100644 src/com/ssm/entity/YyxtModel.java delete mode 100644 web/WEB-INF/view/showYuyue.jsp create mode 100644 web/WEB-INF/view/showYyxt.jsp create mode 100644 web/addYyxt.jsp diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..570a216 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml new file mode 100644 index 0000000..2b63946 --- /dev/null +++ b/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file 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 index 2f70bce6fc22e7dcc45e0383905b7bba04674a15..f60a18a09f7ffa1dabe3c7ed0c00f5ffa21235d1 100644 GIT binary patch delta 22 dcmeyu{+WG)1rsMnaYlZ5NOEE2W+$dii~wL>2mJs5 delta 23 ecmey&{)K&m1rrx%aYlZ5WNBq->Sjl#O^g6)AP9Z{ diff --git a/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/WEB-INF/classes/com/ssm/controller/YuyueController.class b/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/WEB-INF/classes/com/ssm/controller/YuyueController.class index 3d6401e5afdb50c78615659b916b3d843178ff20..097bb9d0c6aa903bb0abc1c6383d566f454ac7a0 100644 GIT binary patch delta 35 tcmV+;0Nnqj2$=}5<^dKJ=)I=szJ}?dgy*`Z - + + + @@ -15,9 +17,13 @@ - + + + - + + + diff --git a/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/WEB-INF/view/showYuyue.jsp b/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/WEB-INF/view/showYuyue.jsp deleted file mode 100644 index f44b357..0000000 --- a/out/artifacts/parkingmanagement_SpringMVCProject_2403_war_exploded/WEB-INF/view/showYuyue.jsp +++ /dev/null @@ -1,15 +0,0 @@ -<%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> - - - - -展示Controller接收及响应数据 - - -Success! -
-车位预约信息已在控制台输出! - - - \ No newline at end of file diff --git a/out/production/parkingmanagement-SpringMVCProject-2403/com/ssm/controller/TestTcqyController.class b/out/production/parkingmanagement-SpringMVCProject-2403/com/ssm/controller/TestTcqyController.class index 2f70bce6fc22e7dcc45e0383905b7bba04674a15..f60a18a09f7ffa1dabe3c7ed0c00f5ffa21235d1 100644 GIT binary patch delta 22 dcmeyu{+WG)1rsMnaYlZ5NOEE2W+$dii~wL>2mJs5 delta 23 ecmey&{)K&m1rrx%aYlZ5WNBq->Sjl#O^g6)AP9Z{ diff --git a/out/production/parkingmanagement-SpringMVCProject-2403/com/ssm/controller/YuyueController.class b/out/production/parkingmanagement-SpringMVCProject-2403/com/ssm/controller/YuyueController.class index 3d6401e5afdb50c78615659b916b3d843178ff20..097bb9d0c6aa903bb0abc1c6383d566f454ac7a0 100644 GIT binary patch delta 35 tcmV+;0Nnqj2$=}5<^dKJ=)I=szJ}?dgy*`Z - + + + @@ -15,9 +17,13 @@ - + + + - + + + diff --git a/src/com/ssm/controller/TestYyxtController.java b/src/com/ssm/controller/TestYyxtController.java new file mode 100644 index 0000000..3eba04f --- /dev/null +++ b/src/com/ssm/controller/TestYyxtController.java @@ -0,0 +1,19 @@ +package com.ssm.controller; + +import com.ssm.entity.TcqyModel; +import com.ssm.entity.YyxtModel; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.servlet.ModelAndView; + +@Controller +@RequestMapping("yyxt") +public class TestYyxtController { + @RequestMapping("tj") + public ModelAndView test(YyxtModel yyxt){ + ModelAndView mv=new ModelAndView("showYyxt"); + //���������showTingchequyu���浽ModelAndView������ + mv.addObject("yyxtInfo", yyxt); + return mv; + } +} diff --git a/src/com/ssm/entity/TcqyModel.java b/src/com/ssm/entity/TcqyModel.java index 07425ff..10982a4 100644 --- a/src/com/ssm/entity/TcqyModel.java +++ b/src/com/ssm/entity/TcqyModel.java @@ -6,62 +6,62 @@ 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; diff --git a/src/com/ssm/entity/YyxtModel.java b/src/com/ssm/entity/YyxtModel.java new file mode 100644 index 0000000..05fa460 --- /dev/null +++ b/src/com/ssm/entity/YyxtModel.java @@ -0,0 +1,121 @@ +package com.ssm.entity; + +import org.springframework.format.annotation.DateTimeFormat; + +import java.util.Date; + +public class YyxtModel { + /** + * 预约车位编号 + */ + private Integer Yyxtid; + + + /** + * 预约车名称 + */ + private String YyxtName; + + + /** + * 预约车数量 + */ + private Integer YyxtNumber; + + + /** + * 详情信息 + */ + private String YyxtContent; + + + + + /** + * 是否 + */ + private String Yyxtsf; + + + /** + * 日期 + */ + @DateTimeFormat(pattern = "yyyy-MM-dd") + private Date YyxtDate; + + + /** + * 价格 + */ + private Float YyxtMoney; + + + /** + * 分类名称 + */ + private String Yyxtfl; + + public Integer getYyxtid() { + return Yyxtid; + } + + public void setYyxtid(Integer yyxtid) { + Yyxtid = yyxtid; + } + + public String getYyxtName() { + return YyxtName; + } + + public void setYyxtName(String yyxtName) { + YyxtName = yyxtName; + } + + public Integer getYyxtNumber() { + return YyxtNumber; + } + + public void setYyxtNumber(Integer yyxtNumber) { + YyxtNumber = yyxtNumber; + } + + public String getYyxtContent() { + return YyxtContent; + } + + public void setYyxtContent(String yyxtContent) { + YyxtContent = yyxtContent; + } + + public String getYyxtsf() { + return Yyxtsf; + } + + public void setYyxtsf(String yyxtsf) { + Yyxtsf = yyxtsf; + } + + public Date getYyxtDate() { + return YyxtDate; + } + + public void setYyxtDate(Date yyxtDate) { + YyxtDate = yyxtDate; + } + + public Float getYyxtMoney() { + return YyxtMoney; + } + + public void setYyxtMoney(Float yyxtMoney) { + YyxtMoney = yyxtMoney; + } + + public String getYyxtfl() { + return Yyxtfl; + } + + public void setYyxtfl(String yyxtfl) { + Yyxtfl = yyxtfl; + } +} diff --git a/src/springmvc.xml b/src/springmvc.xml index a202e8b..2adf2f2 100644 --- a/src/springmvc.xml +++ b/src/springmvc.xml @@ -7,7 +7,9 @@ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/tool http://www.springframework.org/schema/tool/spring-tool.xsd http://www.springframework.org/schema/mvc https://www.springframework.org/schema/mvc/spring-mvc.xsd"> - + + + @@ -15,9 +17,13 @@ - + + + - + + + diff --git a/web/WEB-INF/view/showYuyue.jsp b/web/WEB-INF/view/showYuyue.jsp deleted file mode 100644 index f44b357..0000000 --- a/web/WEB-INF/view/showYuyue.jsp +++ /dev/null @@ -1,15 +0,0 @@ -<%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> - - - - -展示Controller接收及响应数据 - - -Success! -
-车位预约信息已在控制台输出! - - - \ No newline at end of file diff --git a/web/WEB-INF/view/showYyxt.jsp b/web/WEB-INF/view/showYyxt.jsp new file mode 100644 index 0000000..f0f0a76 --- /dev/null +++ b/web/WEB-INF/view/showYyxt.jsp @@ -0,0 +1,30 @@ +<%-- + Created by IntelliJ IDEA. + User: Wangyixin + Date: 2025/4/2 + Time: 14:25 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 展示预约车位分类信息 + + +Success! +
+预约车位编号:${yyxtInfo.yyxtid} +
+预约车名称:${yyxtInfo.yyxtName} +
+是否有车位:${yyxtInfo.yyxtsf} +
+预约车数量:${yyxtInfo.yyxtNumber} +
+预约车位分类名称:${yyxtInfo.yyxtfl} +
+详情:${yyxtInfo.yyxtContent} +
+预约车位日期:${yyxtInfo.yyxtDate} + + diff --git a/web/addYyxt.jsp b/web/addYyxt.jsp new file mode 100644 index 0000000..4fe2b96 --- /dev/null +++ b/web/addYyxt.jsp @@ -0,0 +1,42 @@ +<%-- + Created by IntelliJ IDEA. + User: Wangyixin + Date: 2025/4/2 + Time: 14:15 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 添加车位预约管理信息 + + +
+ 预约车位编号: +
+ 预约车名称: +
+ 是否有车位: +
+ 预约车数量: +
+ 预约车位价格: +
+ 预约车位照片: +
+ 预约车位分类名称: +
+ 详情: +
+ 预约车位日期: +
+ +                                +                                + +
+ +