資源簡(jiǎn)介
使用 idea 編輯器開發(fā),使用 Java-maven 管理項(xiàng)目,使用 SSM 框架,在異步處理上使用了 Dwr框架,并采用 Quartz 框架來(lái)定時(shí)完成指定任務(wù),tomcat 服務(wù)器,數(shù)據(jù)庫(kù)使用Mysql。靈活使用 dwr做到前端與后臺(tái)的信息交互,熟練使用 SSM 框架來(lái)操 作數(shù)據(jù)庫(kù)、管理網(wǎng)頁(yè)分發(fā)請(qǐng)求。整個(gè)項(xiàng)目各個(gè)包之間分工明確,代碼整潔規(guī)范。整體實(shí)現(xiàn)了客戶在線預(yù)定座位,客戶上下機(jī)管理,在線充值等 客戶功能,服務(wù)器實(shí)現(xiàn)了自動(dòng)下機(jī)管理,預(yù)約管理等功能
代碼片段和文件信息
package?com.lkf.controller;
import?com.lkf.pojo.*;
import?com.lkf.services.*;
import?org.springframework.stereotype.Controller;
import?org.springframework.ui.Model;
import?org.springframework.ui.ModelMap;
import?org.springframework.web.bind.annotation.RequestMapping;
import?com.lkf.pojo.Success_surf_record;
import?javax.annotation.Resource;
import?javax.servlet.http.HttpServletRequest;
import?javax.servlet.http.HttpServletResponse;
import?javax.servlet.http.HttpSession;
import?java.io.IOException;
import?java.io.PrintWriter;
import?java.util.Calendar;
@Controller
public?class?OpencompController?{
????String?message=““;
????@Resource
????private?Order_record?orderRecord;
????@Resource
????private?Order_reService?order_reService;
????@Resource
????private?Computer_inf?computer_inf;
????@Resource
????private?CompService?compService;
????@Resource
????private?Surf_reService?surf_reService;
????@Resource
????private?Surf_record?surf_record;
????@Resource
????private?User_inf?user_inf;
????@Resource
????private?User_infService?user_infService;
????@Resource
????private?Computer_inf?computer_inf1;
????@Resource
????private?Success_surf_reService?success_surf_reService;
????@Resource
????private?Success_surf_record?success_surf_record;
????@Resource
????private??Success_order_record?success_order_record;
????@Resource
????private??Success_order_reService?success_order_reService;
????@RequestMapping(value?=?“/open.action“)
????public?String?toIndex(HttpServletRequest?request?HttpServletResponse?response?Model?model?ModelMap?modelmap)?throws?IOException?{
?????????????Calendar?c?=?Calendar.getInstance();//可以對(duì)每個(gè)時(shí)間域單獨(dú)修改
?????????int?computernumber=this.compService.getcomputernumber();
????????????int?year?=?c.get(Calendar.YEAR);
????????????int?month?=?c.get(Calendar.MONTH)+1;
????????????int?date?=?c.get(Calendar.DATE);
????????????int?hour?=?c.get(Calendar.HOUR_OF_DAY);
????????????int?minute?=?c.get(Calendar.MINUTE);
????????????HttpSession?session=request.getSession();
????????????String?usernmae=(String)session.getAttribute(“username“);
????????????user_inf=this.user_infService.selectByKEYID(usernmae);
????????????if(user_inf.getIsAppointment().equals(“yes“))//判斷是否預(yù)約了!
????????????{
????????????????orderRecord?=?this.order_reService.selectorderbykey(usernmae);
????????????}
????????????if(request.getParameter(“Computer_id“).equals(““))//判斷有沒(méi)有輸入座位
????????????{
????????????????message=“Please?Input?computer_id!“;
????????????????modelmap.addAttribute(“Message“message);
????????????????return?“open“;
????????????}
????????????int??computer_id=Integer.valueOf(request.getParameter(“Computer_id“));
????????????computer_inf=this.compService.selectCompByid(computer_id);
????????????if(computer_id>computernumber||computer_id<1)//判斷座位號(hào)是否合理
????????????{
????????????????message=“Sorry!Please?input?Correct?computer_id!“;
????????????????modelmap.addAttribute(“Message“message);
?
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-08-23?13:45??shuxun_web\.idea\
?????目錄???????????0??2018-07-24?09:16??shuxun_web\.idea\artifacts\
?????文件?????????254??2018-07-24?09:16??shuxun_web\.idea\artifacts\shixun.xm
?????文件?????????531??2018-08-23?11:37??shuxun_web\.idea\compiler.xm
?????文件?????????172??2018-06-25?14:42??shuxun_web\.idea\encodings.xm
?????目錄???????????0??2018-06-29?14:06??shuxun_web\.idea\libraries\
?????文件?????????891??2018-06-29?14:06??shuxun_web\.idea\libraries\org_thymeleaf_thymeleaf_Release.xm
?????文件?????????892??2018-06-29?14:06??shuxun_web\.idea\libraries\org_thymeleaf_thymeleaf_Release1.xm
?????文件?????????849??2018-06-29?14:06??shuxun_web\.idea\libraries\org_thymeleaf_thymeleaf_spring4_Release.xm
?????文件?????????850??2018-06-29?14:06??shuxun_web\.idea\libraries\org_thymeleaf_thymeleaf_spring4_Release1.xm
?????文件?????????640??2018-06-25?14:42??shuxun_web\.idea\misc.xm
?????文件????????8792??2018-06-27?14:43??shuxun_web\.idea\uiDesigner.xm
?????文件???????65669??2018-08-23?13:45??shuxun_web\.idea\workspace.xm
?????文件???????10159??2018-07-26?11:06??shuxun_web\pom.xm
?????文件?????????155??2018-06-27?10:50??shuxun_web\shuxun_web.iml
?????文件?????1271379??2018-06-29?16:18??shuxun_web\shuxun_web.zip
?????目錄???????????0??2018-06-25?15:44??shuxun_web\src\
?????目錄???????????0??2018-06-26?09:53??shuxun_web\src\main\
?????目錄???????????0??2018-06-27?14:11??shuxun_web\src\main\java\
?????目錄???????????0??2018-06-25?15:49??shuxun_web\src\main\java\com\
?????目錄???????????0??2018-06-27?14:17??shuxun_web\src\main\java\com\lkf\
?????目錄???????????0??2018-07-16?16:14??shuxun_web\src\main\java\com\lkf\controller\
?????文件???????15186??2018-07-16?16:05??shuxun_web\src\main\java\com\lkf\controller\OpencompController.java
?????文件????????2259??2018-07-11?15:43??shuxun_web\src\main\java\com\lkf\controller\PayController.java
?????文件????????9182??2018-07-12?16:39??shuxun_web\src\main\java\com\lkf\controller\quartzController.java
?????文件????????2752??2018-07-12?16:48??shuxun_web\src\main\java\com\lkf\controller\regUserController.java
?????文件?????????133??2018-07-09?14:52??shuxun_web\src\main\java\com\lkf\controller\ShopController.java
?????文件????????5453??2018-07-16?16:14??shuxun_web\src\main\java\com\lkf\controller\subscribeController.java
?????文件????????2394??2018-07-05?11:19??shuxun_web\src\main\java\com\lkf\controller\UserController.java
?????目錄???????????0??2018-07-12?16:31??shuxun_web\src\main\java\com\lkf\dao\
?????文件?????????443??2018-07-12?16:31??shuxun_web\src\main\java\com\lkf\dao\Computer_infMapper.java
............此處省略476個(gè)文件信息
評(píng)論
共有 條評(píng)論