• 大小: 10.51MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-06
  • 语言: Java
  • 标签: javaweb  

资源简介

SSM框架开发的超市订单管理系统,java web开发简单的超市后台管理系统要求: 1,SSM框架开发超市管理系统 2,SSM框架的搭建 3,实现超市管理系统的登录和注销 4,实现超市的订单管理 5,实现超市的供应商管理 6,实现超市的用户管理

资源截图

代码片段和文件信息

package com.smbms.controller.bill;

import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

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

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.smbms.pojo.Bill;
import com.smbms.pojo.Provider;
import com.smbms.service.bill.BillService;
import com.smbms.service.provider.ProviderService;

@Controller
public class BillController {
@Resource
BillService bs;
@Resource
ProviderService ps;
@RequestMapping(“/sys/bill“)
/*
 * 全部订单界面
 */
/************************************************中文转码*********************************************************************/
public String bill(Model modelHttpServletRequest request) throws UnsupportedEncodingException{
String productName=request.getParameter(“productName“);
String pid=request.getParameter(“providerId“);
String pisPayment=request.getParameter(“isPayment“);
Integer providerId=null;
Integer isPayment=null;
if(productName!=null){

//productName=new String(productName.getBytes(“iso-8859-1“) “utf-8“);
request.setAttribute(“productName“productName);
}
if(pid!=null&&pid!=““){
providerId=Integer.parseInt(pid);
if(providerId==0){
providerId=null;
}
request.setAttribute(“providerId“ providerId);
}
if(pisPayment!=null&&pisPayment!=““){
isPayment=Integer.parseInt(pisPayment);
if(isPayment==0){
isPayment=null;
}
request.setAttribute(“isPayment“ isPayment);
}
List list=bs.findByNameIdAndIsPayment(productName providerId isPayment);
List providerList=ps.findAllProvider();
model.addAttribute(“billList“ list);
model.addAttribute(“providerList“ providerList);
return “bill/billlist“;
}
/*
 * 查看订单的详细信息
 */
@RequestMapping(“/sys/billview“)
public String proview(HttpSession session@RequestParam String billid){
int id=Integer.parseInt(billid);
Bill b=bs.findBillById(id);
session.setAttribute(“bill“ b);
return “bill/billview“;
}
/*
 * 获取供应商列表
 */
@RequestMapping(“/sys/billselect“)
@ResponseBody
public List billSelect(){
List list=ps.findAllProvider();
return list;
}
/*
 * 订单修改界面
 */
@RequestMapping(“/sys/billmodify“)
public String billmodify(HttpSession session@RequestParam String billid){
int id=Integer.parseInt(billid);
Bill bill=bs.findBillById(id);
session.setAttribute(“bill“ bill);
return “bill/billmodify“;
}
/*
 * 保存订单修改信息
 */
@RequestMapping(“/sys/dobillmodify“)
public String dobillmodify(HttpServletRequest request){
int id=Integer.parseInt(reques

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        1173  2018-12-05 11:48  supermarket\.classpath
     目录           0  2018-12-10 11:47  supermarket\.myeclipse\
     文件         306  2018-11-29 14:01  supermarket\.mymetadata
     文件        1754  2018-11-29 14:07  supermarket\.project
     文件         500  2018-11-29 14:01  supermarket\.settings\.jsdtscope
     文件         111  2018-11-29 14:04  supermarket\.settings\com.genuitec.eclipse.core.prefs
     文件         247  2018-12-05 11:48  supermarket\.settings\com.genuitec.eclipse.migration.prefs
     文件         364  2018-11-29 14:01  supermarket\.settings\org.eclipse.jdt.core.prefs
     文件         639  2018-12-05 11:48  supermarket\.settings\org.eclipse.wst.common.component
     文件         361  2018-12-05 11:48  supermarket\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-11-29 14:01  supermarket\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-11-29 14:01  supermarket\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件         687  2018-12-02 11:28  supermarket\WebRoot\401.jsp
     文件          36  2018-11-29 14:01  supermarket\WebRoot\meta-INF\MANIFEST.MF
     文件          25  2018-12-05 11:48  supermarket\WebRoot\WEB-INF\classes\meta-INF\MANIFEST.MF
     文件        2097  2018-12-03 09:51  supermarket\WebRoot\WEB-INF\classes\applicationContext.xml
     文件        6078  2018-12-10 08:46  supermarket\WebRoot\WEB-INF\classes\com\smbms\controller\bill\BillController.class
     文件        2096  2018-12-10 11:40  supermarket\WebRoot\WEB-INF\classes\com\smbms\controller\main\MainController.class
     文件        5302  2018-12-10 08:46  supermarket\WebRoot\WEB-INF\classes\com\smbms\controller\provider\ProviderController.class
     文件        8327  2018-12-10 11:42  supermarket\WebRoot\WEB-INF\classes\com\smbms\controller\user\Usercontroller.class
     文件         752  2018-12-10 08:46  supermarket\WebRoot\WEB-INF\classes\com\smbms\dao\bill\BillMapper.class
     文件        2481  2018-12-03 09:28  supermarket\WebRoot\WEB-INF\classes\com\smbms\dao\bill\BillMapper.xml
     文件         731  2018-12-10 08:46  supermarket\WebRoot\WEB-INF\classes\com\smbms\dao\provider\ProviderMapper.class
     文件        1470  2018-12-03 09:28  supermarket\WebRoot\WEB-INF\classes\com\smbms\dao\provider\ProviderMapper.xml
     文件        1270  2018-12-10 09:31  supermarket\WebRoot\WEB-INF\classes\com\smbms\dao\user\UserMapper.class
     文件        3350  2018-12-03 09:29  supermarket\WebRoot\WEB-INF\classes\com\smbms\dao\user\UserMapper.xml
     文件        3706  2018-12-10 08:46  supermarket\WebRoot\WEB-INF\classes\com\smbms\pojo\Bill.class
     文件        1051  2018-12-10 08:46  supermarket\WebRoot\WEB-INF\classes\com\smbms\pojo\Page.class
     文件        2516  2018-12-10 08:46  supermarket\WebRoot\WEB-INF\classes\com\smbms\pojo\Provider.class
     文件        1324  2018-12-10 08:46  supermarket\WebRoot\WEB-INF\classes\com\smbms\pojo\Role.class
     文件        4002  2018-12-10 08:46  supermarket\WebRoot\WEB-INF\classes\com\smbms\pojo\User.class
............此处省略191个文件信息

评论

共有 条评论