-
大小: 10.73MB文件類型: .zip金幣: 2下載: 0 次發(fā)布日期: 2023-10-07
- 語言: 其他
- 標(biāo)簽: 項(xiàng)目實(shí)戰(zhàn)??
資源簡介
超市訂單管理系統(tǒng)含有5個(gè)功能,訂單管理,供應(yīng)商管理,用戶管理,角色管理,密碼修改。包括spring注解技術(shù),具有非常好的學(xué)習(xí)價(jià)值。親測無bug!

代碼片段和文件信息
package?com.dzl.smbms.controller;
import?com.alibaba.fastjson.JSONArray;
import?com.dzl.smbms.pojo.Bill;
import?com.dzl.smbms.pojo.Provider;
import?com.dzl.smbms.pojo.User;
import?com.dzl.smbms.service.BillService;
import?com.dzl.smbms.service.ProviderService;
import?com.dzl.smbms.tools.Constants;
import?com.dzl.smbms.tools.PageSupport;
import?com.mysql.jdbc.StringUtils;
import?org.apache.log4j.Logger;
import?org.springframework.stereotype.Controller;
import?org.springframework.ui.Model;
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?javax.annotation.Resource;
import?javax.servlet.http.HttpSession;
import?java.util.Date;
import?java.util.HashMap;
import?java.util.List;
import?java.util.Map;
@Controller
@RequestMapping(“/bill“)
public?class?BillController?{
????private?Logger?logger?=?Logger.getLogger(ProviderController.class);
????@Resource
????private?BillService?billService;
????@Resource
????private?ProviderService?providerService;
????//顯示全部訂單
????@RequestMapping(“/billlist.html“)
????public?String?billlist(Model?model
???????????????????????????@RequestParam(value?=?“queryProductName“?required?=?false)?String?queryProductName
???????????????????????????@RequestParam(value?=?“queryProviderId“?required?=?false)?String?queryProviderId
???????????????????????????@RequestParam(value?=?“queryIsPayment“?required?=?false)?String?queryIsPayment
???????????????????????????@RequestParam(value?=?“pageIndex“?required?=?false)?String?pageIndex)?{
????????System.err.println(“queryProductName:“?+?queryProductName);
????????System.err.println(“queryProviderId:“?+?queryProviderId);
????????System.err.println(“queryIsPayment:“?+?queryIsPayment);
????????System.err.println(“pageIndex:“?+?pageIndex);
????????int?_queryProviderId?=?0;
????????int?_queryIsPayment?=?0;
????????List??billList?=?null;
????????//?設(shè)置頁面容量
????????int?pageSize?=?Constants.pageSize;
????????//?當(dāng)前頁碼
????????int?currentPageNo?=?1;
????????if?(queryProductName?==?null)?{
????????????queryProductName?=?““;
????????}
????????if?(queryProviderId?!=?null?&&?!queryProviderId.equals(““))?{
????????????_queryProviderId?=?Integer.parseInt(queryProviderId);
????????}
????????if?(queryIsPayment?!=?null?&&?!queryIsPayment.equals(““))?{
????????????_queryIsPayment?=?Integer.parseInt(queryIsPayment);
????????}
????????if?(pageIndex?!=?null)?{
????????????try?{
????????????????currentPageNo?=?Integer.valueOf(pageIndex);
????????????}?catch?(NumberFormatException?e)?{
????????????????return?“redirect:/bill/syserror.html“;
????????????}
????????}
????????//?總數(shù)量(表)
????????int?totalCount?=?billService.selectBillCount(queryProductName?_queryProviderId?_queryIsPayment);
????????//?總頁數(shù)
????????PageSupport?pages?
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-10-16?17:50??SSM-MySmbms\
?????文件?????????847??2018-09-28?00:28??SSM-MySmbms\.classpath
?????文件????????1272??2018-09-28?00:20??SSM-MySmbms\.project
?????目錄???????????0??2019-10-16?17:50??SSM-MySmbms\.settings\
?????文件?????????567??2018-09-27?16:03??SSM-MySmbms\.settings\.jsdtscope
?????文件?????????155??2018-10-09?14:13??SSM-MySmbms\.settings\org.eclipse.core.resources.prefs
?????文件?????????670??2018-09-28?00:28??SSM-MySmbms\.settings\org.eclipse.jdt.core.prefs
?????文件?????????565??2018-09-27?16:51??SSM-MySmbms\.settings\org.eclipse.wst.common.component
?????文件?????????345??2018-09-27?16:03??SSM-MySmbms\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件??????????49??2018-09-27?16:03??SSM-MySmbms\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2018-09-27?16:03??SSM-MySmbms\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????目錄???????????0??2019-10-16?17:50??SSM-MySmbms\WebContent\
?????目錄???????????0??2019-10-16?17:50??SSM-MySmbms\WebContent\me
?????文件??????????39??2018-09-27?16:03??SSM-MySmbms\WebContent\me
?????目錄???????????0??2019-10-16?17:50??SSM-MySmbms\WebContent\WEB-INF\
?????目錄???????????0??2019-10-16?17:50??SSM-MySmbms\WebContent\WEB-INF\lib\
?????文件????????4467??2018-09-27?18:54??SSM-MySmbms\WebContent\WEB-INF\lib\aopalliance-1.0.jar
?????文件?????1663623??2018-09-27?18:54??SSM-MySmbms\WebContent\WEB-INF\lib\aspectjweaver-1.6.9.jar
?????文件??????160519??2018-09-27?18:54??SSM-MySmbms\WebContent\WEB-INF\lib\commons-dbcp-1.4.jar
?????文件???????59590??2018-09-27?18:54??SSM-MySmbms\WebContent\WEB-INF\lib\commons-fileupload-1.2.2.jar
?????文件??????185140??2018-09-27?18:54??SSM-MySmbms\WebContent\WEB-INF\lib\commons-io-2.4.jar
?????文件??????284220??2018-09-27?18:54??SSM-MySmbms\WebContent\WEB-INF\lib\commons-lang-2.6.jar
?????文件???????60841??2016-06-29?17:53??SSM-MySmbms\WebContent\WEB-INF\lib\commons-logging-1.1.1.jar
?????文件???????61829??2018-09-27?18:54??SSM-MySmbms\WebContent\WEB-INF\lib\commons-logging-1.2.jar
?????文件??????111119??2018-09-27?18:54??SSM-MySmbms\WebContent\WEB-INF\lib\commons-pool-1.6.jar
?????文件??????392972??2018-09-27?18:54??SSM-MySmbms\WebContent\WEB-INF\lib\fastjson-1.2.13.jar
?????文件??????561630??2018-09-20?19:19??SSM-MySmbms\WebContent\WEB-INF\lib\fastjson-1.2.49.jar
?????文件??????485279??2018-09-27?18:54??SSM-MySmbms\WebContent\WEB-INF\lib\hibernate-validator-4.3.2.Final.jar
?????文件???????60539??2018-09-27?18:54??SSM-MySmbms\WebContent\WEB-INF\lib\jboss-logging-3.1.0.CR2.jar
?????文件???????20682??2018-09-27?18:54??SSM-MySmbms\WebContent\WEB-INF\lib\jstl.jar
?????文件??????489883??2018-09-27?18:54??SSM-MySmbms\WebContent\WEB-INF\lib\log4j-1.2.17.jar
............此處省略246個(gè)文件信息
評論
共有 條評論