├── .classpath ├── .project ├── .settings ├── .jsdtscope ├── org.eclipse.jdt.core.prefs ├── org.eclipse.wst.common.component ├── org.eclipse.wst.common.project.facet.core.xml ├── org.eclipse.wst.jsdt.ui.superType.container └── org.eclipse.wst.jsdt.ui.superType.name ├── README.md ├── WebRoot ├── META-INF │ └── MANIFEST.MF ├── WEB-INF │ ├── classes │ │ ├── applicationContext.xml │ │ ├── cn │ │ │ └── jmu │ │ │ │ ├── controller │ │ │ │ ├── ExFlightController.class │ │ │ │ ├── ExFlightProductController.class │ │ │ │ ├── ExitController.class │ │ │ │ ├── FlightController.class │ │ │ │ ├── LoginController.class │ │ │ │ ├── MonthReportController.class │ │ │ │ ├── RegisterController.class │ │ │ │ ├── RuleListController.class │ │ │ │ ├── TicketController.class │ │ │ │ └── UserController.class │ │ │ │ ├── mapper │ │ │ │ ├── AccountMapper.class │ │ │ │ ├── AccountMapper.xml │ │ │ │ ├── ExFlightMapper.class │ │ │ │ ├── ExFlightMapper.xml │ │ │ │ ├── ExFlightProductMapper.class │ │ │ │ ├── ExFlightProductMapper.xml │ │ │ │ ├── FlightMapper.class │ │ │ │ ├── FlightMapper.xml │ │ │ │ ├── FlightProductMapper.class │ │ │ │ ├── FlightProductMapper.xml │ │ │ │ ├── OrderListMapper.class │ │ │ │ ├── OrderListMapper.xml │ │ │ │ ├── RuleListMapper.class │ │ │ │ ├── RuleListMapper.xml │ │ │ │ ├── StatementMapper.class │ │ │ │ ├── StatementMapper.xml │ │ │ │ ├── TicketMapper.class │ │ │ │ ├── TicketMapper.xml │ │ │ │ ├── UserMapper.class │ │ │ │ └── UserMapper.xml │ │ │ │ ├── po │ │ │ │ ├── Account.class │ │ │ │ ├── ExFlight.class │ │ │ │ ├── ExFlightProduct.class │ │ │ │ ├── Flight.class │ │ │ │ ├── FlightAndFlightProduct.class │ │ │ │ ├── FlightProduct.class │ │ │ │ ├── FlightState.class │ │ │ │ ├── Member.class │ │ │ │ ├── OrderList.class │ │ │ │ ├── Passenger.class │ │ │ │ ├── RuleList.class │ │ │ │ ├── Statement.class │ │ │ │ ├── Ticket.class │ │ │ │ └── User.class │ │ │ │ ├── service │ │ │ │ ├── AccountService.class │ │ │ │ ├── ExFlightProductService.class │ │ │ │ ├── ExFlightService.class │ │ │ │ ├── FlightProductService.class │ │ │ │ ├── FlightService.class │ │ │ │ ├── OrderListService.class │ │ │ │ ├── RuleListService.class │ │ │ │ ├── StatementService.class │ │ │ │ ├── TicketService.class │ │ │ │ ├── UserService.class │ │ │ │ └── impl │ │ │ │ │ ├── AccountServiceImpl.class │ │ │ │ │ ├── ExFlightProductServiceImpl.class │ │ │ │ │ ├── ExFlightServiceImpl.class │ │ │ │ │ ├── FlightProductServiceImpl.class │ │ │ │ │ ├── FlightServiceImpl.class │ │ │ │ │ ├── OrderListServiceImpl.class │ │ │ │ │ ├── RuleListServiceImpl.class │ │ │ │ │ ├── StatementServiceImpl.class │ │ │ │ │ ├── TicketServiceImpl.class │ │ │ │ │ └── UserServiceImpl.class │ │ │ │ └── test │ │ │ │ └── SSMTest.class │ │ ├── db.properties │ │ ├── log4j.properties │ │ ├── mybatis-config.xml │ │ └── springmvc.xml │ ├── lib │ │ ├── ant-1.9.6.jar │ │ ├── ant-launcher-1.9.6.jar │ │ ├── aopalliance-1.0.jar │ │ ├── asm-5.2.jar │ │ ├── aspectjweaver-1.8.10.jar │ │ ├── cglib-3.2.5.jar │ │ ├── commons-dbcp2-2.2.0.jar │ │ ├── commons-logging-1.2.jar │ │ ├── commons-pool2-2.5.0.jar │ │ ├── javassist-3.22.0-CR2.jar │ │ ├── jcommon-1.0.23.jar │ │ ├── jfreechart-1.0.19.jar │ │ ├── jstl-1.2.jar │ │ ├── log4j-1.2.17.jar │ │ ├── log4j-api-2.3.jar │ │ ├── log4j-core-2.3.jar │ │ ├── mybatis-3.4.5.jar │ │ ├── mybatis-spring-1.3.1.jar │ │ ├── mysql.jar │ │ ├── ognl-3.1.15.jar │ │ ├── slf4j-api-1.7.25.jar │ │ ├── slf4j-log4j12-1.7.25.jar │ │ ├── spring-aop-4.3.6.RELEASE.jar │ │ ├── spring-aspects-4.3.6.RELEASE.jar │ │ ├── spring-beans-4.3.6.RELEASE.jar │ │ ├── spring-context-4.3.6.RELEASE.jar │ │ ├── spring-core-4.3.6.RELEASE.jar │ │ ├── spring-expression-4.3.6.RELEASE.jar │ │ ├── spring-jdbc-4.3.6.RELEASE.jar │ │ ├── spring-tx-4.3.6.RELEASE.jar │ │ ├── spring-web-4.3.6.RELEASE.jar │ │ └── spring-webmvc-4.3.6.RELEASE.jar │ └── web.xml ├── addUser.jsp ├── css │ ├── addUser.css │ ├── booking.css │ ├── cityselector.css │ ├── index.css │ ├── login.css │ ├── manage.css │ ├── myAccount.css │ ├── myOrder.css │ ├── queryResult1.css │ ├── queryResult1_1.css │ ├── rules.css │ └── user.css ├── img │ ├── air.jpg │ ├── background.jpg │ ├── brand.png │ └── update.png ├── index.jsp ├── index_QueryFlightOrder.jsp ├── index_QueryFlightState.jsp ├── index_QueryFlightState2.jsp ├── js │ └── cityselect.js ├── laydate │ ├── laydate.js │ └── theme │ │ └── default │ │ ├── font │ │ ├── iconfont.eot │ │ ├── iconfont.svg │ │ ├── iconfont.ttf │ │ └── iconfont.woff │ │ └── laydate.css ├── login.jsp ├── manageFlight │ ├── addNewFlight.jsp │ ├── assets │ │ ├── css │ │ │ ├── addNew.css │ │ │ ├── bootstrap-theme.min.css │ │ │ ├── bootstrap.css │ │ │ ├── checkbox3.min.css │ │ │ ├── common.css │ │ │ ├── custom-styles.css │ │ │ ├── font-awesome.css │ │ │ └── select2.min.css │ │ ├── font-awesome │ │ │ └── fonts │ │ │ │ ├── fontawesome-webfontba72.eot │ │ │ │ ├── fontawesome-webfontba72.svg │ │ │ │ ├── fontawesome-webfontba72.ttf │ │ │ │ ├── fontawesome-webfontba72.woff │ │ │ │ └── fontawesome-webfontd41d.eot │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ └── glyphicons-halflings-regulard41d.eot │ │ └── js │ │ │ ├── bootstrap.min.js │ │ │ ├── custom-scripts.js │ │ │ ├── jquery-1.10.2.js │ │ │ ├── jquery.metisMenu.js │ │ │ └── morris │ │ │ ├── morris-0.4.3.min.css │ │ │ ├── morris.js │ │ │ └── raphael-2.1.0.min.js │ ├── exFlightProductUpdate.jsp │ ├── manageExFlight.jsp │ ├── manageExFlightProduct.jsp │ ├── manageExFlightUpdate.jsp │ ├── manageFlight.jsp │ ├── manageFlightUpdate.jsp │ ├── manageRules.jsp │ ├── monthReport.jsp │ └── preMonthReport.jsp ├── rules.jsp └── user │ ├── booking.jsp │ ├── myAccount.jsp │ ├── myOrder.jsp │ ├── rules.jsp │ ├── user.jsp │ ├── user_QueryFlightOrder.jsp │ ├── user_QueryFlightState.jsp │ └── user_QueryFlightState2.jsp ├── config ├── applicationContext.xml ├── db.properties ├── log4j.properties ├── mybatis-config.xml └── springmvc.xml ├── db ├── createdata.sql └── createdb.sql ├── raw ├── 1.png ├── 2.png ├── 3.png └── 4.png └── src └── cn └── jmu ├── controller ├── ExFlightController.java ├── ExFlightProductController.java ├── ExitController.java ├── FlightController.java ├── LoginController.java ├── MonthReportController.java ├── RegisterController.java ├── RuleListController.java ├── TicketController.java └── UserController.java ├── mapper ├── AccountMapper.java ├── AccountMapper.xml ├── ExFlightMapper.java ├── ExFlightMapper.xml ├── ExFlightProductMapper.java ├── ExFlightProductMapper.xml ├── FlightMapper.java ├── FlightMapper.xml ├── FlightProductMapper.java ├── FlightProductMapper.xml ├── OrderListMapper.java ├── OrderListMapper.xml ├── RuleListMapper.java ├── RuleListMapper.xml ├── StatementMapper.java ├── StatementMapper.xml ├── TicketMapper.java ├── TicketMapper.xml ├── UserMapper.java └── UserMapper.xml ├── po ├── Account.java ├── ExFlight.java ├── ExFlightProduct.java ├── Flight.java ├── FlightAndFlightProduct.java ├── FlightProduct.java ├── FlightState.java ├── Member.java ├── OrderList.java ├── Passenger.java ├── RuleList.java ├── Statement.java ├── Ticket.java └── User.java ├── service ├── AccountService.java ├── ExFlightProductService.java ├── ExFlightService.java ├── FlightProductService.java ├── FlightService.java ├── OrderListService.java ├── RuleListService.java ├── StatementService.java ├── TicketService.java ├── UserService.java └── impl │ ├── AccountServiceImpl.java │ ├── ExFlightProductServiceImpl.java │ ├── ExFlightServiceImpl.java │ ├── FlightProductServiceImpl.java │ ├── FlightServiceImpl.java │ ├── OrderListServiceImpl.java │ ├── RuleListServiceImpl.java │ ├── StatementServiceImpl.java │ ├── TicketServiceImpl.java │ └── UserServiceImpl.java └── test └── SSMTest.java /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | aerosys 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.wst.common.project.facet.core.builder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.validation.validationbuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.jem.workbench.JavaEMFNature 26 | org.eclipse.wst.common.modulecore.ModuleCoreNature 27 | org.eclipse.wst.common.project.facet.core.nature 28 | org.eclipse.jdt.core.javanature 29 | org.eclipse.wst.jsdt.core.jsNature 30 | 31 | 32 | -------------------------------------------------------------------------------- /.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.8 8 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Uproject 航空订票系统与后台管理 软件工程课设项目 2 | ### 预览图片在raw文件夹下。有用的话可以给一颗星,多谢了。 3 | ### clone到本地后,首先确保配置正确 4 | 1. 更改config/db.properties下的数据库连接,确保连接本地数据库 5 | 2. 创建数据库,数据铺底,sql文件在db目录下 6 | 3. 在eclipse或idea中打开项目,配置tomcat 7 | 4. 启动tomcat,访问主页http://localhost:8080/proj/index.jsp 登录密码,数据铺底文件有写account:13515070051 password:123456 8 | 5. 项目部分页面预览: 9 | ![主页](https://github.com/lingfenghu/uni_project_java/blob/master/raw/2.png) 10 | ![后台管理](https://github.com/lingfenghu/uni_project_java/blob/master/raw/4.png) 11 | ![登录](https://github.com/lingfenghu/uni_project_java/blob/master/raw/3.png) 12 | 13 | ### 欢迎参观 14 | * [个人主页](https://lingfenghu.github.io/) 15 | 16 | -------------------------------------------------------------------------------- /WebRoot/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/controller/ExFlightController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/controller/ExFlightController.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/controller/ExFlightProductController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/controller/ExFlightProductController.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/controller/ExitController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/controller/ExitController.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/controller/FlightController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/controller/FlightController.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/controller/LoginController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/controller/LoginController.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/controller/MonthReportController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/controller/MonthReportController.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/controller/RegisterController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/controller/RegisterController.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/controller/RuleListController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/controller/RuleListController.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/controller/TicketController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/controller/TicketController.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/controller/UserController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/controller/UserController.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/mapper/AccountMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/mapper/AccountMapper.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/mapper/AccountMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 12 | 13 | insert into Account(account,password,[right]) values(#{account},#{password},#{right}) 14 | 15 | 16 | 17 | update account set password=#{password} where account.account=#{account} 18 | 19 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/mapper/ExFlightMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/mapper/ExFlightMapper.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/mapper/ExFlightProductMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/mapper/ExFlightProductMapper.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/mapper/ExFlightProductMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 23 | 24 | 27 | 28 | 29 | update ExFlightProduct set price=#{price},pointPrice=#{pointPrice},leftTicketNum=#{leftTicketNum},onSale=#{onSale} where flightID=#{flightID} and 30 | exFlightDate=#{exFlightDate} and flightProductID=#{flightProductID} 31 | 32 | 33 | 38 | 39 | 43 | 44 | 45 | update exFlightProduct set leftTicketNum = leftTicketNum - #{num} where flightProductID=#{flightProductID} 46 | and exFlightDate=#{exFlightDate} and exFlightDate=#{exFlightDate} 47 | 48 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/mapper/FlightMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/mapper/FlightMapper.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/mapper/FlightMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 12 | 13 | 14 | update flight set flightID=#{flightID},preDepartTime=#{preDepartTime},preTotalTime=#{preTotalTime}, 15 | flightType=#{flightType},totalSeatNum=#{totalSeatNum},departCity=#{departCity},arriveCity=#{arriveCity}, 16 | insurancePrice=#{insurancePrice} where flightID=#{flightID} 17 | 18 | 19 | insert into Flight(flightID,preDepartTime,preTotalTime,flightType,totalSeatNum,departCity,arriveCity,insurancePrice) 20 | values(#{flightID},#{preDepartTime},#{preTotalTime},#{flightType},#{totalSeatNum},#{departCity},#{arriveCity},#{insurancePrice}) 21 | 22 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/mapper/FlightProductMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/mapper/FlightProductMapper.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/mapper/FlightProductMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 26 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/mapper/OrderListMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/mapper/OrderListMapper.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/mapper/OrderListMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | insert into OrderList(account,orderID,orderTime) values(#{account},#{orderID},#{orderTime}) 8 | 9 | 15 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/mapper/RuleListMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/mapper/RuleListMapper.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/mapper/RuleListMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 10 | update RuleList set ruleContext=#{ruleContext},reviseTime=#{reviseTime} where ruleID=1 11 | 12 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/mapper/StatementMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/mapper/StatementMapper.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/mapper/StatementMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/mapper/TicketMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/mapper/TicketMapper.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/mapper/TicketMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 10 | insert into Ticket(account,orderID,ticketID,flightID,exFlightDate,flightProductID,passengerName, 11 | passengerTel,passengerIDCard,insurance,payment,ticketPrice,passengerSex) values(#{account},#{orderID},#{ticketID}, 12 | #{flightID},#{exFlightDate},#{flightProductID},#{passengerName},#{passengerTel},#{passengerIDCard},#{insurance}, 13 | #{payment},#{ticketPrice},#{passengerSex}) 14 | 15 | 16 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/mapper/UserMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/mapper/UserMapper.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/mapper/UserMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | insert into Customer(account,memberID,password,[right],userName,birthdate,userIDCard,userTel,email,point,userSex) 26 | values(#{account},#{memberID},#{password},#{right},#{userName},#{birthdate},#{userIDCard},#{userTel},#{email},#{point},#{userSex}) 27 | 28 | 29 | 32 | 33 | 34 | update customer set userSex=#{userSex},userTel=#{userTel},email=#{email},password=#{password},point=#{point} 35 | where customer.account = #{account} 36 | 37 | 38 | 39 | update customer set point=#{point} where account=#{account} 40 | 41 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/po/Account.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/po/Account.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/po/ExFlight.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/po/ExFlight.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/po/ExFlightProduct.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/po/ExFlightProduct.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/po/Flight.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/po/Flight.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/po/FlightAndFlightProduct.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/po/FlightAndFlightProduct.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/po/FlightProduct.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/po/FlightProduct.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/po/FlightState.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/po/FlightState.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/po/Member.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/po/Member.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/po/OrderList.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/po/OrderList.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/po/Passenger.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/po/Passenger.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/po/RuleList.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/po/RuleList.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/po/Statement.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/po/Statement.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/po/Ticket.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/po/Ticket.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/po/User.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/po/User.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/service/AccountService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/service/AccountService.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/service/ExFlightProductService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/service/ExFlightProductService.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/service/ExFlightService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/service/ExFlightService.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/service/FlightProductService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/service/FlightProductService.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/service/FlightService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/service/FlightService.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/service/OrderListService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/service/OrderListService.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/service/RuleListService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/service/RuleListService.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/service/StatementService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/service/StatementService.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/service/TicketService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/service/TicketService.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/service/UserService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/service/UserService.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/service/impl/AccountServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/service/impl/AccountServiceImpl.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/service/impl/ExFlightProductServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/service/impl/ExFlightProductServiceImpl.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/service/impl/ExFlightServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/service/impl/ExFlightServiceImpl.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/service/impl/FlightProductServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/service/impl/FlightProductServiceImpl.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/service/impl/FlightServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/service/impl/FlightServiceImpl.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/service/impl/OrderListServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/service/impl/OrderListServiceImpl.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/service/impl/RuleListServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/service/impl/RuleListServiceImpl.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/service/impl/StatementServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/service/impl/StatementServiceImpl.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/service/impl/TicketServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/service/impl/TicketServiceImpl.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/service/impl/UserServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/service/impl/UserServiceImpl.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/cn/jmu/test/SSMTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/classes/cn/jmu/test/SSMTest.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/db.properties: -------------------------------------------------------------------------------- 1 | #jdbc.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver 2 | jdbc.driver=com.mysql.jdbc.Driver 3 | #jdbc.url=jdbc:sqlserver://localhost:1433;DatabaseName = aeroSys 4 | #172.21.0.100 5 | jdbc.url=jdbc:mysql://127.0.0.1:3306/aero_sys 6 | jdbc.username=root 7 | jdbc.password=123456 8 | 9 | jdbc.maxTotal=30 10 | jdbc.maxIdle=10 11 | jdbc.initialSize=5 12 | jdbc.validationQuery=select 1 -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/log4j.properties: -------------------------------------------------------------------------------- 1 | # Global logging configuration 2 | log4j.rootLogger=ERROR, stdout 3 | # MyBatis logging configuration... 4 | log4j.logger.cn.jmu=DEBUG 5 | # Console output... 6 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 7 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 8 | log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/mybatis-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/springmvc.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/ant-1.9.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/ant-1.9.6.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/ant-launcher-1.9.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/ant-launcher-1.9.6.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/aopalliance-1.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/aopalliance-1.0.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/asm-5.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/asm-5.2.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/aspectjweaver-1.8.10.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/aspectjweaver-1.8.10.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/cglib-3.2.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/cglib-3.2.5.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/commons-dbcp2-2.2.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/commons-dbcp2-2.2.0.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/commons-logging-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/commons-logging-1.2.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/commons-pool2-2.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/commons-pool2-2.5.0.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/javassist-3.22.0-CR2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/javassist-3.22.0-CR2.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/jcommon-1.0.23.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/jcommon-1.0.23.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/jfreechart-1.0.19.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/jfreechart-1.0.19.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/jstl-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/jstl-1.2.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/log4j-1.2.17.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/log4j-1.2.17.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/log4j-api-2.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/log4j-api-2.3.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/log4j-core-2.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/log4j-core-2.3.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/mybatis-3.4.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/mybatis-3.4.5.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/mybatis-spring-1.3.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/mybatis-spring-1.3.1.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/mysql.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/mysql.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/ognl-3.1.15.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/ognl-3.1.15.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/slf4j-api-1.7.25.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/slf4j-api-1.7.25.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/slf4j-log4j12-1.7.25.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/slf4j-log4j12-1.7.25.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/spring-aop-4.3.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/spring-aop-4.3.6.RELEASE.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/spring-aspects-4.3.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/spring-aspects-4.3.6.RELEASE.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/spring-beans-4.3.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/spring-beans-4.3.6.RELEASE.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/spring-context-4.3.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/spring-context-4.3.6.RELEASE.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/spring-core-4.3.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/spring-core-4.3.6.RELEASE.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/spring-expression-4.3.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/spring-expression-4.3.6.RELEASE.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/spring-jdbc-4.3.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/spring-jdbc-4.3.6.RELEASE.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/spring-tx-4.3.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/spring-tx-4.3.6.RELEASE.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/spring-web-4.3.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/spring-web-4.3.6.RELEASE.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/spring-webmvc-4.3.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/WEB-INF/lib/spring-webmvc-4.3.6.RELEASE.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | proj 4 | 5 | contextConfigLocation 6 | classpath:applicationContext.xml 7 | 8 | 9 | org.springframework.web.context.ContextLoaderListener 10 | 11 | 12 | encoding 13 | org.springframework.web.filter.CharacterEncodingFilter 14 | 15 | encoding 16 | UTF-8 17 | 18 | 19 | 20 | encoding 21 | /* 22 | 23 | 24 | springmvc 25 | org.springframework.web.servlet.DispatcherServlet 26 | 27 | contextConfigLocation 28 | classpath:springmvc.xml 29 | 30 | 1 31 | 32 | 33 | springmvc 34 | *.do 35 | 36 | 37 | 38 | NewFile.jsp 39 | 40 | 41 | DisplayChart 42 | org.jfree.chart.servlet.DisplayChart 43 | 44 | 45 | DisplayChart 46 | /servlet/DisplayChart 47 | 48 | -------------------------------------------------------------------------------- /WebRoot/addUser.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 中国蓝天航空公司 8 | 9 | 10 | 11 | 12 | 15 |
16 |

