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

资源简介

备注:这个系统模块,订单和供应商管理,功能与用户管理,这个项目是利用mybatis的反向工程生成的dao、entity、mapper,运行环境:jdk8+tomcat7以上+mysql,里面包含MySQL数据库

资源截图

代码片段和文件信息

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;
        // 设置页面容量
        int pageSize = Constants.pageSize;
        // 当前页码
        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“;
            }
        }
        // 总数量(表)
        int totalCount = billService.selectBillCount(queryProductName _queryProviderId _queryIsPayment);
        // 总页数
        PageSupport pages 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件       16384  2018-10-14 19:35  smbms.sql
     文件         847  2018-09-28 00:28  SSM-MySmbms\.classpath
     文件        1272  2018-09-28 00:20  SSM-MySmbms\.project
     目录           0  2018-09-27 18:57  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.xml
     文件          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  2018-09-27 16:03  SSM-MySmbms\build\
     目录           0  2018-10-12 20:45  SSM-MySmbms\build\classes\
     文件        3992  2018-10-03 14:47  SSM-MySmbms\build\classes\applicationContext-mybatis.xml
     目录           0  2018-10-12 20:45  SSM-MySmbms\build\classes\com\
     目录           0  2018-10-12 20:45  SSM-MySmbms\build\classes\com\dzl\
     目录           0  2018-10-12 20:45  SSM-MySmbms\build\classes\com\dzl\smbms\
     目录           0  2018-10-12 20:45  SSM-MySmbms\build\classes\com\dzl\smbms\controller\
     文件        7252  2018-10-12 20:45  SSM-MySmbms\build\classes\com\dzl\smbms\controller\BillController.class
     文件        2660  2018-10-12 20:45  SSM-MySmbms\build\classes\com\dzl\smbms\controller\IndexController.class
     文件        7226  2018-10-12 20:45  SSM-MySmbms\build\classes\com\dzl\smbms\controller\ProviderController.class
     文件        5457  2018-10-12 20:45  SSM-MySmbms\build\classes\com\dzl\smbms\controller\RoleContrller.class
     文件       11261  2018-10-12 20:45  SSM-MySmbms\build\classes\com\dzl\smbms\controller\UserController.class
     目录           0  2018-10-12 20:45  SSM-MySmbms\build\classes\com\dzl\smbms\dao\
     文件         929  2018-10-12 20:45  SSM-MySmbms\build\classes\com\dzl\smbms\dao\BillMapper.class
     文件        1108  2018-10-12 20:45  SSM-MySmbms\build\classes\com\dzl\smbms\dao\ProviderMapper.class
     文件         564  2018-10-12 20:45  SSM-MySmbms\build\classes\com\dzl\smbms\dao\RoleMapper.class
     文件        1242  2018-10-12 20:45  SSM-MySmbms\build\classes\com\dzl\smbms\dao\UserMapper.class
     目录           0  2018-10-12 20:45  SSM-MySmbms\build\classes\com\dzl\smbms\mapper\
     文件        8276  2018-09-28 20:21  SSM-MySmbms\build\classes\com\dzl\smbms\mapper\BillMapper.xml
     文件        6813  2018-09-29 17:07  SSM-MySmbms\build\classes\com\dzl\smbms\mapper\ProviderMapper.xml
............此处省略272个文件信息

评论

共有 条评论