資源簡介
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\.myme
?????文件????????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.xm
?????文件??????????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\me
?????文件??????????25??2018-12-05?11:48??supermarket\WebRoot\WEB-INF\classes\me
?????文件????????2097??2018-12-03?09:51??supermarket\WebRoot\WEB-INF\classes\applicationContext.xm
?????文件????????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.xm
?????文件?????????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.xm
?????文件????????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.xm
?????文件????????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個文件信息
評論
共有 條評論