快速入会

17 |
18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 47 | 48 | 49 | 50 | 51 | 52 |
*中文姓名*手机号码
*证件类型 27 | 32 | *证件号码
*密码*确认密码
*生日*性别 44 | 男  45 | 女 46 |
*邮箱
53 |
54 | 55 |
56 |
57 |
58 |

温馨提示:

59 |

1、如使用外国人永久居留身份证,请选择"其他"证件进行入会。

60 |

2、填写的姓名需与所持证件保持一致,否则将影响乘机和积分入账。

61 |
62 |
63 | 64 | 80 | <% 81 | String f = String.valueOf(request.getAttribute("flag")); 82 | if(f.equals("no")){%> 83 | 86 | <%} 87 | %> 88 | -------------------------------------------------------------------------------- /WebRoot/css/addUser.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | html{ 3 | width:100%; 4 | height:100%; 5 | overflow:hidden; 6 | font-style: sans-serif; 7 | } 8 | body{ 9 | width: 100%; 10 | height: 100%; 11 | margin: 0; 12 | background-color: #f3f3f3; 13 | } 14 | #header{ 15 | width: 100%; 16 | height: 15%; 17 | padding: 5px 200px 0px; 18 | background-color: white; 19 | 20 | } 21 | #header a img{ 22 | width: 300px; 23 | height: 100%; 24 | } 25 | div.center{ 26 | position: absolute; 27 | top: 20%; 28 | left: 32%; 29 | width: 550px; 30 | border-top: 2px solid #bcbcbc; 31 | border-left: 2px solid #bcbcbc; 32 | border-right: 2px solid #bcbcbc; 33 | } 34 | div.center h3{ 35 | padding-left: 25px; 36 | } 37 | 38 | div.center #tip{ 39 | position: relative; 40 | left: 5px; 41 | font-size: 12px; 42 | } 43 | div.center form table{ 44 | border-collapse:separate; 45 | border-spacing:5px 25px; 46 | } 47 | div.center form table tr td{ 48 | padding: 1px 8px 1px; 49 | } 50 | div.center form #treaty{ 51 | position: relative; 52 | left: 15px; 53 | } 54 | div.center form label{ 55 | position: relative; 56 | left: 15px; 57 | } 58 | div.center form #bt{ 59 | position: relative; 60 | left:200px; 61 | width: 100px; 62 | height: 35px; 63 | border-radius: 8px; 64 | background-color: #62c1d9; 65 | } -------------------------------------------------------------------------------- /WebRoot/css/booking.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | body{ 3 | width: 100%; 4 | height: 100%; 5 | margin: 0; 6 | background-color: #f3f3f3; 7 | } 8 | #header{ 9 | width: 100%; 10 | height: 10%; 11 | padding: 5px 200px 0px; 12 | background-color: white; 13 | } 14 | #header a img{ 15 | width: 300px; 16 | height: 100%; 17 | } 18 | #header #personal{ 19 | position: relative; 20 | left: 55%; 21 | text-decoration: none; 22 | } 23 | #menubar{ 24 | width: 100%; 25 | height: 10%; 26 | background-color: white; 27 | 28 | } 29 | div.dropdown{ 30 | position: relative; 31 | display: inline-block; 32 | left: 20%; 33 | } 34 | button.dropbt{ 35 | width:200px; 36 | background-color: #ffffff; 37 | color: blue; 38 | padding: 10px; 39 | font-size: 15px; 40 | border: none; 41 | cursor: pointer; 42 | } 43 | div.content{ 44 | display: none; 45 | position: absolute; 46 | background-color: #e4e4e4; 47 | width: 200px; 48 | box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); 49 | } 50 | div.content a{ 51 | 52 | color: blue; 53 | padding: 10px 15px; 54 | text-decoration: none; 55 | text-align: center; 56 | display: block; 57 | } 58 | div.dropdown:hover .content{ 59 | display: block; 60 | } 61 | div.dropdown:hover .dropbt{ 62 | background: #44a2ff; 63 | color:white; 64 | } 65 | div.content a:hover{ 66 | color: #000000; 67 | background-color:#ffffff; 68 | } 69 | #middle{ 70 | margin-left: 400px; 71 | } -------------------------------------------------------------------------------- /WebRoot/css/cityselector.css: -------------------------------------------------------------------------------- 1 | /* citySelector */ 2 | .citySelector{ 3 | font:12px/1.5 tahoma,arial,\5b8b\4f53; 4 | background:#fff; 5 | text-align:left; 6 | } 7 | .cityslide{ 8 | width:250px; 9 | list-style:none; 10 | margin:0; 11 | padding:0; 12 | border:1px solid #B3CDC0; 13 | box-shadow:2px 2px 3px rgba(0,0,0,0.3); 14 | overflow:auto; 15 | max-height:300px; 16 | } 17 | .cityslide li{ 18 | list-style:none; 19 | overflow:hidden; 20 | height:30px; 21 | padding:0px 10px; 22 | line-height:30px; 23 | } 24 | .cityslide li.on{ 25 | background:#44a2ff; 26 | color:#fff; 27 | cursor:pointer; 28 | } 29 | .cityslide li:hover{ 30 | background:#44a2ff; 31 | color:#fff; 32 | cursor:pointer; 33 | } 34 | .cityslide li b{ 35 | font-weight:normal; 36 | } 37 | .cityslide li.empty{ 38 | background:#fff2e8; 39 | color:#666; 40 | } 41 | .cityslide li.empty em{ 42 | color:red; 43 | font-style:normal; 44 | } 45 | .cityname{ 46 | float:left; 47 | } 48 | .cityspell{ 49 | float:right; 50 | } 51 | .cityBox{ 52 | width: 450px; 53 | border:1px solid #B3CDC0; 54 | overflow:hidden; 55 | box-shadow:2px 2px 3px rgba(0,0,0,0.3); 56 | } 57 | .cityBox ul{ 58 | margin:0; 59 | padding:0; 60 | overflow:hidden; 61 | } 62 | .cityBox ul li:first-child{ 63 | margin-left:15px; 64 | font-size: 15px; 65 | } 66 | .cityBox ul li{ 67 | float:left; 68 | font-size: 15px; 69 | list-style:none; 70 | padding:10px; 71 | border-bottom:1px solid #DDD; 72 | cursor:pointer; 73 | display:inline; 74 | color:#44a2ff; 75 | } 76 | .cityBox ul li.on{ 77 | border-bottom-color:#44a2ff; 78 | position:relative; 79 | } 80 | .hide{ 81 | display:none; 82 | } 83 | p.tip{ 84 | color:#999; 85 | line-height:20px; 86 | padding:5px; 87 | margin:0; 88 | text-indent:3px; 89 | } 90 | .hotCity{ 91 | border-top:1px solid #DDD; 92 | margin-top:-1px; 93 | clear:left; 94 | overflow:hidden; 95 | padding-bottom:10px; 96 | padding-top:10px; 97 | _margin-bottom:8px; 98 | } 99 | .cityTab{ 100 | overflow:hidden; 101 | } 102 | .cityTab dl{ 103 | margin:0; 104 | padding:0 0 0 10px; 105 | overflow:hidden; 106 | } 107 | .cityTab dl dt{ 108 | float:left; 109 | padding-left:3px; 110 | color:#00a346; 111 | margin-top:1px; 112 | text-indent:5px; 113 | font-family:"Lucida console","consolas","courier new"; 114 | line-height:25px;font-size:20px; 115 | width:20px; 116 | } 117 | .cityTab dl dd{ 118 | margin-left:2px; 119 | float:left; 120 | width:400px; 121 | } 122 | .cityTab dl dd a{ 123 | padding-left:5px; 124 | min-width:70px; 125 | line-height:25px; 126 | display:inline-block; 127 | color:#333; 128 | text-decoration:none; 129 | font-size: 16px; 130 | } 131 | .cityTab dl dd a:hover{ 132 | color:#0000ff; 133 | } 134 | .cityinput{ 135 | font-size: 30px; 136 | padding-left: 2px; 137 | background: url(T1EPyLXm0hXXXXXXXX-200-100.png) no-repeat 150px 5px; 138 | border: 1px solid #D8D8D8; 139 | } -------------------------------------------------------------------------------- /WebRoot/css/index.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | html{ 3 | overflow-x: hidden; 4 | overflow-y: hidden; 5 | } 6 | body{ 7 | width: 100%; 8 | height: 100%; 9 | margin: 0px; 10 | } 11 | #header{ 12 | width: 100%; 13 | height: 10%; 14 | padding: 5px 200px 0px; 15 | background-color: white; 16 | } 17 | #header a img{ 18 | width: 300px; 19 | height: 100%; 20 | } 21 | #header .entrance{ 22 | position: relative; 23 | left: 40%; 24 | text-decoration: none; 25 | } 26 | #menubar{ 27 | width: 100%; 28 | height: 10%; 29 | margin: 0px; 30 | padding: 0px; 31 | background-color: white; 32 | } 33 | #menubar hr{ 34 | margin: 0px; 35 | } 36 | div.dropdown{ 37 | position: relative; 38 | display: inline-block; 39 | left: 20%; 40 | } 41 | button.dropbt{ 42 | width:200px; 43 | background-color: #ffffff; 44 | color: blue; 45 | padding: 10px; 46 | font-size: 15px; 47 | border: none; 48 | cursor: pointer; 49 | } 50 | div.content{ 51 | display: none; 52 | position: absolute; 53 | background-color: #e4e4e4; 54 | width: 200px; 55 | box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); 56 | } 57 | div.content a{ 58 | 59 | color: blue; 60 | padding: 10px 15px; 61 | text-decoration: none; 62 | text-align: center; 63 | display: block; 64 | } 65 | div.dropdown:hover .content{ 66 | display: block; 67 | } 68 | div.dropdown:hover .dropbt{ 69 | background: #44a2ff; 70 | color:white; 71 | } 72 | div.content a:hover{ 73 | color: #000000; 74 | background-color:#ffffff; 75 | } 76 | #middle{ 77 | width: 100%; 78 | height: 100%; 79 | padding: 5% 25% 12%; 80 | background-image:url("../img/air.jpg"); 81 | background-size: 100% 100%; 82 | background-attachment: fixed; 83 | } 84 | #tabbar{ 85 | width: 70%; 86 | } 87 | #tabbar input{ 88 | 89 | height: 30px; 90 | width: 35%; 91 | height: 45px; 92 | float: left; 93 | cursor: pointer; 94 | border: none; 95 | text-align: center; 96 | background-color: white; 97 | border-bottom: 2px solid #aeaeae; 98 | } 99 | #tabbar #tab1{ 100 | background-color: #44a2ff; 101 | } 102 | #tabcontent{ 103 | width: 48.8%; 104 | height: 250px; 105 | border: 3px solid #ffffff; 106 | background-color: none; 107 | 108 | } 109 | .tab_content tr td{ 110 | width: 15%; 111 | } 112 | .tab_content input{ 113 | height: 30px; 114 | width: 85%; 115 | } 116 | #tab1_content #ordeTicket{ 117 | float: right; 118 | margin-top: 30px; 119 | margin-right:35px; 120 | width: 210px; 121 | height: 50px; 122 | border-radius: 5px; 123 | background-color: #ff8000; 124 | cursor: pointer; 125 | } 126 | #tab2_content .queryFlight{ 127 | float: right; 128 | margin-top: 30px; 129 | margin-right:35px; 130 | width: 210px; 131 | height: 50px; 132 | border-radius: 5px; 133 | background-color: #ff8000; 134 | cursor: pointer; 135 | } 136 | #tabbar1{ 137 | margin-bottom: 20px; 138 | } 139 | #tab2_content #tabbar2{ 140 | margin-bottom: 18px; 141 | } 142 | #tabcontent #tab1_content{ 143 | display: block; 144 | } 145 | #tabcontent #tab2_content{ 146 | display: none; 147 | } 148 | #tab2_content_2 { 149 | display: none; 150 | } 151 | #tabbar1 input{ 152 | cursor: pointer; 153 | border: none; 154 | color: #000000; 155 | background: none; 156 | } 157 | #tabbar2 input{ 158 | cursor: pointer; 159 | border: none; 160 | color: #000000; 161 | background: none; 162 | } 163 | div p{ 164 | text-align: center; 165 | } -------------------------------------------------------------------------------- /WebRoot/css/login.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | html{ 3 | width:100%; 4 | height:100%; 5 | overflow:hidden; 6 | font-style: sans-serif; 7 | } 8 | body{ 9 | width: 100%; 10 | height: 100%; 11 | margin: 0px; 12 | } 13 | #header{ 14 | width: 100%; 15 | height: 10%; 16 | padding: 0px 200px 0px; 17 | } 18 | #center{ 19 | text-align: center; 20 | padding: 7% 38% 15%; 21 | height: 70%; 22 | background-image:url("../img/background.jpg"); 23 | background-size: 100% 100%; 24 | background-attachment: fixed; 25 | } 26 | #header a img{ 27 | width: 15%; 28 | height: 100%; 29 | } 30 | #loginbox{ 31 | width: 400px; 32 | height: 300px; 33 | border:3px solid #000000; 34 | border-radius: 10px; 35 | background-color: #ffffff; 36 | } 37 | #info{ 38 | width: 400px; 39 | font-size: 20px; 40 | } 41 | #loginbox h1{ 42 | color: #0080c0; 43 | text-shadow: 0 0 10px; 44 | letter-spacing: 10px; 45 | } 46 | form input{ 47 | width: 300px; 48 | height: 20px; 49 | margin-bottom: 10px; 50 | padding: 10px; 51 | font-size: 15px; 52 | color: #000; 53 | text-shadow: 1px 1px; 54 | border:1px solid #0000ff; 55 | border-radius: 5px; 56 | background-color: #ffffff; 57 | } 58 | form #button{ 59 | width: 320px; 60 | height: 40px; 61 | border: 1px solid; 62 | border-radius: 5px; 63 | padding: 5px; 64 | background-color: #17b9e8; 65 | } 66 | #register{ 67 | font-size:20px; 68 | margin-right:40px; 69 | float: right; 70 | } 71 | -------------------------------------------------------------------------------- /WebRoot/css/manage.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/css/manage.css -------------------------------------------------------------------------------- /WebRoot/css/myAccount.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | html{ 3 | overflow-x: hidden; 4 | overflow-y: hidden; 5 | } 6 | body{ 7 | width: 100%; 8 | height: 100%; 9 | margin: 0; 10 | background-color: #f3f3f3; 11 | } 12 | #header{ 13 | width: 100%; 14 | height: 10%; 15 | padding: 5px 200px 0px; 16 | background-color: white; 17 | } 18 | #header a img{ 19 | width: 300px; 20 | height: 100%; 21 | } 22 | #header #personal{ 23 | position: relative; 24 | left: 40%; 25 | text-decoration: none; 26 | } 27 | #menubar{ 28 | width: 100%; 29 | height: 10%; 30 | background-color: white; 31 | 32 | } 33 | div.dropdown{ 34 | position: relative; 35 | display: inline-block; 36 | left: 20%; 37 | } 38 | button.dropbt{ 39 | width:200px; 40 | background-color: #ffffff; 41 | color: blue; 42 | padding: 10px; 43 | font-size: 15px; 44 | border: none; 45 | cursor: pointer; 46 | } 47 | div.content{ 48 | display: none; 49 | position: absolute; 50 | background-color: #e4e4e4; 51 | width: 200px; 52 | box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); 53 | } 54 | div.content a{ 55 | 56 | color: blue; 57 | padding: 10px 15px; 58 | text-decoration: none; 59 | text-align: center; 60 | display: block; 61 | } 62 | div.dropdown:hover .content{ 63 | display: block; 64 | } 65 | div.dropdown:hover .dropbt{ 66 | background: #44a2ff; 67 | color:white; 68 | } 69 | div.content a:hover{ 70 | color: #000000; 71 | background-color:#ffffff; 72 | } 73 | #you{ 74 | margin-left: 30%; 75 | } 76 | form.center{ 77 | z-index: -1; 78 | margin: 5% 30% 0px; 79 | width: 550px; 80 | height: 300px; 81 | border: 2px solid #bcbcbc; 82 | } 83 | form table{ 84 | border-collapse:separate; 85 | border-spacing:5px 25px; 86 | } 87 | form #save{ 88 | position: relative; 89 | top: 35px; 90 | left: 200px; 91 | width: 100px; 92 | height: 30px; 93 | } 94 | div p{ 95 | padding-left: 37%; 96 | } -------------------------------------------------------------------------------- /WebRoot/css/myOrder.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | body{ 3 | width: 100%; 4 | height: 100%; 5 | margin: 0; 6 | background-color: #f3f3f3; 7 | } 8 | #header{ 9 | width: 100%; 10 | height: 10%; 11 | padding: 5px 200px 0px; 12 | background-color: white; 13 | } 14 | #header a img{ 15 | width: 300px; 16 | height: 100%; 17 | } 18 | #header #personal{ 19 | position: relative; 20 | left: 40%; 21 | text-decoration: none; 22 | } 23 | #menubar{ 24 | width: 100%; 25 | height: 10%; 26 | background-color: white; 27 | 28 | } 29 | div.dropdown{ 30 | position: relative; 31 | display: inline-block; 32 | left: 20%; 33 | } 34 | button.dropbt{ 35 | width:200px; 36 | background-color: #ffffff; 37 | color: blue; 38 | padding: 10px; 39 | font-size: 15px; 40 | border: none; 41 | cursor: pointer; 42 | } 43 | div.content{ 44 | display: none; 45 | position: absolute; 46 | background-color: #e4e4e4; 47 | width: 200px; 48 | box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); 49 | } 50 | div.content a{ 51 | 52 | color: blue; 53 | padding: 10px 15px; 54 | text-decoration: none; 55 | text-align: center; 56 | display: block; 57 | } 58 | div.dropdown:hover .content{ 59 | display: block; 60 | } 61 | div.dropdown:hover .dropbt{ 62 | background: #44a2ff; 63 | color:white; 64 | } 65 | div.content a:hover{ 66 | color: #000000; 67 | background-color:#ffffff; 68 | } 69 | #middle{ 70 | padding: 0px 10% 5%; 71 | width: 80%; 72 | height: 80%; 73 | } 74 | #middle form p{ 75 | margin-left: 5%; 76 | } 77 | div p{ 78 | padding-left: 40%; 79 | } -------------------------------------------------------------------------------- /WebRoot/css/queryResult1.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | body{ 3 | width: 100%; 4 | height: 100%; 5 | margin: 0; 6 | background-color: #f3f3f3; 7 | } 8 | #header{ 9 | width: 100%; 10 | height: 10%; 11 | padding: 5px 200px 0px; 12 | background-color: white; 13 | } 14 | #header a img{ 15 | width: 300px; 16 | height: 100%; 17 | } 18 | #header #personal{ 19 | position: relative; 20 | left: 40%; 21 | text-decoration: none; 22 | } 23 | #menubar{ 24 | width: 100%; 25 | height: 10%; 26 | background-color: white; 27 | 28 | } 29 | div.dropdown{ 30 | position: relative; 31 | display: inline-block; 32 | left: 20%; 33 | } 34 | button.dropbt{ 35 | width:200px; 36 | background-color: #ffffff; 37 | color: blue; 38 | padding: 10px; 39 | font-size: 15px; 40 | border: none; 41 | cursor: pointer; 42 | } 43 | div.content{ 44 | display: none; 45 | position: absolute; 46 | background-color: #e4e4e4; 47 | width: 200px; 48 | box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); 49 | } 50 | div.content a{ 51 | 52 | color: blue; 53 | padding: 10px 15px; 54 | text-decoration: none; 55 | text-align: center; 56 | display: block; 57 | } 58 | div.dropdown:hover .content{ 59 | display: block; 60 | } 61 | div.dropdown:hover .dropbt{ 62 | background: #44a2ff; 63 | color:white; 64 | } 65 | div.content a:hover{ 66 | color: #000000; 67 | background-color:#ffffff; 68 | } 69 | #middle{ 70 | margin: 0px 350px 50px; 71 | } 72 | #middle .yourSelect{ 73 | width: 800px; 74 | } 75 | #middle .yourSelect table{ 76 | border-collapse:separate; 77 | border-spacing:5px 10px; 78 | } 79 | #middle .yourSelect table tr td{ 80 | padding: 1px 10px 1px; 81 | 82 | } -------------------------------------------------------------------------------- /WebRoot/css/queryResult1_1.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | body{ 3 | width: 100%; 4 | height: 100%; 5 | margin: 0; 6 | background-color: #f3f3f3; 7 | } 8 | #header{ 9 | width: 100%; 10 | height: 10%; 11 | padding: 5px 200px 0px; 12 | background-color: white; 13 | } 14 | #header a img{ 15 | width: 300px; 16 | height: 100%; 17 | } 18 | #header .entrance{ 19 | position: relative; 20 | left: 40%; 21 | text-decoration: none; 22 | } 23 | #header #personal{ 24 | position: relative; 25 | left: 40%; 26 | text-decoration: none; 27 | } 28 | #menubar{ 29 | width: 100%; 30 | height: 10%; 31 | background-color: white; 32 | 33 | } 34 | div.dropdown{ 35 | position: relative; 36 | display: inline-block; 37 | left: 20%; 38 | } 39 | button.dropbt{ 40 | width:200px; 41 | background-color: #ffffff; 42 | color: blue; 43 | padding: 10px; 44 | font-size: 15px; 45 | border: none; 46 | cursor: pointer; 47 | } 48 | div.content{ 49 | display: none; 50 | position: absolute; 51 | background-color: #e4e4e4; 52 | width: 200px; 53 | box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); 54 | } 55 | div.content a{ 56 | 57 | color: blue; 58 | padding: 10px 15px; 59 | text-decoration: none; 60 | text-align: center; 61 | display: block; 62 | } 63 | div.dropdown:hover .content{ 64 | display: block; 65 | } 66 | div.dropdown:hover .dropbt{ 67 | background: #44a2ff; 68 | color:white; 69 | } 70 | div.content a:hover{ 71 | color: #000000; 72 | background-color:#ffffff; 73 | } 74 | #middle{ 75 | margin: 0px 350px 50px; 76 | } 77 | #middle .yourSelect{ 78 | width: 800px; 79 | } 80 | #middle .yourSelect table{ 81 | border-collapse:separate; 82 | border-spacing:5px 10px; 83 | } 84 | #middle .yourSelect table tr td{ 85 | padding: 1px 10px 1px; 86 | 87 | } -------------------------------------------------------------------------------- /WebRoot/css/rules.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | body{ 3 | width: 100%; 4 | height: 100%; 5 | margin: 0; 6 | background-color: #f3f3f3; 7 | } 8 | #header{ 9 | width: 100%; 10 | height: 10%; 11 | padding: 5px 200px 0px; 12 | background-color: white; 13 | } 14 | #header a img{ 15 | width: 300px; 16 | height: 100%; 17 | } 18 | #header #personal{ 19 | position: relative; 20 | left: 40%; 21 | text-decoration: none; 22 | } 23 | #header .entrance{ 24 | position: relative; 25 | left: 40%; 26 | text-decoration: none; 27 | } 28 | #menubar{ 29 | width: 100%; 30 | height: 10%; 31 | background-color: white; 32 | 33 | } 34 | div.dropdown{ 35 | position: relative; 36 | display: inline-block; 37 | left: 20%; 38 | } 39 | button.dropbt{ 40 | width:200px; 41 | background-color: #ffffff; 42 | color: blue; 43 | padding: 10px; 44 | font-size: 15px; 45 | border: none; 46 | cursor: pointer; 47 | } 48 | div.content{ 49 | display: none; 50 | position: absolute; 51 | background-color: #e4e4e4; 52 | width: 200px; 53 | box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); 54 | } 55 | div.content a{ 56 | 57 | color: blue; 58 | padding: 10px 15px; 59 | text-decoration: none; 60 | text-align: center; 61 | display: block; 62 | } 63 | div.dropdown:hover .content{ 64 | display: block; 65 | } 66 | div.dropdown:hover .dropbt{ 67 | background: #44a2ff; 68 | color:white; 69 | } 70 | div.content a:hover{ 71 | color: #000000; 72 | background-color:#ffffff; 73 | } 74 | #middle{ 75 | width: 500px; 76 | height: 250px; 77 | border: 2px solid #b3b3b3; 78 | padding: 0px 5% 5%; 79 | margin: 5% 25% 5%; 80 | } 81 | #middle textarea{ 82 | resize:none; 83 | width: 100%; 84 | height: 250px; 85 | border: none; 86 | background-color: #f3f3f3; 87 | } 88 | div #info{ 89 | text-align: center; 90 | } -------------------------------------------------------------------------------- /WebRoot/css/user.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | html{ 3 | overflow-x: hidden; 4 | overflow-y: hidden; 5 | } 6 | body{ 7 | width: 100%; 8 | height: 100%; 9 | margin: 0px; 10 | } 11 | #header{ 12 | width: 100%; 13 | height: 10%; 14 | padding: 5px 200px 0px; 15 | background-color: white; 16 | } 17 | #header a img{ 18 | width: 300px; 19 | height: 100%; 20 | } 21 | #header #personal{ 22 | position: relative; 23 | left: 40%; 24 | text-decoration: none; 25 | } 26 | #menubar{ 27 | width: 100%; 28 | height: 10%; 29 | margin: 0px; 30 | padding: 0px; 31 | background-color: white; 32 | } 33 | #menubar hr{ 34 | margin: 0px; 35 | } 36 | div.dropdown{ 37 | position: relative; 38 | display: inline-block; 39 | left: 20%; 40 | } 41 | button.dropbt{ 42 | width:200px; 43 | background-color: #ffffff; 44 | color: blue; 45 | padding: 10px; 46 | font-size: 15px; 47 | border: none; 48 | cursor: pointer; 49 | } 50 | div.content{ 51 | display: none; 52 | position: absolute; 53 | background-color: #e4e4e4; 54 | width: 200px; 55 | box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); 56 | } 57 | div.content a{ 58 | 59 | color: blue; 60 | padding: 10px 15px; 61 | text-decoration: none; 62 | text-align: center; 63 | display: block; 64 | } 65 | div.dropdown:hover .content{ 66 | display: block; 67 | } 68 | div.dropdown:hover .dropbt{ 69 | background: #44a2ff; 70 | color:white; 71 | } 72 | div.content a:hover{ 73 | color: #000000; 74 | background-color:#ffffff; 75 | } 76 | #middle{ 77 | width: 100%; 78 | height: 100%; 79 | padding: 5% 25% 12%; 80 | background-image:url("../img/air.jpg"); 81 | background-size: 100% 100%; 82 | background-attachment: fixed; 83 | } 84 | #tabbar{ 85 | width: 70%; 86 | } 87 | #tabbar input{ 88 | 89 | height: 30px; 90 | width: 35%; 91 | height: 45px; 92 | float: left; 93 | cursor: pointer; 94 | border: none; 95 | text-align: center; 96 | background-color: white; 97 | border-bottom: 2px solid #aeaeae; 98 | } 99 | #tabbar #tab1{ 100 | background-color: #44a2ff; 101 | } 102 | #tabcontent{ 103 | width: 48.8%; 104 | height: 250px; 105 | border: 3px solid #ffffff; 106 | background-color: none; 107 | 108 | } 109 | .tab_content tr td{ 110 | width: 15%; 111 | } 112 | .tab_content input{ 113 | height: 30px; 114 | width: 85%; 115 | } 116 | #tab1_content #ordeTicket{ 117 | float: right; 118 | margin-top: 30px; 119 | margin-right:35px; 120 | width: 210px; 121 | height: 50px; 122 | border-radius: 5px; 123 | background-color: #ff8000; 124 | cursor: pointer; 125 | } 126 | #tab2_content .queryFlight{ 127 | float: right; 128 | margin-top: 30px; 129 | margin-right:35px; 130 | width: 210px; 131 | height: 50px; 132 | border-radius: 5px; 133 | background-color: #ff8000; 134 | cursor: pointer; 135 | } 136 | #tabbar1{ 137 | margin-bottom: 20px; 138 | } 139 | #tab2_content #tabbar2{ 140 | margin-bottom: 18px; 141 | } 142 | #tabcontent #tab1_content{ 143 | display: block; 144 | } 145 | #tabcontent #tab2_content{ 146 | display: none; 147 | } 148 | #tab2_content_2 { 149 | display: none; 150 | } 151 | #tabbar1 input{ 152 | cursor: pointer; 153 | border: none; 154 | color: #000000; 155 | background: none; 156 | } 157 | #tabbar2 input{ 158 | cursor: pointer; 159 | border: none; 160 | color: #000000; 161 | background: none; 162 | } 163 | div p{ 164 | text-align: center; 165 | } -------------------------------------------------------------------------------- /WebRoot/img/air.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/img/air.jpg -------------------------------------------------------------------------------- /WebRoot/img/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/img/background.jpg -------------------------------------------------------------------------------- /WebRoot/img/brand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/img/brand.png -------------------------------------------------------------------------------- /WebRoot/img/update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/img/update.png -------------------------------------------------------------------------------- /WebRoot/index_QueryFlightState2.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@ page import="cn.jmu.po.ExFlight"%> 4 | <%@ page import="java.util.*"%> 5 | <%@ page import="java.sql.Time"%> 6 | 7 | 8 | 9 | 10 | 机票查询 11 | 12 | 13 | 14 | 19 | 20 | 59 |
60 | <% 61 | ExFlight ExFlight=(ExFlight)request.getAttribute("ExFlight"); 62 | if(ExFlight!=null){%> 63 |
64 |

单程

65 | 68 |
69 |
70 |
71 | 72 | 73 | <% 74 | String preDepartTime= ExFlight.getFlight().getPreDepartTime().toString(); 75 | String totalTime=ExFlight.getFlight().getPreTotalTime(); 76 | String[] timeList1 = preDepartTime.split(":"); 77 | String[] timeList2 = totalTime.split(":"); 78 | String preArriveTime =""; 79 | for(int i=0;i 88 | 89 | 90 | 91 | 92 | 93 | 94 | <%if(ExFlight.getFlightState().getFlightStateContext().equals("计划")){ %> 95 | <%}else if(ExFlight.getFlightState().getFlightStateContext().equals("起飞")){%> 96 | <%}else if(ExFlight.getFlightState().getFlightStateContext().equals("延误")){%> 97 | <%}else if(ExFlight.getFlightState().getFlightStateContext().equals("取消")){%> 98 | <%}%> 99 | 100 | 101 | 102 | 103 | 104 |
航班号航程日期起飞时间到达时间航班状态
<%=ExFlight.getFlightID()%><%=ExFlight.getFlight().getDepartCity()%>-<%=ExFlight.getFlight().getArriveCity()%><%=ExFlight.getExFlightDate()%>预计:<%=ExFlight.getDepartTime().toString() %>预计:<%=ExFlight.getArriveTime().toString()%>计划起飞延误取消
计划:<%=ExFlight.getFlight().getPreDepartTime().toString()%>计划:<%=t.toString()%>
105 | <% }else{ %> 106 |
107 |
无此执飞航班
108 |
109 | <% }%> 110 |
111 |
112 | 113 | -------------------------------------------------------------------------------- /WebRoot/laydate/theme/default/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/laydate/theme/default/font/iconfont.eot -------------------------------------------------------------------------------- /WebRoot/laydate/theme/default/font/iconfont.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | Created by iconfont 9 | 10 | 11 | 12 | 13 | 21 | 22 | 23 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /WebRoot/laydate/theme/default/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/laydate/theme/default/font/iconfont.ttf -------------------------------------------------------------------------------- /WebRoot/laydate/theme/default/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/laydate/theme/default/font/iconfont.woff -------------------------------------------------------------------------------- /WebRoot/login.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 中国集美蓝天航空公司官网 10 | 11 | 12 | 13 | 16 |
17 |
18 |

Login

19 |
20 | 21 | 22 | 23 |
24 | 注册 25 |
26 |
27 |

Copyright ©2018 中国集美蓝天航空公司

28 |
29 | 30 |
31 | 32 | -------------------------------------------------------------------------------- /WebRoot/manageFlight/addNewFlight.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@ page import="java.util.*,cn.jmu.po.ExFlight" %> 4 | 5 | 6 | 7 | 8 | 添加新的航线 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | <% if(session.getAttribute("account")==null){%><%}%> 26 |
27 | 44 | 65 |
66 |
67 |

68 | Admin <%=session.getAttribute("account")%> Welcome 69 |

70 |
71 |
72 |

添加航班信息


73 |
74 |   

75 |   

76 |   

77 |   

78 |   

79 |   

80 |   

81 |   

82 |
83 |    84 |
85 |
86 |
87 |
88 | 89 |
90 |
91 |
92 | 93 | 94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /WebRoot/manageFlight/assets/css/addNew.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | #content h3{ 3 | text-align: center; 4 | } 5 | #content form{ 6 | text-align: center; 7 | } 8 | #content form input { 9 | margin: -2px; 10 | } -------------------------------------------------------------------------------- /WebRoot/manageFlight/assets/css/common.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | html{ 3 | overflow: hidden; 4 | } 5 | #content{ 6 | width: 80%; 7 | height: 80%; 8 | margin: 5% 10% 0px; 9 | } 10 | #rule-content{ 11 | width: 60%; 12 | height: 320px; 13 | } 14 | #page-inner{ 15 | text-align: center; 16 | } 17 | #content_header{ 18 | position: relative; 19 | display: inline-block; 20 | width: 500px; 21 | height: 40px; 22 | left: 30%; 23 | } 24 | #content_header a{ 25 | position: relative; 26 | left: 45%; 27 | bottom: 63%; 28 | } 29 | #content_header span{ 30 | margin-left: 19%; 31 | } 32 | #content_{ 33 | margin-left: 20%; 34 | border: 2px solid #b3b3b3; 35 | width: 650px; 36 | } 37 | #content_ h3{ 38 | text-align: center; 39 | } 40 | #content_ #c{ 41 | resize: none; 42 | width: 100%; 43 | height: 300px; 44 | } 45 | #content_ table{ 46 | position: relative; 47 | left: 12%; 48 | border-collapse:separate; 49 | border-spacing: 55px 5px; 50 | } -------------------------------------------------------------------------------- /WebRoot/manageFlight/assets/font-awesome/fonts/fontawesome-webfontba72.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/manageFlight/assets/font-awesome/fonts/fontawesome-webfontba72.eot -------------------------------------------------------------------------------- /WebRoot/manageFlight/assets/font-awesome/fonts/fontawesome-webfontba72.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/manageFlight/assets/font-awesome/fonts/fontawesome-webfontba72.ttf -------------------------------------------------------------------------------- /WebRoot/manageFlight/assets/font-awesome/fonts/fontawesome-webfontba72.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/manageFlight/assets/font-awesome/fonts/fontawesome-webfontba72.woff -------------------------------------------------------------------------------- /WebRoot/manageFlight/assets/font-awesome/fonts/fontawesome-webfontd41d.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/manageFlight/assets/font-awesome/fonts/fontawesome-webfontd41d.eot -------------------------------------------------------------------------------- /WebRoot/manageFlight/assets/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/manageFlight/assets/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /WebRoot/manageFlight/assets/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/manageFlight/assets/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /WebRoot/manageFlight/assets/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/manageFlight/assets/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /WebRoot/manageFlight/assets/fonts/glyphicons-halflings-regulard41d.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/WebRoot/manageFlight/assets/fonts/glyphicons-halflings-regulard41d.eot -------------------------------------------------------------------------------- /WebRoot/manageFlight/assets/js/jquery.metisMenu.js: -------------------------------------------------------------------------------- 1 | ;(function ($, window, document, undefined) { 2 | 3 | var pluginName = "metisMenu", 4 | defaults = { 5 | toggle: true 6 | }; 7 | 8 | function Plugin(element, options) { 9 | this.element = element; 10 | this.settings = $.extend({}, defaults, options); 11 | this._defaults = defaults; 12 | this._name = pluginName; 13 | this.init(); 14 | } 15 | 16 | Plugin.prototype = { 17 | init: function () { 18 | 19 | var $this = $(this.element), 20 | $toggle = this.settings.toggle; 21 | 22 | $this.find('li.active').has('ul').children('ul').addClass('collapse in'); 23 | $this.find('li').not('.active').has('ul').children('ul').addClass('collapse'); 24 | 25 | $this.find('li').has('ul').children('a').on('click', function (e) { 26 | e.preventDefault(); 27 | 28 | $(this).parent('li').toggleClass('active').children('ul').collapse('toggle'); 29 | 30 | if ($toggle) { 31 | $(this).parent('li').siblings().removeClass('active').children('ul.in').collapse('hide'); 32 | } 33 | }); 34 | } 35 | }; 36 | 37 | $.fn[ pluginName ] = function (options) { 38 | return this.each(function () { 39 | if (!$.data(this, "plugin_" + pluginName)) { 40 | $.data(this, "plugin_" + pluginName, new Plugin(this, options)); 41 | } 42 | }); 43 | }; 44 | 45 | })(jQuery, window, document); 46 | -------------------------------------------------------------------------------- /WebRoot/manageFlight/assets/js/morris/morris-0.4.3.min.css: -------------------------------------------------------------------------------- 1 | .morris-hover{position:absolute;z-index:1000;}.morris-hover.morris-default-style{border-radius:10px;padding:6px;color:#666;background:rgba(255, 255, 255, 0.8);border:solid 2px rgba(230, 230, 230, 0.8);font-family:sans-serif;font-size:12px;text-align:center;}.morris-hover.morris-default-style .morris-hover-row-label{font-weight:bold;margin:0.25em 0;} 2 | .morris-hover.morris-default-style .morris-hover-point{white-space:nowrap;margin:0.1em 0;} -------------------------------------------------------------------------------- /WebRoot/manageFlight/manageExFlightUpdate.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@ page import="cn.jmu.po.ExFlight" %> 4 | 5 | 6 | 7 | 8 | 动态航班信息更新 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | <% if(session.getAttribute("account")==null){%><%}%> 21 |
22 | 41 | 62 |
63 |
64 |

65 | Admin <%=session.getAttribute("account")%> Welcome 66 |

67 |
68 |
69 |

动态航班信息


70 | <%ExFlight exFlight = (ExFlight)request.getAttribute("exFlight");%> 71 |
72 |   

73 |   

74 |   

75 |   

76 |   

77 |   

78 |   

79 |   

80 |   

81 |
82 |    83 |
84 |
85 |
86 |
87 | 88 |
89 |
90 |
91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /WebRoot/manageFlight/manageRules.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 退换票规则管理 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | <% if(session.getAttribute("account")==null){%><%}%> 22 |
23 | 42 | 63 |
64 |
65 |

66 | Admin <%=session.getAttribute("account")%>Welcome 67 |

68 |
69 |
70 |
71 | 72 | 最近修改时间:${rule.getReviseTime()} 73 | 74 | 75 |
76 |
77 |
78 | 79 |
80 |
81 | 82 |
83 |
84 | 85 |
86 |
87 |
88 | 89 | 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /WebRoot/manageFlight/monthReport.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@ page import="cn.jmu.po.Statement" %> 4 | 5 | 6 | 7 | 8 | 月度报表 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | <% if(session.getAttribute("account")==null){%><%} 20 | Statement statement= null; 21 | statement= (Statement) request.getAttribute("statement");%> 22 |
23 | 42 | 63 |
64 |
65 |

66 | Admin <%=session.getAttribute("account")%> Welcome 67 |

68 |
69 | <%if (statement!=null){ %> 70 |
71 |
72 |

航班情况月度报表


73 | 74 | 75 | 76 | 77 |
<%=statement.getFlightID() %>
销售票数总收入准点率执飞次数
<%=statement.getTicketNum() %><%=statement.getIncome()%><%=statement.getRate()%><%=statement.getExNum()%>
78 |
79 |
80 | <%}else{ %> 81 |
不存在此航班
82 | <%} %> 83 |
84 | 85 |
86 |
87 |
88 | 89 | 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /WebRoot/manageFlight/preMonthReport.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 月度报表 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | <% if(session.getAttribute("account")==null){%><%}%> 19 |
20 | 39 | 60 |
61 |
62 |

63 | Admin <%=session.getAttribute("account")%> Welcome 64 |

65 |
66 |
67 |
68 |
69 | 航班号 70 | 年 75 | 月 79 | 80 |
81 |
82 |
83 |
84 | 85 |
86 |
87 |
88 | 89 | 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /WebRoot/rules.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@ page import="cn.jmu.po.User"%> 4 | 5 | 6 | 7 | 8 | 机票查询 9 | 10 | 11 | 12 | <% if(request.getAttribute("rule")==null){request.getRequestDispatcher("outputRule.do").forward(request,response);}%> 13 | 18 | 57 |
58 |

票务规则

59 | 60 |
61 |
62 |

Copyright © 2018 中国集美蓝天航空公司.

63 |
64 | 65 | -------------------------------------------------------------------------------- /WebRoot/user/myAccount.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@ page import="cn.jmu.po.User"%> 4 | 5 | 6 | 7 | 8 | 我的账户 9 | 10 | 11 | 12 | <% if(session.getAttribute("user")==null){%><%} 13 | User user = (User) session.getAttribute("user");%> 14 | 21 | 22 | 61 |
62 |
63 |

基本信息

64 |
65 | 66 |
67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 93 | 94 | 95 | 96 | 97 | 98 | 100 | 101 |
会员名称<%=user.getMember().getMemberName()%>会员级别<%=user.getMemberID()%>
身份证号<%=user.getUserIDCard()%>积分<%=user.getPoint()%>
性别 80 | <% 81 | if(user.isSex()){%> 82 | 86 | <%}else{%> 87 | 91 | <%} %> 92 | 电话号码
电子邮箱密码
102 | 103 |
104 |
105 |
106 |

Copyright © 2018 中国集美蓝天航空公司.

107 |
108 | <% 109 | String f = String.valueOf(request.getAttribute("update")); 110 | if(f.equals("ok")){%> 111 | 114 | <%} 115 | %> 116 | 117 | -------------------------------------------------------------------------------- /WebRoot/user/myOrder.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@ page import="cn.jmu.po.User"%> 4 | <%@ page import="cn.jmu.po.Ticket"%> 5 | <%@ page import="java.util.*"%> 6 | 7 | 8 | 9 | 10 | 我的订单 11 | 12 | 13 | 14 | <% if(session.getAttribute("user")==null){%><%} 15 | User user = (User) session.getAttribute("user"); 16 | if(request.getAttribute("orderList")==null){ 17 | request.setAttribute("account", user.getAccount()); 18 | request.getRequestDispatcher("userOrderList.do").forward(request,response); 19 | } 20 | List orderList = (List)request.getAttribute("orderList"); 21 | %> 22 | 29 | 30 | 69 |
70 |

我的订单
71 |
72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | <% 88 | int pages; 89 | if(request.getParameter("page")==null){ 90 | pages=1; 91 | }else{ 92 | pages=Integer.parseInt(request.getParameter("page")); 93 | if(pages<=0) 94 | pages=1; 95 | } 96 | int rowCount = orderList.size(); 97 | int pageSize = 6; 98 | int pageCount = (rowCount+pageSize-1)/pageSize; 99 | if(pages>pageCount){ 100 | pages = pageCount; 101 | } 102 | int n=(pages-1)*pageSize; 103 | while (n 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | <%n++; }%> 120 |
订单编号机票号航班编号航班日期舱位产品乘客姓名乘客电话乘客证件乘客性别是否保险付款方式机票价格
<%=orderList.get(n).getOrderID()%><%=orderList.get(n).getTicketID()%><%=orderList.get(n).getFlightID()%><%=orderList.get(n).getExFlightDate()%><%=orderList.get(n).getFlightProductID()%><%=orderList.get(n).getPassengerName()%><%=orderList.get(n).getPassengerTel()%><%=orderList.get(n).getPassengerIDCard()%><%=orderList.get(n).getTicketSex()%><%=orderList.get(n).getTicketInsurance()%><%=orderList.get(n).getTicketPayment()%><%=orderList.get(n).getTicketPrice()%>
121 |
122 |

第<%=pages%>页 共<%=pageCount%>页 共<%=rowCount%>条 123 | <% 124 | if(pageCount>1){%> 125 | 上一页 126 | 下一页 127 | 尾页 128 | 跳到第页 129 | 130 | <%}%> 131 |

132 |
133 |
134 |
135 |

Copyright © 2018 中国集美蓝天航空公司.

136 |
137 | 138 | -------------------------------------------------------------------------------- /WebRoot/user/rules.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@ page import="cn.jmu.po.User"%> 4 | 5 | 6 | 7 | 8 | 机票查询 9 | 10 | 11 | 12 | <% if(session.getAttribute("user")==null){%><%} 13 | if(request.getAttribute("rule")==null){request.getRequestDispatcher("outputRule.do").forward(request,response);} 14 | User user = (User) session.getAttribute("user"); 15 | %> 16 | 23 | 24 | 63 |
64 |

票务规则

65 | 66 |
67 |
68 |

Copyright © 2018 中国集美蓝天航空公司.

69 |
70 | 71 | -------------------------------------------------------------------------------- /WebRoot/user/user_QueryFlightState2.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@ page import="cn.jmu.po.ExFlight"%> 4 | <%@ page import="java.util.*"%> 5 | <%@ page import="java.sql.Time"%> 6 | <%@ page import="cn.jmu.po.User"%> 7 | 8 | 9 | 10 | 11 | 机票查询 12 | 13 | 14 | 15 | <% if(session.getAttribute("user")==null){%><%} 16 | User user = (User) session.getAttribute("user");%> 17 | 24 | 25 | 64 |
65 | <% 66 | ExFlight ExFlight=(ExFlight)request.getAttribute("ExFlight"); 67 | if(ExFlight!=null){%> 68 |
69 |

单程

70 | 73 |
74 |
75 |
76 | 77 | 78 | <% 79 | String preDepartTime= ExFlight.getFlight().getPreDepartTime().toString(); 80 | String totalTime=ExFlight.getFlight().getPreTotalTime(); 81 | String[] timeList1 = preDepartTime.split(":"); 82 | String[] timeList2 = totalTime.split(":"); 83 | String preArriveTime =""; 84 | for(int i=0;i 93 | 94 | 95 | 96 | 97 | 98 | 99 | <%if(ExFlight.getFlightState().getFlightStateContext().equals("计划")){ %> 100 | <%}else if(ExFlight.getFlightState().getFlightStateContext().equals("起飞")){%> 101 | <%}else if(ExFlight.getFlightState().getFlightStateContext().equals("延误")){%> 102 | <%}else if(ExFlight.getFlightState().getFlightStateContext().equals("取消")){%> 103 | <%}%> 104 | 105 | 106 | 107 | 108 | 109 |
航班号航程日期起飞时间到达时间航班状态
<%=ExFlight.getFlightID()%><%=ExFlight.getFlight().getDepartCity()%>-<%=ExFlight.getFlight().getArriveCity()%><%=ExFlight.getExFlightDate()%>预计:<%=ExFlight.getDepartTime().toString() %>预计:<%=ExFlight.getArriveTime().toString()%>计划起飞延误取消
计划:<%=ExFlight.getFlight().getPreDepartTime().toString()%>计划:<%=t.toString()%>
110 | <% }else{ %> 111 |
112 |
无此执飞航班
113 |
114 | <% }%> 115 |
116 |
117 | 118 | -------------------------------------------------------------------------------- /config/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /config/db.properties: -------------------------------------------------------------------------------- 1 | #jdbc.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver 2 | jdbc.driver=com.mysql.jdbc.Driver 3 | #jdbc.url=jdbc:sqlserver://localhost:1433;DatabaseName = aeroSys 4 | #172.21.0.100 5 | jdbc.url=jdbc:mysql://127.0.0.1:3306/aero_sys 6 | jdbc.username=root 7 | jdbc.password=123456 8 | 9 | jdbc.maxTotal=30 10 | jdbc.maxIdle=10 11 | jdbc.initialSize=5 12 | jdbc.validationQuery=select 1 -------------------------------------------------------------------------------- /config/log4j.properties: -------------------------------------------------------------------------------- 1 | # Global logging configuration 2 | log4j.rootLogger=ERROR, stdout 3 | # MyBatis logging configuration... 4 | log4j.logger.cn.jmu=DEBUG 5 | # Console output... 6 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 7 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 8 | log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n -------------------------------------------------------------------------------- /config/mybatis-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /config/springmvc.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /raw/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/raw/1.png -------------------------------------------------------------------------------- /raw/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/raw/2.png -------------------------------------------------------------------------------- /raw/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/raw/3.png -------------------------------------------------------------------------------- /raw/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/raw/4.png -------------------------------------------------------------------------------- /src/cn/jmu/controller/ExFlightProductController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/src/cn/jmu/controller/ExFlightProductController.java -------------------------------------------------------------------------------- /src/cn/jmu/controller/ExitController.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.controller; 2 | 3 | import javax.servlet.http.HttpServletRequest; 4 | import javax.servlet.http.HttpServletResponse; 5 | import javax.servlet.http.HttpSession; 6 | 7 | import org.springframework.stereotype.Controller; 8 | import org.springframework.web.bind.annotation.RequestMapping; 9 | 10 | @Controller 11 | public class ExitController { 12 | @RequestMapping(value="manageFlight/exit.do") 13 | public void manage_exit(HttpSession session,HttpServletResponse response) throws Exception { 14 | session.invalidate(); 15 | response.sendRedirect("../index.jsp"); 16 | } 17 | @RequestMapping(value="user/exit.do") 18 | public void user_exit(HttpSession session,HttpServletResponse response) throws Exception { 19 | session.invalidate(); 20 | response.sendRedirect("../index.jsp"); 21 | } 22 | @RequestMapping(value="exit.do") 23 | public void exit(HttpSession session,HttpServletResponse response) throws Exception { 24 | session.invalidate(); 25 | response.sendRedirect("index.jsp"); 26 | } 27 | @RequestMapping(value="user/exit2.do") 28 | public void user_exi2t(HttpSession session,HttpServletResponse response) throws Exception { 29 | response.sendRedirect("../index.jsp"); 30 | } 31 | @RequestMapping(value="manageFlight/exit2.do") 32 | public void manage_exi2t(HttpSession session,HttpServletResponse response) throws Exception { 33 | response.sendRedirect("../index.jsp"); 34 | } 35 | @RequestMapping(value="exit2.do") 36 | public void exi2t(HttpSession session,HttpServletResponse response) throws Exception { 37 | response.sendRedirect("index.jsp"); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/cn/jmu/controller/FlightController.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.controller; 2 | 3 | import java.sql.Time; 4 | import java.text.SimpleDateFormat; 5 | import java.util.List; 6 | 7 | import javax.annotation.Resource; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import javax.servlet.http.HttpSession; 11 | 12 | import org.springframework.stereotype.Controller; 13 | import org.springframework.web.bind.annotation.RequestMapping; 14 | 15 | import cn.jmu.po.Flight; 16 | import cn.jmu.service.FlightService; 17 | 18 | @Controller 19 | public class FlightController { 20 | @Resource(name="flightServiceImpl") 21 | private FlightService flightService; 22 | 23 | @RequestMapping(value="/manageFlight/flight.do") 24 | public String getFlightByID(HttpServletRequest request, HttpServletResponse response) throws Exception { 25 | String ID = request.getParameter("flightID"); 26 | Flight flight = null; 27 | flight = flightService.getFlightByID(ID); 28 | if(flight==null) { 29 | request.setAttribute("flag", "no"); 30 | return "manageFlight/manageFlight"; 31 | } 32 | request.setAttribute("flight", flight); 33 | return "manageFlight/manageFlightUpdate"; 34 | } 35 | @RequestMapping(value="/manageFlight/allFlight.do") 36 | public String getAllFlight(HttpSession session,HttpServletRequest request, HttpServletResponse response) throws Exception { 37 | List allFlight = null; 38 | allFlight = flightService.getAllFlight(); 39 | request.setAttribute("allFlight", allFlight); 40 | if(session.getAttribute("allFlight")!=null) { 41 | session.removeAttribute("allFlight"); 42 | } 43 | return "manageFlight/manageFlight"; 44 | } 45 | 46 | @RequestMapping(value="/manageFlight/flightUpdate.do") 47 | public void updateFlight(HttpServletRequest request, HttpServletResponse response) throws Exception { 48 | String flightID = request.getParameter("flightID"); 49 | SimpleDateFormat format = new SimpleDateFormat("HH:mm:ss"); 50 | java.util.Date date = new java.util.Date(); 51 | date = format.parse(request.getParameter("preDepartTime")); 52 | Time preDepartTime = new java.sql.Time(date.getTime()); 53 | String preTotalTime = request.getParameter("preTotalTime"); 54 | String flightType = request.getParameter("flightType"); 55 | int totalSeatNum = Integer.parseInt(request.getParameter("totalSeatNum")); 56 | String departCity = request.getParameter("departCity"); 57 | String arriveCity = request.getParameter("arriveCity"); 58 | int insurancePrice = Integer.parseInt(request.getParameter("insurancePrice")); 59 | Flight flight = new Flight(flightID,preDepartTime,preTotalTime,flightType,totalSeatNum,departCity,arriveCity,insurancePrice); 60 | this.flightService.updateFlight(flight); 61 | response.sendRedirect("manageFlight.jsp?update=ok"); 62 | } 63 | @RequestMapping(value="/manageFlight/addFlight.do") 64 | public String addFlight(HttpSession session,HttpServletRequest request, HttpServletResponse response) throws Exception{ 65 | String flightID = request.getParameter("flightID"); 66 | SimpleDateFormat format = new SimpleDateFormat("HH:mm:ss"); 67 | java.util.Date date = new java.util.Date(); 68 | date = format.parse(request.getParameter("preDepartTime")); 69 | Time preDepartTime = new java.sql.Time(date.getTime()); 70 | String preTotalTime = request.getParameter("preTotalTime"); 71 | String flightType = request.getParameter("flightType"); 72 | int totalSeatNum = Integer.parseInt(request.getParameter("totalSeatNum")); 73 | String departCity = request.getParameter("departCity"); 74 | String arriveCity = request.getParameter("arriveCity"); 75 | int insurancePrice = Integer.parseInt(request.getParameter("insurancePrice")); 76 | Flight flight = new Flight(flightID,preDepartTime,preTotalTime,flightType,totalSeatNum,departCity,arriveCity,insurancePrice); 77 | List allFlight = null; 78 | allFlight = flightService.getAllFlight(); 79 | for(Flight f:allFlight) 80 | if(f.getFlightID().equals(flight.getFlightID())) { 81 | request.setAttribute("insert", "no"); 82 | return "manageFlight/manageFlight"; 83 | } 84 | flightService.addFlight(flight); 85 | allFlight = flightService.getAllFlight(); 86 | if(session.getAttribute("allFlight")!=null) { 87 | session.removeAttribute("allFlight"); 88 | } 89 | request.setAttribute("allFlight", allFlight); 90 | return "manageFlight/manageFlight"; 91 | } 92 | } -------------------------------------------------------------------------------- /src/cn/jmu/controller/LoginController.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.controller; 2 | 3 | import java.util.List; 4 | import javax.annotation.Resource; 5 | import javax.servlet.http.HttpServletRequest; 6 | import javax.servlet.http.HttpServletResponse; 7 | import javax.servlet.http.HttpSession; 8 | 9 | import org.springframework.stereotype.Controller; 10 | import org.springframework.web.bind.annotation.RequestMapping; 11 | 12 | import cn.jmu.mapper.UserMapper; 13 | import cn.jmu.po.Account; 14 | import cn.jmu.po.User; 15 | import cn.jmu.service.AccountService; 16 | import cn.jmu.service.UserService; 17 | 18 | @Controller 19 | public class LoginController { 20 | @Resource(name="accountServiceImpl") 21 | private AccountService accountService; 22 | @Resource(name="userServiceImpl") 23 | private UserService userService; 24 | @RequestMapping(value="/login.do") 25 | public void loginCheck(HttpSession session,HttpServletRequest request, HttpServletResponse response) throws Exception { 26 | String account = request.getParameter("account"); 27 | String password = request.getParameter("password"); 28 | List all = accountService.getAllAccount(); 29 | for(Account a:all) { 30 | if(a.getAccount().equals(account)&&a.getPassword().equals(password)) { 31 | if(a.getRight()) { 32 | session.setAttribute("account", account); 33 | response.sendRedirect("manageFlight/manageFlight.jsp"); 34 | return; 35 | } 36 | else { 37 | User user = userService.getUserByAccount(account); 38 | session.setAttribute("user",user); 39 | response.sendRedirect("user/user.jsp"); 40 | return; 41 | } 42 | } 43 | } 44 | response.sendRedirect("login.jsp"); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/cn/jmu/controller/MonthReportController.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.controller; 2 | 3 | import javax.annotation.Resource; 4 | import javax.servlet.http.HttpServletRequest; 5 | import javax.servlet.http.HttpServletResponse; 6 | 7 | import org.springframework.stereotype.Controller; 8 | import org.springframework.ui.Model; 9 | import org.springframework.web.bind.annotation.RequestMapping; 10 | 11 | import cn.jmu.po.Statement; 12 | import cn.jmu.service.StatementService; 13 | 14 | @Controller 15 | public class MonthReportController { 16 | @Resource(name="statementServiceImpl") 17 | private StatementService statementService; 18 | 19 | @RequestMapping(value="manageFlight/getMonthReport.do") 20 | public String getMonthReport(HttpServletRequest request, HttpServletResponse response) throws Exception{ 21 | String year = request.getParameter("year"); 22 | String month = request.getParameter("month"); 23 | String flightID = request.getParameter("flightID"); 24 | Statement statement= this.statementService.getAStatement(year, month, flightID); 25 | request.setAttribute("statement", statement); 26 | return "manageFlight/monthReport"; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/cn/jmu/controller/RegisterController.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.controller; 2 | 3 | import java.sql.Date; 4 | import java.text.DateFormat; 5 | import java.text.SimpleDateFormat; 6 | import java.util.List; 7 | 8 | import javax.annotation.Resource; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | 12 | import org.springframework.stereotype.Controller; 13 | import org.springframework.web.bind.annotation.RequestMapping; 14 | 15 | import cn.jmu.po.Account; 16 | import cn.jmu.po.User; 17 | import cn.jmu.service.AccountService; 18 | import cn.jmu.service.UserService; 19 | @Controller 20 | public class RegisterController { 21 | @Resource(name="accountServiceImpl") 22 | private AccountService accountService; 23 | 24 | @Resource(name="userServiceImpl") 25 | private UserService userService; 26 | 27 | @RequestMapping(value="/register.do") 28 | public String registerCustomer(HttpServletRequest request, HttpServletResponse response) throws Exception { 29 | Account a = new Account(request.getParameter("tel"),request.getParameter("password"),false); 30 | List all = accountService.getAllAccount(); 31 | for(Account account:all) { 32 | if(account.getAccount().equals(a.getAccount())) { 33 | request.setAttribute("flag", "no"); 34 | return "addUser"; 35 | } 36 | } 37 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); 38 | String userName=request.getParameter("userName"); 39 | String tel=request.getParameter("tel"); 40 | String password=request.getParameter("password"); 41 | String userIDCard=request.getParameter("userIDCard"); 42 | Date birthdate=new java.sql.Date(sdf.parse(request.getParameter("birthdate")).getTime()); 43 | boolean sex; 44 | if(request.getParameter("sex").equals("female")) { 45 | sex=false; 46 | } 47 | else { 48 | sex=true; 49 | } 50 | String email=request.getParameter("email"); 51 | boolean right=false; 52 | String account=tel; 53 | int memberID=0; 54 | int point =0; 55 | User user = new User(account, password, right, userName, memberID, birthdate,userIDCard, tel, email,point,sex); 56 | this.accountService.addAccount(a); 57 | this.userService.addUser(user); 58 | request.setAttribute("flag", true); 59 | return "login"; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/cn/jmu/controller/RuleListController.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.controller; 2 | 3 | 4 | import java.sql.Date; 5 | import java.text.SimpleDateFormat; 6 | import javax.annotation.Resource; 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpServletResponse; 9 | 10 | import org.springframework.stereotype.Controller; 11 | import org.springframework.ui.Model; 12 | import org.springframework.web.bind.annotation.RequestMapping; 13 | 14 | import cn.jmu.po.RuleList; 15 | import cn.jmu.service.RuleListService; 16 | 17 | @Controller 18 | public class RuleListController { 19 | @Resource(name="ruleListServiceImpl") 20 | private RuleListService ruleListService; 21 | 22 | @RequestMapping(value="/manageFlight/updateRule.do") 23 | public void updateRule(HttpServletRequest request, HttpServletResponse response ,Model model) throws Exception{ 24 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); 25 | java.util.Date date = new java.util.Date(System.currentTimeMillis()); 26 | java.sql.Date reviseDate = new java.sql.Date(sdf.parse(sdf.format(date)).getTime()); 27 | String content = request.getParameter("content"); 28 | RuleList rule = new RuleList(1,content,reviseDate); 29 | ruleListService.updateRule(rule); 30 | request.getRequestDispatcher("outputRule.do").forward(request, response); 31 | } 32 | @RequestMapping(value="/manageFlight/outputRule.do") 33 | public String outputRule(HttpServletRequest request, HttpServletResponse response ,Model model) throws Exception{ 34 | RuleList rule = ruleListService.getRule(); 35 | model.addAttribute("rule",rule); 36 | return "manageFlight/manageRules"; 37 | } 38 | @RequestMapping(value="/user/outputRule.do") 39 | public String user_outputRule(HttpServletRequest request, HttpServletResponse response ,Model model) throws Exception{ 40 | RuleList rule = ruleListService.getRule(); 41 | model.addAttribute("rule",rule); 42 | return "user/rules"; 43 | } 44 | @RequestMapping(value="outputRule.do") 45 | public String index_outputRule(HttpServletRequest request, HttpServletResponse response ,Model model) throws Exception{ 46 | RuleList rule = ruleListService.getRule(); 47 | model.addAttribute("rule",rule); 48 | return "rules"; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/cn/jmu/controller/TicketController.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.controller; 2 | 3 | import java.sql.Date; 4 | import java.sql.Timestamp; 5 | import java.util.ArrayList; 6 | import java.util.List; 7 | import java.util.UUID; 8 | 9 | import javax.annotation.Resource; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | import javax.servlet.http.HttpSession; 13 | 14 | import org.springframework.stereotype.Controller; 15 | import org.springframework.web.bind.annotation.RequestMapping; 16 | 17 | import cn.jmu.po.ExFlight; 18 | import cn.jmu.po.OrderList; 19 | import cn.jmu.po.Passenger; 20 | import cn.jmu.po.Ticket; 21 | import cn.jmu.po.User; 22 | import cn.jmu.service.ExFlightProductService; 23 | import cn.jmu.service.ExFlightService; 24 | import cn.jmu.service.FlightProductService; 25 | import cn.jmu.service.OrderListService; 26 | import cn.jmu.service.TicketService; 27 | import cn.jmu.service.UserService; 28 | 29 | @Controller 30 | public class TicketController { 31 | @Resource(name="ticketServiceImpl") 32 | private TicketService ticketService; 33 | @Resource(name="orderListServiceImpl") 34 | private OrderListService orderListService; 35 | @Resource(name="userServiceImpl") 36 | private UserService userService; 37 | @Resource(name="exFlightProductServiceImpl") 38 | private ExFlightProductService exFlightProductService; 39 | @Resource(name="flightProductServiceImpl") 40 | private FlightProductService flightProductService; 41 | 42 | @RequestMapping(value="/user/userOrderList.do") 43 | public String getAllTickeByAccount(HttpServletRequest request, HttpServletResponse response) throws Exception{ 44 | String account = (String) request.getAttribute("account"); 45 | List orderList = this.ticketService.getAllTickeByAccount(account); 46 | request.setAttribute("orderList", orderList); 47 | return "user/myOrder"; 48 | } 49 | @RequestMapping("/user/userOrderAdd.do") 50 | public String addOrder(HttpServletRequest request, HttpSession session) throws Exception{ 51 | List passengerList =(List) session.getAttribute("passengerList"); 52 | session.removeAttribute("passengerList"); 53 | ExFlight exflight = (ExFlight) session.getAttribute("exFlight"); 54 | session.removeAttribute("exFlight"); 55 | int price = (int) session.getAttribute("price"); 56 | session.removeAttribute("price"); 57 | boolean payment = Boolean.parseBoolean(request.getParameter("payment")); 58 | String flightProductID = (String) session.getAttribute("flightProductID"); 59 | session.removeAttribute("flightProductID"); 60 | int pointPrice = (int) session.getAttribute("pointPrice"); 61 | session.removeAttribute("pointPrice"); 62 | User user = (User)session.getAttribute("user"); 63 | 64 | if(payment==false && user.getPoint() getAllAccount() throws Exception; 9 | public void addAccount(Account account) throws Exception; 10 | public void UpdateAccount(Account account) throws Exception; 11 | public Account getAccountByAccount(String account) throws Exception; 12 | } 13 | -------------------------------------------------------------------------------- /src/cn/jmu/mapper/AccountMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 12 | 13 | insert into Account(account,password,[right]) values(#{account},#{password},#{right}) 14 | 15 | 16 | 17 | update account set password=#{password} where account.account=#{account} 18 | 19 | -------------------------------------------------------------------------------- /src/cn/jmu/mapper/ExFlightMapper.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.mapper; 2 | 3 | import java.sql.Date; 4 | import java.sql.Timestamp; 5 | import java.util.List; 6 | 7 | import org.apache.ibatis.annotations.Param; 8 | 9 | import cn.jmu.po.ExFlight; 10 | import cn.jmu.po.ExFlightProduct; 11 | import cn.jmu.po.FlightProduct; 12 | 13 | public interface ExFlightMapper { 14 | public List getAllExFlight() throws Exception; 15 | public List getExFlightByFlightID(String flightID) throws Exception; 16 | public ExFlight getExFlightByFlightIDAndExFlghtDate(String flightID,String exFlightDate)throws Exception; 17 | public void updateExFlight(ExFlight exFlight) throws Exception; 18 | 19 | public ExFlight getExFlightAndFlightStateAndFlightByDateaAndFlightID(@Param("flightID")String flightID,@Param("exFlightDate")String exFlightDate) throws Exception; 20 | 21 | public List getAllExFlightAndFlightProductByCityAndDate 22 | (@Param("exFlightDate")String exFlightDate,@Param("departCity")String departCity,@Param("arriveCity")String arriveCity) throws Exception; 23 | public List getAllExFlightAndFligtStateAndFlightByCityAndDate 24 | (@Param("exFlightDate")String exFlightDate,@Param("departCity")String departCity,@Param("arriveCity")String arriveCity) throws Exception; 25 | } 26 | -------------------------------------------------------------------------------- /src/cn/jmu/mapper/ExFlightProductMapper.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | 7 | import cn.jmu.po.ExFlightProduct; 8 | 9 | public interface ExFlightProductMapper { 10 | 11 | public List getAllExFlightProduct() throws Exception; 12 | public ExFlightProduct getExFlightProductByPK(@Param("flightID")String flightID,@Param("exFlightDate")String exFlightDate,@Param("flightProductID")String flightProductID) throws Exception; 13 | 14 | public int updateExFlightProduct(ExFlightProduct exFlightProduct) throws Exception; 15 | public List getAllExFlightProductByFlightIDAndDate(String flightID,String exFlightDate) throws Exception; 16 | 17 | public int getExFlightProductLeftTicket(@Param("flightID")String flightID,@Param("flightProductID")String flightProductID, 18 | @Param("exFlightDate")String exFlightDate) throws Exception; 19 | public void updateExFlightProductTicket(@Param("num")String num,@Param("flightID")String flightID,@Param("flightProductID")String flightProductID, 20 | @Param("exFlightDate")String exFlightDate)throws Exception; 21 | } 22 | -------------------------------------------------------------------------------- /src/cn/jmu/mapper/ExFlightProductMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 23 | 24 | 27 | 28 | 29 | update ExFlightProduct set price=#{price},pointPrice=#{pointPrice},leftTicketNum=#{leftTicketNum},onSale=#{onSale} where flightID=#{flightID} and 30 | exFlightDate=#{exFlightDate} and flightProductID=#{flightProductID} 31 | 32 | 33 | 38 | 39 | 43 | 44 | 45 | update exFlightProduct set leftTicketNum = leftTicketNum - #{num} where flightProductID=#{flightProductID} 46 | and exFlightDate=#{exFlightDate} and exFlightDate=#{exFlightDate} 47 | 48 | -------------------------------------------------------------------------------- /src/cn/jmu/mapper/FlightMapper.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.mapper; 2 | 3 | import java.util.List; 4 | 5 | import cn.jmu.po.Flight; 6 | import cn.jmu.po.FlightProduct; 7 | 8 | public interface FlightMapper { 9 | public Flight getFlightByID(String ID) throws Exception; 10 | public List getAllFlight() throws Exception; 11 | public void updateFlight(Flight flight) throws Exception; 12 | public void addFlight(Flight flight) throws Exception; 13 | } 14 | -------------------------------------------------------------------------------- /src/cn/jmu/mapper/FlightMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 12 | 13 | 14 | update flight set flightID=#{flightID},preDepartTime=#{preDepartTime},preTotalTime=#{preTotalTime}, 15 | flightType=#{flightType},totalSeatNum=#{totalSeatNum},departCity=#{departCity},arriveCity=#{arriveCity}, 16 | insurancePrice=#{insurancePrice} where flightID=#{flightID} 17 | 18 | 19 | insert into Flight(flightID,preDepartTime,preTotalTime,flightType,totalSeatNum,departCity,arriveCity,insurancePrice) 20 | values(#{flightID},#{preDepartTime},#{preTotalTime},#{flightType},#{totalSeatNum},#{departCity},#{arriveCity},#{insurancePrice}) 21 | 22 | -------------------------------------------------------------------------------- /src/cn/jmu/mapper/FlightProductMapper.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | 7 | import cn.jmu.po.FlightProduct; 8 | 9 | public interface FlightProductMapper { 10 | public List getALLFlightProdcutByFlightID(String flightID) throws Exception; 11 | public int getRewardPoint(@Param("flightID")String flightID,@Param("flightProductID")String flightProductID) throws Exception; 12 | } 13 | -------------------------------------------------------------------------------- /src/cn/jmu/mapper/FlightProductMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 26 | -------------------------------------------------------------------------------- /src/cn/jmu/mapper/OrderListMapper.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.mapper; 2 | 3 | import cn.jmu.po.OrderList; 4 | 5 | public interface OrderListMapper { 6 | public void addOrder(OrderList order) throws Exception; 7 | public int getLatestOrderID(String account) throws Exception; 8 | } 9 | -------------------------------------------------------------------------------- /src/cn/jmu/mapper/OrderListMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | insert into OrderList(account,orderID,orderTime) values(#{account},#{orderID},#{orderTime}) 8 | 9 | 15 | -------------------------------------------------------------------------------- /src/cn/jmu/mapper/RuleListMapper.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.mapper; 2 | 3 | import cn.jmu.po.RuleList; 4 | 5 | public interface RuleListMapper { 6 | public RuleList getRule() throws Exception; 7 | public int updateRule(RuleList rule) throws Exception; 8 | } 9 | -------------------------------------------------------------------------------- /src/cn/jmu/mapper/RuleListMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 10 | update RuleList set ruleContext=#{ruleContext},reviseTime=#{reviseTime} where ruleID=1 11 | 12 | -------------------------------------------------------------------------------- /src/cn/jmu/mapper/StatementMapper.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.mapper; 2 | 3 | import org.apache.ibatis.annotations.Param; 4 | 5 | import cn.jmu.po.Statement; 6 | 7 | public interface StatementMapper { 8 | public Statement getAStatement(@Param("year")String year,@Param("month")String month,@Param("flightID")String flightID) throws Exception; 9 | 10 | } 11 | -------------------------------------------------------------------------------- /src/cn/jmu/mapper/StatementMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | -------------------------------------------------------------------------------- /src/cn/jmu/mapper/TicketMapper.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.mapper; 2 | 3 | import java.util.List; 4 | 5 | import cn.jmu.po.Ticket; 6 | 7 | public interface TicketMapper { 8 | public List getAllTickeByAccount(String account) throws Exception; 9 | public void addTicket(Ticket ticket) throws Exception; 10 | } 11 | -------------------------------------------------------------------------------- /src/cn/jmu/mapper/TicketMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 10 | insert into Ticket(account,orderID,ticketID,flightID,exFlightDate,flightProductID,passengerName, 11 | passengerTel,passengerIDCard,insurance,payment,ticketPrice,passengerSex) values(#{account},#{orderID},#{ticketID}, 12 | #{flightID},#{exFlightDate},#{flightProductID},#{passengerName},#{passengerTel},#{passengerIDCard},#{insurance}, 13 | #{payment},#{ticketPrice},#{passengerSex}) 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/cn/jmu/mapper/UserMapper.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.mapper; 2 | 3 | import org.apache.ibatis.annotations.Param; 4 | 5 | import cn.jmu.po.User; 6 | 7 | public interface UserMapper { 8 | public void addUser(User user) throws Exception; 9 | public User getUserByAccount(String account) throws Exception; 10 | public void updateUser(User user) throws Exception; 11 | public void payByPoint(@Param("account")String account,@Param("point")String point) throws Exception; 12 | } 13 | -------------------------------------------------------------------------------- /src/cn/jmu/mapper/UserMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | insert into Customer(account,memberID,password,[right],userName,birthdate,userIDCard,userTel,email,point,userSex) 26 | values(#{account},#{memberID},#{password},#{right},#{userName},#{birthdate},#{userIDCard},#{userTel},#{email},#{point},#{userSex}) 27 | 28 | 29 | 32 | 33 | 34 | update customer set userSex=#{userSex},userTel=#{userTel},email=#{email},password=#{password},point=#{point} 35 | where customer.account = #{account} 36 | 37 | 38 | 39 | update customer set point=#{point} where account=#{account} 40 | 41 | -------------------------------------------------------------------------------- /src/cn/jmu/po/Account.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.po; 2 | 3 | public class Account { 4 | 5 | private String account; 6 | private String password; 7 | private boolean right; 8 | 9 | public Account(String account, String password, boolean right) { 10 | super(); 11 | this.account = account; 12 | this.password = password; 13 | this.right = right; 14 | } 15 | public String getAccount() { 16 | return account; 17 | } 18 | public void setAccount(String account) { 19 | this.account = account; 20 | } 21 | public String getPassword() { 22 | return password; 23 | } 24 | public void setPassword(String password) { 25 | this.password = password; 26 | } 27 | public boolean getRight() { 28 | return right; 29 | } 30 | public void setRight(boolean right) { 31 | this.right = right; 32 | } 33 | @Override 34 | public String toString() { 35 | return "Account [account=" + account + ", password=" + password + ", right=" + right + "]"; 36 | } 37 | 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/cn/jmu/po/ExFlight.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.po; 2 | 3 | import java.sql.Date; 4 | import java.sql.Time; 5 | import java.sql.Timestamp; 6 | import java.util.List; 7 | 8 | public class ExFlight { 9 | private String flightID; 10 | private Date exFlightDate; 11 | private int flightStateID; 12 | private int foodTypeID; 13 | private String totalTime; 14 | private Time departTime; 15 | private Time arriveTime; 16 | private boolean onRevise; 17 | private boolean onRefund; 18 | 19 | private FlightState flightState; 20 | public FlightState getFlightState() { 21 | return flightState; 22 | } 23 | public void setFlightState(FlightState flightState) { 24 | this.flightState = flightState; 25 | } 26 | private Flight flight; 27 | private List exFlightProduct; 28 | 29 | public Flight getFlightType() { 30 | return flight; 31 | } 32 | public List getExFlightProduct() { 33 | return exFlightProduct; 34 | } 35 | public void setExFlightProduct(List exFlightProduct) { 36 | this.exFlightProduct = exFlightProduct; 37 | } 38 | public void setFlightType(Flight flight) { 39 | this.flight = flight; 40 | } 41 | public String getFlightID() { 42 | return flightID; 43 | } 44 | public void setFlightID(String flightID) { 45 | this.flightID = flightID; 46 | } 47 | public Date getExFlightDate() { 48 | return exFlightDate; 49 | } 50 | public void setExFlightDate(Date exFlightDate) { 51 | this.exFlightDate = exFlightDate; 52 | } 53 | public int getFlightStateID() { 54 | return flightStateID; 55 | } 56 | public void setFlightStateID(int flightStateID) { 57 | this.flightStateID = flightStateID; 58 | } 59 | public int getFoodTypeID() { 60 | return foodTypeID; 61 | } 62 | public void setFoodTypeID(int foodTypeID) { 63 | this.foodTypeID = foodTypeID; 64 | } 65 | public String getTotalTime() { 66 | return totalTime; 67 | } 68 | public void setTotalTime(String totalTime) { 69 | this.totalTime = totalTime; 70 | } 71 | public Time getDepartTime() { 72 | return departTime; 73 | } 74 | public void setDepartTime(Time departTime) { 75 | this.departTime = departTime; 76 | } 77 | public Time getArriveTime() { 78 | return arriveTime; 79 | } 80 | public void setArriveTime(Time arriveTime) { 81 | this.arriveTime = arriveTime; 82 | } 83 | public boolean isOnRevise() { 84 | return onRevise; 85 | } 86 | public void setOnRevise(boolean onRevise) { 87 | this.onRevise = onRevise; 88 | } 89 | public boolean isOnRefund() { 90 | return onRefund; 91 | } 92 | public void setOnRefund(boolean onRefund) { 93 | this.onRefund = onRefund; 94 | } 95 | public ExFlight(String flightID, Date exFlightDate, int flightStateID, int foodTypeID, String totalTime, 96 | Time departTime, Time arriveTime, boolean onRevise, boolean onRefund) { 97 | super(); 98 | this.flightID = flightID; 99 | this.exFlightDate = exFlightDate; 100 | this.flightStateID = flightStateID; 101 | this.foodTypeID = foodTypeID; 102 | this.totalTime = totalTime; 103 | this.departTime = departTime; 104 | this.arriveTime = arriveTime; 105 | this.onRevise = onRevise; 106 | this.onRefund = onRefund; 107 | } 108 | public ExFlight() { 109 | 110 | } 111 | public Flight getFlight() { 112 | return flight; 113 | } 114 | public void setFlight(Flight flight) { 115 | this.flight = flight; 116 | } 117 | } 118 | -------------------------------------------------------------------------------- /src/cn/jmu/po/ExFlightProduct.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/src/cn/jmu/po/ExFlightProduct.java -------------------------------------------------------------------------------- /src/cn/jmu/po/Flight.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.po; 2 | 3 | import java.sql.Time; 4 | 5 | public class Flight { 6 | private String flightID; 7 | private Time preDepartTime; 8 | private String preTotalTime; 9 | private String flightType; 10 | private int totalSeatNum; 11 | private String departCity; 12 | private String arriveCity; 13 | private int insurancePrice; 14 | public String getFlightID() { 15 | return flightID; 16 | } 17 | public Flight(String flightID, Time preDepartTime, String preTotalTime, String flightType, int totalSeatNum, 18 | String departCity, String arriveCity, int insurancePrice) { 19 | super(); 20 | this.flightID = flightID; 21 | this.preDepartTime = preDepartTime; 22 | this.preTotalTime = preTotalTime; 23 | this.flightType = flightType; 24 | this.totalSeatNum = totalSeatNum; 25 | this.departCity = departCity; 26 | this.arriveCity = arriveCity; 27 | this.insurancePrice = insurancePrice; 28 | } 29 | public Flight() { 30 | 31 | } 32 | public void setFlightID(String flightID) { 33 | this.flightID = flightID; 34 | } 35 | public Time getPreDepartTime() { 36 | return preDepartTime; 37 | } 38 | public void setPreDepartTime(Time preDepartTime) { 39 | this.preDepartTime = preDepartTime; 40 | } 41 | public String getPreTotalTime() { 42 | return preTotalTime; 43 | } 44 | public void setPreTotalTime(String preTotalTime) { 45 | this.preTotalTime = preTotalTime; 46 | } 47 | public String getFlightType() { 48 | return flightType; 49 | } 50 | public void setFlightType(String flightType) { 51 | this.flightType = flightType; 52 | } 53 | public int getTotalSeatNum() { 54 | return totalSeatNum; 55 | } 56 | public void setTotalSeatNum(int totalSeatNum) { 57 | this.totalSeatNum = totalSeatNum; 58 | } 59 | public String getDepartCity() { 60 | return departCity; 61 | } 62 | public void setDepartCity(String departCity) { 63 | this.departCity = departCity; 64 | } 65 | public String getArriveCity() { 66 | return arriveCity; 67 | } 68 | public void setArriveCity(String arriveCity) { 69 | this.arriveCity = arriveCity; 70 | } 71 | public int getInsurance() { 72 | return insurancePrice; 73 | } 74 | public void setInsurance(int insurancePrice) { 75 | this.insurancePrice = insurancePrice; 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /src/cn/jmu/po/FlightAndFlightProduct.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.po; 2 | 3 | public class FlightAndFlightProduct { 4 | private String flightProductID; 5 | private String flightID; 6 | private int seatNum; 7 | private int prePrice; 8 | private int prePointPrice; 9 | private int rewardPoint; 10 | 11 | private FlightProduct flightProduct; 12 | public FlightProduct getFlightProduct() { 13 | return flightProduct; 14 | } 15 | public void setFlightProduct(FlightProduct flightProduct) { 16 | this.flightProduct = flightProduct; 17 | } 18 | public String getFlightProductID() { 19 | return flightProductID; 20 | } 21 | public void setFlightProductID(String flightProductID) { 22 | this.flightProductID = flightProductID; 23 | } 24 | public String getFlightID() { 25 | return flightID; 26 | } 27 | public void setFlightID(String flightID) { 28 | this.flightID = flightID; 29 | } 30 | public int getSeatNum() { 31 | return seatNum; 32 | } 33 | public void setSeatNum(int seatNum) { 34 | this.seatNum = seatNum; 35 | } 36 | public int getPrePrice() { 37 | return prePrice; 38 | } 39 | public void setPrePrice(int prePrice) { 40 | this.prePrice = prePrice; 41 | } 42 | public int getPrePointPrice() { 43 | return prePointPrice; 44 | } 45 | public void setPrePointPrice(int prePointPrice) { 46 | this.prePointPrice = prePointPrice; 47 | } 48 | public int getRewardPoint() { 49 | return rewardPoint; 50 | } 51 | public void setRewardPoint(int rewardPoint) { 52 | this.rewardPoint = rewardPoint; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/cn/jmu/po/FlightProduct.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.po; 2 | 3 | public class FlightProduct { 4 | private String flightProductID; 5 | private String flightProductName; 6 | public String getFlightProductID() { 7 | return flightProductID; 8 | } 9 | public void setFlightProductID(String flightProductID) { 10 | this.flightProductID = flightProductID; 11 | } 12 | public String getFlightProductName() { 13 | return flightProductName; 14 | } 15 | public void setFlightProductName(String flightProductName) { 16 | this.flightProductName = flightProductName; 17 | } 18 | public FlightProduct(String flightProductID, String flightProductName) { 19 | super(); 20 | this.flightProductID = flightProductID; 21 | this.flightProductName = flightProductName; 22 | } 23 | public FlightProduct() { 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/cn/jmu/po/FlightState.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.po; 2 | 3 | public class FlightState { 4 | private int flightStateID; 5 | private String flightStateContext; 6 | public int getFlightStateID() { 7 | return flightStateID; 8 | } 9 | public void setFlightStateID(int flightStateID) { 10 | this.flightStateID = flightStateID; 11 | } 12 | public String getFlightStateContext() { 13 | return flightStateContext; 14 | } 15 | public void setFlightStateContext(String flightStateContext) { 16 | this.flightStateContext = flightStateContext; 17 | } 18 | public FlightState(int flightStateID, String flightStateContext) { 19 | super(); 20 | this.flightStateID = flightStateID; 21 | this.flightStateContext = flightStateContext; 22 | } 23 | public FlightState() { 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/cn/jmu/po/Member.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.po; 2 | 3 | public class Member { 4 | private String memberID; 5 | private String memberName; 6 | public String getMemberID() { 7 | return memberID; 8 | } 9 | public void setMemberID(String memberID) { 10 | this.memberID = memberID; 11 | } 12 | public String getMemberName() { 13 | return memberName; 14 | } 15 | public void setMemberName(String memberName) { 16 | this.memberName = memberName; 17 | } 18 | public Member() { 19 | 20 | } 21 | public Member(String memberID, String memberName) { 22 | super(); 23 | this.memberID = memberID; 24 | this.memberName = memberName; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/cn/jmu/po/OrderList.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.po; 2 | 3 | import java.sql.Timestamp; 4 | 5 | public class OrderList { 6 | private String account; 7 | private int orderID; 8 | private Timestamp orderTime; 9 | public String getAccount() { 10 | return account; 11 | } 12 | public void setAccount(String account) { 13 | this.account = account; 14 | } 15 | public int getOrderID() { 16 | return orderID; 17 | } 18 | public void setOrderID(int orderID) { 19 | this.orderID = orderID; 20 | } 21 | public Timestamp getOrderTime() { 22 | return orderTime; 23 | } 24 | public void setOrderTime(Timestamp orderTime) { 25 | this.orderTime = orderTime; 26 | } 27 | public OrderList(String account, int orderID, Timestamp orderTime) { 28 | super(); 29 | this.account = account; 30 | this.orderID = orderID; 31 | this.orderTime = orderTime; 32 | } 33 | public OrderList() { 34 | 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/cn/jmu/po/Passenger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/src/cn/jmu/po/Passenger.java -------------------------------------------------------------------------------- /src/cn/jmu/po/RuleList.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.po; 2 | 3 | import java.sql.Date; 4 | 5 | public class RuleList { 6 | private int ruleID; 7 | private String ruleContext; 8 | private Date reviseTime; 9 | public RuleList() { 10 | 11 | }// 12 | public RuleList(int ruleID, String ruleContext, Date reviseTime) { 13 | this.ruleID = ruleID; 14 | this.ruleContext = ruleContext; 15 | this.reviseTime = reviseTime; 16 | } 17 | public int getRuleID() { 18 | return ruleID; 19 | } 20 | public void setRuleID(int ruleID) { 21 | this.ruleID = ruleID; 22 | } 23 | public String getRuleContext() { 24 | return ruleContext; 25 | } 26 | public void setRuleContext(String ruleContext) { 27 | this.ruleContext = ruleContext; 28 | } 29 | public Date getReviseTime() { 30 | return reviseTime; 31 | } 32 | public void setReviseTime(Date reviseTime) { 33 | this.reviseTime = reviseTime; 34 | } 35 | @Override 36 | public String toString() { 37 | return "RuleList [ruleID=" + ruleID + ", ruleContext=" + ruleContext + ", reviseTime=" + reviseTime + "]"; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/cn/jmu/po/Statement.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.po; 2 | 3 | public class Statement { 4 | private String flightID; 5 | private int year; 6 | private int month; 7 | private int ticketNum; 8 | private int income; 9 | private float rate; 10 | private int exNum; 11 | public String getFlightID() { 12 | return flightID; 13 | } 14 | public void setFlightID(String flightID) { 15 | this.flightID = flightID; 16 | } 17 | public int getYear() { 18 | return year; 19 | } 20 | public void setYear(int year) { 21 | this.year = year; 22 | } 23 | public int getMonth() { 24 | return month; 25 | } 26 | public void setMonth(int month) { 27 | this.month = month; 28 | } 29 | public int getTicketNum() { 30 | return ticketNum; 31 | } 32 | public void setTicketNum(int ticketNum) { 33 | this.ticketNum = ticketNum; 34 | } 35 | public int getIncome() { 36 | return income; 37 | } 38 | public void setIncome(int income) { 39 | this.income = income; 40 | } 41 | public float getRate() { 42 | return rate; 43 | } 44 | public void setRate(float rate) { 45 | this.rate = rate; 46 | } 47 | public int getExNum() { 48 | return exNum; 49 | } 50 | public void setExNum(int exNum) { 51 | this.exNum = exNum; 52 | } 53 | public Statement(String flightID, int year, int month, int ticketNum, int income, float rate, int exNum) { 54 | super(); 55 | this.flightID = flightID; 56 | this.year = year; 57 | this.month = month; 58 | this.ticketNum = ticketNum; 59 | this.income = income; 60 | this.rate = rate; 61 | this.exNum = exNum; 62 | } 63 | public Statement() { 64 | 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /src/cn/jmu/po/Ticket.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingfenghu/uni_project_java/067c488a9a071b056eb4ab30c6575fe6e3c0cb63/src/cn/jmu/po/Ticket.java -------------------------------------------------------------------------------- /src/cn/jmu/po/User.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.po; 2 | 3 | import java.sql.Date; 4 | 5 | public class User { 6 | private String account; 7 | private String password; 8 | private boolean right; 9 | private String userName; 10 | private int memberID; 11 | private Date birthdate; 12 | private String userIDCard; 13 | private String userTel; 14 | private String email; 15 | private int point; 16 | private boolean userSex; 17 | 18 | private Member member; 19 | public boolean isUserSex() { 20 | return userSex; 21 | } 22 | public void setUserSex(boolean userSex) { 23 | this.userSex = userSex; 24 | } 25 | public Member getMember() { 26 | return member; 27 | } 28 | public void setMember(Member member) { 29 | this.member = member; 30 | } 31 | public boolean isSex() { 32 | return userSex; 33 | } 34 | public void setSex(boolean userSex) { 35 | this.userSex = userSex; 36 | } 37 | public String getAccount() { 38 | return account; 39 | } 40 | public User(String account, String password, boolean right, String userName, int memberID, Date birthdate, 41 | String userIDCard, String userTel, String email, int point, boolean userSex) { 42 | this.account = account; 43 | this.password = password; 44 | this.right = right; 45 | this.userName = userName; 46 | this.memberID = memberID; 47 | this.birthdate = birthdate; 48 | this.userIDCard = userIDCard; 49 | this.userTel = userTel; 50 | this.email = email; 51 | this.point = point; 52 | this.userSex = userSex; 53 | } 54 | public User() { 55 | 56 | } 57 | public void setAccount(String account) { 58 | this.account = account; 59 | } 60 | public String getPassword() { 61 | return password; 62 | } 63 | public void setPassword(String password) { 64 | this.password = password; 65 | } 66 | public boolean isRight() { 67 | return right; 68 | } 69 | public void setRight(boolean right) { 70 | this.right = right; 71 | } 72 | public String getUserName() { 73 | return userName; 74 | } 75 | public void setUserName(String userName) { 76 | this.userName = userName; 77 | } 78 | public int getMemberID() { 79 | return memberID; 80 | } 81 | public void setMemberID(int memberID) { 82 | this.memberID = memberID; 83 | } 84 | public Date getBirthdate() { 85 | return birthdate; 86 | } 87 | public void setBirthdate(Date birthdate) { 88 | this.birthdate = birthdate; 89 | } 90 | public String getUserIDCard() { 91 | return userIDCard; 92 | } 93 | public void setUserIDCard(String userIDCard) { 94 | this.userIDCard = userIDCard; 95 | } 96 | public String getUserTel() { 97 | return userTel; 98 | } 99 | public void setUserTel(String userTel) { 100 | this.userTel = userTel; 101 | } 102 | public String getEmail() { 103 | return email; 104 | } 105 | public void setEmail(String email) { 106 | this.email = email; 107 | } 108 | public int getPoint() { 109 | return point; 110 | } 111 | public void setPoint(int point) { 112 | this.point = point; 113 | } 114 | } 115 | -------------------------------------------------------------------------------- /src/cn/jmu/service/AccountService.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.service; 2 | 3 | import java.util.List; 4 | 5 | import cn.jmu.po.Account; 6 | 7 | public interface AccountService { 8 | public List getAllAccount() throws Exception; 9 | public void addAccount(Account account) throws Exception; 10 | public void UpdateAccount(Account account) throws Exception; 11 | public Account getAccountByAccount(String account) throws Exception; 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/cn/jmu/service/ExFlightProductService.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.service; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.stereotype.Service; 6 | 7 | import cn.jmu.po.ExFlightProduct; 8 | 9 | public interface ExFlightProductService { 10 | 11 | public List getAllExFlightProduct() throws Exception; 12 | public ExFlightProduct getExFlightProductByPK(String flightID,String exFlightDate,String flightProductID) throws Exception; 13 | public int updateExFlightProduct(ExFlightProduct exFlightProduct) throws Exception; 14 | public List getAllExFlightProductByFlightIDAndDate(String flightID,String exFlightDate) throws Exception; 15 | public int getExFlightProductLeftTicket(String flightID,String flightProductID,String exFlightDate) throws Exception; 16 | public void updateExFlightProductTicket(String num,String flightID,String flightProductID,String exFlightDate)throws Exception; 17 | } 18 | -------------------------------------------------------------------------------- /src/cn/jmu/service/ExFlightService.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.service; 2 | 3 | import java.sql.Date; 4 | import java.sql.Timestamp; 5 | import java.util.List; 6 | 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpServletResponse; 9 | 10 | import cn.jmu.po.ExFlight; 11 | import cn.jmu.po.ExFlightProduct; 12 | 13 | public interface ExFlightService { 14 | public List getAllExFlight() throws Exception; 15 | public List getExFlightByFlightID(String flightID) throws Exception; 16 | public ExFlight getExFlightByFlightIDAndExFlghtDate(String flightID,String exFlightDate)throws Exception; 17 | public void updateExFlight(ExFlight exFlight) throws Exception; 18 | 19 | public ExFlight getExFlightAndFlightStateAndFlightByDateaAndFlightID(String flightID,String exFlightDate) throws Exception; 20 | public List getAllExFlightAndFlightProductByCityAndDate(String exFlightDate,String departCity,String arriveCity) throws Exception; 21 | public List getAllExFlightAndFligtStateAndFlightByCityAndDate(String exFlightDate,String departCity,String arriveCity) throws Exception; 22 | 23 | 24 | } 25 | -------------------------------------------------------------------------------- /src/cn/jmu/service/FlightProductService.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.service; 2 | 3 | import java.util.List; 4 | 5 | import cn.jmu.po.FlightProduct; 6 | 7 | public interface FlightProductService { 8 | public List getALLFlightProdcutByFlightID(String flightID) throws Exception; 9 | public int getRewardPoint(String flightID,String flightProductID) throws Exception; 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/cn/jmu/service/FlightService.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.service; 2 | 3 | import java.util.List; 4 | 5 | import cn.jmu.po.Flight; 6 | 7 | public interface FlightService { 8 | public Flight getFlightByID(String ID) throws Exception; 9 | public List getAllFlight() throws Exception; 10 | public void updateFlight(Flight flight) throws Exception; 11 | public void addFlight(Flight flight) throws Exception; 12 | } 13 | -------------------------------------------------------------------------------- /src/cn/jmu/service/OrderListService.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.service; 2 | 3 | import cn.jmu.po.OrderList; 4 | 5 | public interface OrderListService { 6 | public void addOrder(OrderList order) throws Exception; 7 | public int getLatestOrderID(String account) throws Exception; 8 | } 9 | -------------------------------------------------------------------------------- /src/cn/jmu/service/RuleListService.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.service; 2 | 3 | import cn.jmu.po.RuleList; 4 | 5 | public interface RuleListService { 6 | public RuleList getRule() throws Exception; 7 | public int updateRule(RuleList rule) throws Exception; 8 | } 9 | -------------------------------------------------------------------------------- /src/cn/jmu/service/StatementService.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.service; 2 | 3 | import cn.jmu.po.Statement; 4 | 5 | public interface StatementService { 6 | public Statement getAStatement(String year,String month,String flightID) throws Exception; 7 | } 8 | -------------------------------------------------------------------------------- /src/cn/jmu/service/TicketService.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.service; 2 | 3 | import java.util.List; 4 | 5 | import cn.jmu.po.Ticket; 6 | 7 | public interface TicketService { 8 | public List getAllTickeByAccount(String account) throws Exception; 9 | public void addTicket(Ticket ticket) throws Exception; 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/cn/jmu/service/UserService.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.service; 2 | 3 | import cn.jmu.po.User; 4 | 5 | public interface UserService { 6 | public void addUser(User user) throws Exception; 7 | public User getUserByAccount(String account) throws Exception; 8 | public void updateUser(User user) throws Exception; 9 | public void payByPoint(String account,String point) throws Exception; 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/cn/jmu/service/impl/AccountServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.service.impl; 2 | 3 | import java.util.List; 4 | 5 | import javax.annotation.Resource; 6 | 7 | import org.springframework.stereotype.Service; 8 | 9 | import cn.jmu.mapper.AccountMapper; 10 | import cn.jmu.po.Account; 11 | import cn.jmu.service.AccountService; 12 | 13 | @Service 14 | public class AccountServiceImpl implements AccountService{ 15 | 16 | @Resource(name="accountMapper") 17 | private AccountMapper accountMapper; 18 | 19 | public List getAllAccount() throws Exception { 20 | return this.accountMapper.getAllAccount(); 21 | } 22 | public void addAccount(Account account) throws Exception{ 23 | this.accountMapper.addAccount(account); 24 | } 25 | public void UpdateAccount(Account account) throws Exception{ 26 | this.accountMapper.UpdateAccount(account); 27 | } 28 | public Account getAccountByAccount(String account) throws Exception{ 29 | return this.accountMapper.getAccountByAccount(account); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/cn/jmu/service/impl/ExFlightProductServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.service.impl; 2 | 3 | import java.util.List; 4 | 5 | import javax.annotation.Resource; 6 | 7 | import org.springframework.stereotype.Service; 8 | 9 | import cn.jmu.mapper.ExFlightProductMapper; 10 | import cn.jmu.po.ExFlightProduct; 11 | import cn.jmu.service.ExFlightProductService; 12 | 13 | @Service 14 | public class ExFlightProductServiceImpl implements ExFlightProductService { 15 | @Resource(name="exFlightProductMapper") 16 | private ExFlightProductMapper exFlightProductMapper; 17 | 18 | public List getAllExFlightProduct() throws Exception{ 19 | return exFlightProductMapper.getAllExFlightProduct(); 20 | } 21 | 22 | @Override 23 | public ExFlightProduct getExFlightProductByPK(String flightID, String exFlightDate, String flightProductID) 24 | throws Exception { 25 | return exFlightProductMapper.getExFlightProductByPK(flightID, exFlightDate, flightProductID); 26 | } 27 | 28 | public int updateExFlightProduct(ExFlightProduct exFlightProduct) throws Exception{ 29 | return exFlightProductMapper.updateExFlightProduct(exFlightProduct); 30 | } 31 | 32 | public List getAllExFlightProductByFlightIDAndDate(String flightID,String exFlightDate) throws Exception{ 33 | return this.exFlightProductMapper.getAllExFlightProductByFlightIDAndDate(flightID, exFlightDate); 34 | } 35 | public int getExFlightProductLeftTicket(String flightID,String flightProductID,String exFlightDate) throws Exception{ 36 | return this.exFlightProductMapper.getExFlightProductLeftTicket(flightID, flightProductID, exFlightDate); 37 | } 38 | public void updateExFlightProductTicket(String num,String flightID,String flightProductID,String exFlightDate)throws Exception{ 39 | this.exFlightProductMapper.updateExFlightProductTicket(num, flightID, flightProductID, exFlightDate); 40 | } 41 | 42 | 43 | } 44 | -------------------------------------------------------------------------------- /src/cn/jmu/service/impl/ExFlightServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.service.impl; 2 | 3 | import java.sql.Date; 4 | import java.sql.Timestamp; 5 | import java.util.List; 6 | 7 | import javax.annotation.Resource; 8 | 9 | import org.springframework.stereotype.Service; 10 | 11 | import cn.jmu.mapper.ExFlightMapper; 12 | import cn.jmu.po.ExFlight; 13 | import cn.jmu.po.ExFlightProduct; 14 | import cn.jmu.service.ExFlightService; 15 | @Service 16 | public class ExFlightServiceImpl implements ExFlightService{ 17 | @Resource(name="exFlightMapper") 18 | private ExFlightMapper exFlightMapper; 19 | public List getAllExFlight() throws Exception{ 20 | return this.exFlightMapper.getAllExFlight(); 21 | } 22 | public List getExFlightByFlightID(String flightID) throws Exception{ 23 | return this.exFlightMapper.getExFlightByFlightID(flightID); 24 | } 25 | public ExFlight getExFlightByFlightIDAndExFlghtDate(String flightID,String exFlightDate)throws Exception{ 26 | return this.exFlightMapper.getExFlightAndFlightStateAndFlightByDateaAndFlightID(flightID, exFlightDate); 27 | } 28 | public void updateExFlight(ExFlight exFlight) throws Exception{ 29 | this.exFlightMapper.updateExFlight(exFlight); 30 | } 31 | public ExFlight getExFlightAndFlightStateAndFlightByDateaAndFlightID(String flightID,String exFlightDate) throws Exception{ 32 | return this.exFlightMapper.getExFlightAndFlightStateAndFlightByDateaAndFlightID(flightID, exFlightDate); 33 | } 34 | 35 | public List getAllExFlightAndFlightProductByCityAndDate(String exFlightDate,String departCity,String arriveCity) throws Exception{ 36 | return this.exFlightMapper.getAllExFlightAndFlightProductByCityAndDate(exFlightDate, departCity, arriveCity); 37 | } 38 | 39 | public List getAllExFlightAndFligtStateAndFlightByCityAndDate(String exFlightDate, String departCity, String arriveCity) throws Exception { 40 | return this.exFlightMapper.getAllExFlightAndFligtStateAndFlightByCityAndDate(exFlightDate, departCity, arriveCity); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/cn/jmu/service/impl/FlightProductServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.service.impl; 2 | 3 | import java.util.List; 4 | 5 | import javax.annotation.Resource; 6 | 7 | import org.springframework.stereotype.Service; 8 | 9 | import cn.jmu.mapper.FlightProductMapper; 10 | import cn.jmu.po.FlightProduct; 11 | import cn.jmu.service.FlightProductService; 12 | @Service 13 | public class FlightProductServiceImpl implements FlightProductService{ 14 | @Resource(name="flightProductMapper") 15 | private FlightProductMapper flightProductMapper; 16 | 17 | public List getALLFlightProdcutByFlightID(String flightID) throws Exception{ 18 | return this.getALLFlightProdcutByFlightID(flightID); 19 | } 20 | public int getRewardPoint(String flightID,String flightProductID) throws Exception{ 21 | return this.flightProductMapper.getRewardPoint(flightID, flightProductID); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/cn/jmu/service/impl/FlightServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.service.impl; 2 | 3 | 4 | import java.util.List; 5 | 6 | import javax.annotation.Resource; 7 | import org.springframework.stereotype.Service; 8 | 9 | import cn.jmu.mapper.FlightMapper; 10 | import cn.jmu.po.Flight; 11 | import cn.jmu.service.FlightService; 12 | 13 | @Service 14 | public class FlightServiceImpl implements FlightService { 15 | @Resource(name="flightMapper") 16 | private FlightMapper flightMapper; 17 | 18 | public Flight getFlightByID(String ID) throws Exception{ 19 | return this.flightMapper.getFlightByID(ID); 20 | } 21 | public List getAllFlight() throws Exception{ 22 | return this.flightMapper.getAllFlight(); 23 | } 24 | public void updateFlight(Flight flight) throws Exception{ 25 | this.flightMapper.updateFlight(flight); 26 | } 27 | public void addFlight(Flight flight) throws Exception{ 28 | this.flightMapper.addFlight(flight); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/cn/jmu/service/impl/OrderListServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.service.impl; 2 | 3 | import javax.annotation.Resource; 4 | 5 | import org.springframework.stereotype.Service; 6 | 7 | import cn.jmu.mapper.OrderListMapper; 8 | import cn.jmu.po.OrderList; 9 | import cn.jmu.service.OrderListService; 10 | @Service 11 | public class OrderListServiceImpl implements OrderListService{ 12 | @Resource(name="orderListMapper") 13 | private OrderListMapper orderListMapper; 14 | public void addOrder(OrderList order) throws Exception { 15 | this.orderListMapper.addOrder(order); 16 | } 17 | public int getLatestOrderID(String account) throws Exception{ 18 | return this.orderListMapper.getLatestOrderID(account); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/cn/jmu/service/impl/RuleListServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.service.impl; 2 | 3 | import javax.annotation.Resource; 4 | 5 | import org.springframework.stereotype.Service; 6 | 7 | import cn.jmu.mapper.RuleListMapper; 8 | import cn.jmu.po.RuleList; 9 | import cn.jmu.service.RuleListService; 10 | 11 | @Service 12 | public class RuleListServiceImpl implements RuleListService { 13 | @Resource(name="ruleListMapper") 14 | private RuleListMapper ruleListMapper; 15 | 16 | @Override 17 | public RuleList getRule() throws Exception{ 18 | return this.ruleListMapper.getRule(); 19 | } 20 | 21 | @Override 22 | public int updateRule(RuleList rule) throws Exception{ 23 | return this.ruleListMapper.updateRule(rule); 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /src/cn/jmu/service/impl/StatementServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.service.impl; 2 | 3 | import javax.annotation.Resource; 4 | 5 | import org.springframework.stereotype.Service; 6 | 7 | import cn.jmu.mapper.StatementMapper; 8 | import cn.jmu.po.Statement; 9 | import cn.jmu.service.StatementService; 10 | @Service 11 | public class StatementServiceImpl implements StatementService{ 12 | @Resource(name="statementMapper") 13 | private StatementMapper statementMapper; 14 | public Statement getAStatement(String year, String month, String flightID) throws Exception { 15 | return this.statementMapper.getAStatement(year, month, flightID); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/cn/jmu/service/impl/TicketServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.service.impl; 2 | 3 | import java.util.List; 4 | 5 | import javax.annotation.Resource; 6 | 7 | import org.springframework.stereotype.Service; 8 | 9 | import cn.jmu.mapper.TicketMapper; 10 | import cn.jmu.po.Ticket; 11 | import cn.jmu.service.TicketService; 12 | @Service 13 | public class TicketServiceImpl implements TicketService{ 14 | @Resource(name="ticketMapper") 15 | private TicketMapper ticketMapper; 16 | public List getAllTickeByAccount(String account) throws Exception{ 17 | return ticketMapper.getAllTickeByAccount(account); 18 | } 19 | public void addTicket(Ticket ticket) throws Exception{ 20 | ticketMapper.addTicket(ticket); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/cn/jmu/service/impl/UserServiceImpl.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.service.impl; 2 | 3 | import javax.annotation.Resource; 4 | 5 | import org.springframework.stereotype.Service; 6 | 7 | import cn.jmu.mapper.AccountMapper; 8 | import cn.jmu.mapper.UserMapper; 9 | import cn.jmu.po.Account; 10 | import cn.jmu.po.User; 11 | import cn.jmu.service.UserService; 12 | @Service 13 | public class UserServiceImpl implements UserService{ 14 | 15 | @Resource(name="accountMapper") 16 | private AccountMapper accountMapper; 17 | @Resource(name="userMapper") 18 | private UserMapper userMapper; 19 | public void addUser(User user) throws Exception { 20 | this.userMapper.addUser(user); 21 | } 22 | 23 | public User getUserByAccount(String account) throws Exception{ 24 | return this.userMapper.getUserByAccount(account); 25 | } 26 | public void updateUser(User user) throws Exception{ 27 | this.userMapper.updateUser(user); 28 | } 29 | public void payByPoint(String account,String point) throws Exception{ 30 | this.userMapper.payByPoint(account, point); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/cn/jmu/test/SSMTest.java: -------------------------------------------------------------------------------- 1 | package cn.jmu.test; 2 | 3 | 4 | import java.sql.Time; 5 | import java.text.ParseException; 6 | import java.text.SimpleDateFormat; 7 | import java.util.List; 8 | import java.util.UUID; 9 | 10 | import org.junit.Test; 11 | import org.springframework.context.ApplicationContext; 12 | import org.springframework.context.support.ClassPathXmlApplicationContext; 13 | 14 | import cn.jmu.po.Account; 15 | import cn.jmu.po.ExFlight; 16 | import cn.jmu.po.ExFlightProduct; 17 | import cn.jmu.service.AccountService; 18 | import cn.jmu.service.ExFlightService; 19 | 20 | public class SSMTest { 21 | 22 | @Test 23 | public void getAllExFlight() throws Exception { 24 | ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:applicationContext.xml"); 25 | ExFlightService exFlightService = (ExFlightService) applicationContext.getBean("exFlightServiceImpl"); 26 | List all = exFlightService.getAllExFlight(); 27 | for(ExFlight exFlight : all) { 28 | System.out.println(exFlight.toString()); 29 | } 30 | } 31 | @Test 32 | public void ttt() throws ParseException { 33 | System.currentTimeMillis(); 34 | 35 | } 36 | } 37 | --------------------------------------------------------------------------------