-
大小: 49.12MB文件類型: .zip金幣: 1下載: 0 次發(fā)布日期: 2023-07-09
- 語言: Java
- 標(biāo)簽: ssm??管理系統(tǒng)??酒店系統(tǒng)??視頻教程??java??
資源簡(jiǎn)介
今天我們發(fā)布的是一款由jsp+ssm框架(spring、springMVC、mybaits)實(shí)現(xiàn)的酒店預(yù)定管理系統(tǒng)的源碼和視頻開發(fā)教程,這里強(qiáng)調(diào)一點(diǎn),本系統(tǒng)是在我們的萬能腳手架系統(tǒng)的基礎(chǔ)上開發(fā)的,如果你還沒有學(xué)習(xí)腳手架系統(tǒng)開發(fā)教程的話請(qǐng)先去學(xué)習(xí)腳手架系統(tǒng).本系統(tǒng)分前臺(tái)和后臺(tái)管理兩部分,前臺(tái)實(shí)現(xiàn)了用戶登錄注冊(cè)、查看房型信息、預(yù)定房間、提交訂單、查看個(gè)人訂單、修改個(gè)人資
代碼片段和文件信息
package?com.ischoolbar.programmer.controller.admin;
import?com.ischoolbar.programmer.entity.Account;
import?com.ischoolbar.programmer.page.admin.Page;
import?com.ischoolbar.programmer.service.AccountService;
import?org.apache.commons.lang.StringUtils;
import?org.springframework.beans.factory.annotation.Autowired;
import?org.springframework.stereotype.Controller;
import?org.springframework.web.bind.annotation.RequestMapping;
import?org.springframework.web.bind.annotation.RequestMethod;
import?org.springframework.web.bind.annotation.RequestParam;
import?org.springframework.web.bind.annotation.ResponseBody;
import?org.springframework.web.servlet.ModelAndView;
import?java.util.HashMap;
import?java.util.Map;
/**
?*?客戶管理后臺(tái)控制器
?*?@author?Administrator
?*
?*/
@RequestMapping(“/admin/account“)
@Controller
public?class?AccountController?{
@Autowired
private?AccountService?accountService;
/**
?*?客戶管理列表頁(yè)面
?*?@param?model
?*?@return
?*/
@RequestMapping(value=“/list“method=RequestMethod.GET)
public?ModelAndView?list(ModelAndView?model){
model.setViewName(“account/list“);
return?model;
}
/**
?*?客戶信息添加操作
?*?@param?account
?*?@return
?*/
@RequestMapping(value=“/add“method=RequestMethod.POST)
@ResponseBody
public?Map?add(Account?account){
Map?ret?=?new?HashMap();
if(account?==?null){
ret.put(“type“?“error“);
ret.put(“msg“?“請(qǐng)?zhí)顚懻_的客戶信息!“);
return?ret;
}
if(StringUtils.isEmpty(account.getName())){
ret.put(“type“?“error“);
ret.put(“msg“?“客戶名稱不能為空!“);
return?ret;
}
if(StringUtils.isEmpty(account.getPassword())){
ret.put(“type“?“error“);
ret.put(“msg“?“客戶密碼不能為空!“);
return?ret;
}
if(isExist(account.getName()?0l)){
ret.put(“type“?“error“);
ret.put(“msg“?“該用戶名已經(jīng)存在!“);
return?ret;
}
if(accountService.add(account)?<=?0){
ret.put(“type“?“error“);
ret.put(“msg“?“添加失敗,請(qǐng)聯(lián)系管理員!“);
return?ret;
}
ret.put(“type“?“success“);
ret.put(“msg“?“添加成功!“);
return?ret;
}
/**
?*?客戶信息編輯操作
?*?@param?account
?*?@return
?*/
@RequestMapping(value=“/edit“method=RequestMethod.POST)
@ResponseBody
public?Map?edit(Account?account){
Map?ret?=?new?HashMap();
if(account?==?null){
ret.put(“type“?“error“);
ret.put(“msg“?“請(qǐng)?zhí)顚懻_的客戶信息!“);
return?ret;
}
if(StringUtils.isEmpty(account.getName())){
ret.put(“type“?“error“);
ret.put(“msg“?“客戶名稱不能為空!“);
return?ret;
}
if(StringUtils.isEmpty(account.getPassword())){
ret.put(“type“?“error“);
ret.put(“msg“?“客戶密碼不能為空!“);
return?ret;
}
if(isExist(account.getName()?account.getId())){
ret.put(“type“?“error“);
ret.put(“msg“?“該用戶名已經(jīng)存在!“);
return?ret;
}
if(accountService.edit(account)?<=?0){
ret.put(“type“?“error“);
ret.put(“msg“?“添加失敗,請(qǐng)聯(lián)系管理員!“);
return?ret;
}
re
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-07-07?17:53??HotelSSM\
?????目錄???????????0??2019-07-07?17:50??HotelSSM\.idea\
?????目錄???????????0??2019-07-07?17:50??HotelSSM\.idea\artifacts\
?????文件?????????507??2019-04-18?13:29??HotelSSM\.idea\artifacts\HotelSSM_war_exploded.xm
?????文件?????????325??2019-04-18?13:44??HotelSSM\.idea\encodings.xm
?????目錄???????????0??2019-07-07?17:50??HotelSSM\.idea\libraries\
?????文件????????3383??2019-04-18?13:36??HotelSSM\.idea\libraries\aspectjweaver_1_8_9.xm
?????文件?????????276??2019-04-18?13:29??HotelSSM\.idea\misc.xm
?????文件?????????263??2019-04-18?13:29??HotelSSM\.idea\modules.xm
?????文件???????37251??2019-07-01?13:45??HotelSSM\.idea\workspace.xm
?????文件???????37037??2019-07-07?17:51??HotelSSM\db_hotel_ssm.sql
?????文件?????????986??2019-04-18?13:37??HotelSSM\HotelSSM.iml
?????目錄???????????0??2019-07-07?17:51??HotelSSM\out\
?????目錄???????????0??2019-07-07?17:50??HotelSSM\out\artifacts\
?????目錄???????????0??2019-07-07?17:51??HotelSSM\out\artifacts\HotelSSM_war_exploded\
?????文件?????????220??2019-04-18?13:46??HotelSSM\out\artifacts\HotelSSM_war_exploded\index.jsp
?????目錄???????????0??2019-07-07?17:51??HotelSSM\out\artifacts\HotelSSM_war_exploded\resources\
?????目錄???????????0??2019-07-07?17:51??HotelSSM\out\artifacts\HotelSSM_war_exploded\resources\admin\
?????目錄???????????0??2019-07-07?17:51??HotelSSM\out\artifacts\HotelSSM_war_exploded\resources\admin\easyui\
?????目錄???????????0??2019-07-07?17:50??HotelSSM\out\artifacts\HotelSSM_war_exploded\resources\admin\easyui\css\
?????文件??????138477??2019-04-18?13:46??HotelSSM\out\artifacts\HotelSSM_war_exploded\resources\admin\easyui\css\icon.css
?????目錄???????????0??2019-07-07?17:51??HotelSSM\out\artifacts\HotelSSM_war_exploded\resources\admin\easyui\css\icons\
?????文件?????????781??2019-04-18?13:46??HotelSSM\out\artifacts\HotelSSM_war_exploded\resources\admin\easyui\css\icons\accept.png
?????文件????????1088??2019-04-18?13:46??HotelSSM\out\artifacts\HotelSSM_war_exploded\resources\admin\easyui\css\icons\add.png
?????文件?????????838??2019-04-18?13:46??HotelSSM\out\artifacts\HotelSSM_war_exploded\resources\admin\easyui\css\icons\add1.png
?????文件????????3696??2019-04-18?13:46??HotelSSM\out\artifacts\HotelSSM_war_exploded\resources\admin\easyui\css\icons\advancedsettings.png
?????文件?????????790??2019-04-18?13:46??HotelSSM\out\artifacts\HotelSSM_war_exploded\resources\admin\easyui\css\icons\advancedsettings2.png
?????文件?????????523??2019-04-18?13:46??HotelSSM\out\artifacts\HotelSSM_war_exploded\resources\admin\easyui\css\icons\anchor.png
?????文件?????????464??2019-04-18?13:46??HotelSSM\out\artifacts\HotelSSM_war_exploded\resources\admin\easyui\css\icons\application.png
?????文件?????????619??2019-04-18?13:46??HotelSSM\out\artifacts\HotelSSM_war_exploded\resources\admin\easyui\css\icons\application_add.png
?????文件?????????524??2019-04-18?13:46??HotelSSM\out\artifacts\HotelSSM_war_exploded\resources\admin\easyui\css\icons\application_cascade.png
............此處省略7242個(gè)文件信息
評(píng)論
共有 條評(píng)論