• 大小: 34.82MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-04
  • 语言: 数据库
  • 标签: JAVA  

资源简介

使用Oracle,Myeclipse数据表大概为35张左右,实现酒店的工作流程。里面附当时的需求文档,数据库转存文件。

资源截图

代码片段和文件信息

package com.controller;

import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.map.JsonMappingException;
import org.codehaus.jackson.map.objectMapper;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.entity.Bad;
import com.entity.BreakDetai;
import com.entity.CustomerBreak;
import com.entity.DepotProduct;
import com.entity.LiveInfo;
import com.entity.Spend;
import com.service.ProductSalService;

@Controller
public class BreakDown {//损坏 高辉
@Resource
private ProductSalService service;

public ProductSalService getService() {
return service;
}
public void setService(ProductSalService service) {
this.service = service;
}
@RequestMapping(“/Break“)//先创建损坏的单号
public String Selectt(Model modelHttpServletRequest request){
SimpleDateFormat df=new SimpleDateFormat(“yyyyMMddHHmmss“);
String Spend=“Break“+df.format(new Date());
model.addAttribute(“Spned“Spend);
//先假想一个损坏房间
String liviid=request.getParameter(“roomId“);
String name=null;//保存损坏人姓名
Listlist=service.SelectLiveInfo(liviid);
for (LiveInfo liveInfo : list) {
name=liveInfo.getCustomerName();
}
model.addAttribute(“name“name);
model.addAttribute(“liveid“liviid);
return “BreakDown“;
}
@RequestMapping(“/InsertBreak“)//先录入总表
public String InsertSpend(Model modelHttpServletRequest request){

String Spnedid=request.getParameter(“Spnedid“);//单号
String liveid=request.getParameter(“liveid“);//房间号
String mark=request.getParameter(“mark“);//备注
int userId=Integer.parseInt(request.getParameter(“userId“));//操作人
String [] productId=request.getParameterValues(“productId“);//获取所有损坏物品
String [] sum=request.getParameterValues(“productName“);//所有价格
service.zonr2(Spnedid liveid mark userId productId sum);
return “SerchBreak“;

}


@RequestMapping(“/SerchBreak“)
@ResponseBody//所有的损坏记录查询
public String SerchBreak(HttpServletRequest request@RequestParam int page@RequestParam int rows)throws JsonGenerationException JsonMappingException IOException{
Mapject> map=new HashMapject>();
int pageNumber=page==0?1:page;
int pageSize=rows;
int a=(pageNumber-1)*pageSize;
int b=pageSize*pageNumber;
map.put(“a“a);
    map.put(“b“b);
String spendId=request.getParameter(“spendId“);
String liveId=request.getParameter(“liveId“);
String spendName=request.getParameter(

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-12-29 15:26  项目终篇\
     文件       25571  2017-06-09 17:39  项目终篇\6-9.sql
     目录           0  2017-12-29 15:24  项目终篇\TongFuHotelMS\
     文件        3350  2017-06-09 17:31  项目终篇\TongFuHotelMS\.classpath
     文件         312  2017-06-09 17:31  项目终篇\TongFuHotelMS\.mymetadata
     文件        1286  2017-05-10 15:51  项目终篇\TongFuHotelMS\.project
     目录           0  2017-12-29 15:24  项目终篇\TongFuHotelMS\.settings\
     目录           0  2017-12-29 15:24  项目终篇\TongFuHotelMS\.settings\.svn\
     文件         242  2017-05-10 15:51  项目终篇\TongFuHotelMS\.settings\.svn\all-wcprops
     文件         347  2017-05-10 15:54  项目终篇\TongFuHotelMS\.settings\.svn\entries
     目录           0  2017-12-29 15:26  项目终篇\TongFuHotelMS\.settings\.svn\prop-base\
     目录           0  2017-12-29 15:26  项目终篇\TongFuHotelMS\.settings\.svn\props\
     目录           0  2017-12-29 15:24  项目终篇\TongFuHotelMS\.settings\.svn\text-base\
     文件         330  2017-05-10 15:51  项目终篇\TongFuHotelMS\.settings\.svn\text-base\org.eclipse.jdt.core.prefs.svn-base
     目录           0  2017-12-29 15:24  项目终篇\TongFuHotelMS\.settings\.svn\tmp\
     目录           0  2017-12-29 15:26  项目终篇\TongFuHotelMS\.settings\.svn\tmp\prop-base\
     目录           0  2017-12-29 15:26  项目终篇\TongFuHotelMS\.settings\.svn\tmp\props\
     目录           0  2017-12-29 15:26  项目终篇\TongFuHotelMS\.settings\.svn\tmp\text-base\
     文件         105  2017-06-01 20:27  项目终篇\TongFuHotelMS\.settings\com.genuitec.eclipse.core.prefs
     文件         330  2017-05-10 15:51  项目终篇\TongFuHotelMS\.settings\org.eclipse.jdt.core.prefs
     目录           0  2017-12-29 15:24  项目终篇\TongFuHotelMS\.svn\
     文件         401  2017-05-10 15:54  项目终篇\TongFuHotelMS\.svn\all-wcprops
     文件         645  2017-05-10 15:54  项目终篇\TongFuHotelMS\.svn\entries
     目录           0  2017-12-29 15:26  项目终篇\TongFuHotelMS\.svn\prop-base\
     目录           0  2017-12-29 15:26  项目终篇\TongFuHotelMS\.svn\props\
     目录           0  2017-12-29 15:24  项目终篇\TongFuHotelMS\.svn\text-base\
     文件        3350  2017-05-10 15:51  项目终篇\TongFuHotelMS\.svn\text-base\.classpath.svn-base
     文件         312  2017-05-10 15:51  项目终篇\TongFuHotelMS\.svn\text-base\.mymetadata.svn-base
     文件        1286  2017-05-10 15:51  项目终篇\TongFuHotelMS\.svn\text-base\.project.svn-base
     目录           0  2017-12-29 15:24  项目终篇\TongFuHotelMS\.svn\tmp\
     目录           0  2017-12-29 15:26  项目终篇\TongFuHotelMS\.svn\tmp\prop-base\
............此处省略3473个文件信息

评论

共有 条评论