基于SSM实现台球厅计时收费系统

简介:  本次设计开发的这套台球厅计时收费系统,主要基于SSM框架开发实现,前端结合JSP和Bootstrap来开发实现,系统主要实现为台球厅运营方提供一个计时收费的核心业务系统,主要包含三类用户:系统管理员,普通管理员,会员系统管理员具有的功能: 可以管理所有的功能系统管理—可以管理系统的用户系统,添加和管理管理员及普通管理员球桌管理—可以管理台球室所有的球桌信息订桌管理—可以根据用户需要预定球桌付费管理—可以对己结束的球桌计时收费活动管理—可以发布管理相关举办的台球活动信息员工管理—可以管理台球室内的员工信息   普通管理员具有的功能: 主要进行业务管理球桌管理—可以管理

 一,项目简介

    本次设计开发的这套台球厅计时收费系统,主要基于SSM框架开发实现,前端结合JSP和Bootstrap来开发实现,系统主要实现为台球厅运营方提供一个计时收费的核心业务系统,主要包含三类用户:系统管理员,普通管理员,会员

系统管理员具有的功能: 可以管理所有的功能

    1. 系统管理—可以管理系统的用户系统,添加和管理管理员及普通管理员
    2. 球桌管理—可以管理台球室所有的球桌信息
    3. 订桌管理—可以根据用户需要预定球桌
    4. 付费管理—可以对己结束的球桌计时收费
    5. 活动管理—可以发布管理相关举办的台球活动信息
    6. 员工管理—可以管理台球室内的员工信息

      普通管理员具有的功能: 主要进行业务管理

      1. 球桌管理—可以管理台球室所有的球桌信息
      2. 订桌管理—可以根据用户需要预定球桌
      3. 付费管理—可以对己结束的球桌计时收费
      4. 活动管理—可以发布管理相关举办的台球活动信息

      会员用户登陆:主要实现在线订桌和付费

        1. 个人资料管理—管理个人资料信息
        2. 球桌信息查看—主要查看台球室拥有的台球桌信息
        3. 订桌信息管理—主要进行在线订桌操作
        4. 付费信息管理—个人在线付费及查看自己的付费记录
        5. 活动信息管理—查看系统发布的相关活动信息

        二,环境介绍

        语言环境:Java:  jdk1.8

        数据库:Mysql: mysql5.7

        应用服务器:Tomcat:  tomcat8.5.31

        开发工具:IDEA或eclipse

        开发技术:SSM框架+JSP+JQUERY+Bootstrap

        三,系统展示

        3.1用户登陆

        image.gif编辑

        3.2 系统用户管理

        image.gif编辑

        3.3 会员信息管理    

        image.gif编辑

        3.4球桌信息管理  

        image.gif编辑

        3.5订桌信息管理

        image.gif编辑

        3.6付费信息管理

        image.gif编辑

        3.7活动信息管理

        image.gif编辑

        3.8员工信息管理

        image.gif编辑

        四,核心代码展示

        用户管理

        package com.controller;
        import com.entity.Yuangong;
        import com.server.YuangongServer;
        import com.util.PageBean;
        import net.sf.json.JSONObject;
        import org.springframework.stereotype.Controller;
        import org.springframework.ui.ModelMap;
        import org.springframework.web.bind.annotation.RequestMapping;
        import org.springframework.web.bind.annotation.RequestParam;
        import javax.annotation.Resource;
        import javax.servlet.http.HttpServletRequest;
        import javax.servlet.http.HttpServletResponse;
        import javax.servlet.http.HttpSession;
        import java.io.IOException;
        import java.io.PrintWriter;
        import java.sql.SQLException;
        import java.sql.Timestamp;
        import java.util.HashMap;
        import java.util.List;
        import java.util.Map;
        /**
         * 员工信息管理
         */
        @Controller
        public class YuangongController {
           @Resource
           private YuangongServer yuangongService;
           /**
            * 员工添加
            * @param request
            * @param yuangong
            * @param session
            * @return
            * @throws SQLException
            */
           @RequestMapping("addYuangong.do")
           public String addYuangong(HttpServletRequest request,Yuangong yuangong,HttpSession session) throws SQLException{
              Timestamp time=new Timestamp(System.currentTimeMillis());
              yuangongService.add(yuangong);
              session.setAttribute("backxx", "添加成功");
              session.setAttribute("backurl", request.getHeader("Referer"));
              return "redirect:postback.jsp";
              //return "redirect:yonghuzhuceList.do";
           }
           /**
            * 编辑员工
            * @param id
            * @param map
            * @param yuangong
            * @return
            */
           @RequestMapping("doUpdateYuangong.do")
           public String doUpdateYuangong(int id,ModelMap map,Yuangong yuangong){
              yuangong=yuangongService.getById(id);
              map.put("yuangong", yuangong);
              return "yuangong_updt";
           }
           /**
            * 查看员工信息
            * @param id
            * @param map
            * @param yuangong
            * @return
            */
           @RequestMapping("yuangongDetail.do")
           public String yuangongDetail(int id,ModelMap map,Yuangong yuangong){
              yuangong=yuangongService.getById(id);
              map.put("yuangong", yuangong);
              return "yuangong_detail";
           }
           /**
            * 编辑员工页面跳转
            * @param id
            * @param map
            * @param yuangong
            * @param request
            * @param session
            * @return
            */
           @RequestMapping("updateYuangong.do")
           public String updateYuangong(int id,ModelMap map,Yuangong yuangong,HttpServletRequest request,HttpSession session){
              yuangongService.update(yuangong);
              session.setAttribute("backxx", "修改成功");
              session.setAttribute("backurl", request.getHeader("Referer"));
              return "redirect:postback.jsp";
           }
           /**
            * 分页查询员工信息
            * @param page
            * @param map
            * @param session
            * @param yuangong
            * @param name
            * @param mobile
            * @return
            */
           @RequestMapping("yuangongxinxiList.do")
           public String yuangongxinxiList(@RequestParam(value="page",required=false)String page,
                 ModelMap map,HttpSession session,Yuangong yuangong, String name, String mobile){
              if(page==null||page.equals("")){
                 page="1";
              }
              PageBean pageBean=new PageBean(Integer.parseInt(page), 5);
              Map<String, Object> pmap=new HashMap<String,Object>();
              pmap.put("pageno", pageBean.getStart());
              pmap.put("pageSize", 5);
              if(name==null||name.equals("")){pmap.put("name", null);}else{pmap.put("name", name);}
              if(mobile==null||mobile.equals("")){pmap.put("mobile", null);}else{pmap.put("mobile", mobile);}
              int total=yuangongService.getCount(pmap);
              pageBean.setTotal(total);
              List<Yuangong> list=yuangongService.getByPage(pmap);
              map.put("page", pageBean);
              map.put("list", list);
              session.setAttribute("p", 1);
              return "yuangong_list";
           }
           /**
            * 删除员工信息
            * @param id
            * @param request
            * @return
            */
           @RequestMapping("deleteYuangong.do")
           public String deleteYuangong(int id,HttpServletRequest request){
              yuangongService.delete(id);
              String url = request.getHeader("Referer");
              return "redirect:"+url;
           }
        }

        image.gif

        订桌信息管理

        package com.controller;
        import java.io.File;
        import java.io.IOException;
        import java.sql.Timestamp;
        import java.util.ArrayList;
        import java.util.HashMap;
        import java.util.List;
        import java.util.Map;
        import java.io.PrintWriter;
        import javax.annotation.Resource;
        import javax.servlet.http.HttpServletRequest;
        import javax.servlet.http.HttpServletResponse;
        import javax.servlet.http.HttpSession;
        import org.springframework.stereotype.Controller;
        import org.springframework.ui.ModelMap;
        import org.springframework.web.bind.annotation.RequestMapping;
        import org.springframework.web.bind.annotation.RequestParam;
        import org.springframework.web.multipart.MultipartFile;
        import com.entity.Dingzhuoxinxi;
        import com.server.DingzhuoxinxiServer;
        import com.util.PageBean;
        import net.sf.json.JSONObject;
        import com.util.db;
        import java.sql.SQLException;
        import java.sql.*;
        /**
         * 订桌信息管理
         */
        @Controller
        public class DingzhuoxinxiController {
          @Resource
          private DingzhuoxinxiServer dingzhuoxinxiService;
          @RequestMapping("addDingzhuoxinxi.do")
          public String addDingzhuoxinxi(HttpServletRequest request,Dingzhuoxinxi dingzhuoxinxi,HttpSession session) throws SQLException{
            Timestamp time=new Timestamp(System.currentTimeMillis());
            dingzhuoxinxi.setAddtime(time.toString().substring(0, 19));
            dingzhuoxinxiService.add(dingzhuoxinxi);
            String sql="";
            sql="update qiuzhuoxinxi set zhuangtai='已订' where qiuzhuohao='"+dingzhuoxinxi.getQiuzhuohao()+"'";
            db dbo = new db();
            dbo.hsgexecute(sql);
            session.setAttribute("backxx", "添加成功");
            session.setAttribute("backurl", request.getHeader("Referer"));
            //session.setAttribute("backurl", "dingzhuoxinxiList.do");
            return "redirect:postback.jsp";
            //return "redirect:dingzhuoxinxiList.do";
          }
        //  处理编辑
          @RequestMapping("doUpdateDingzhuoxinxi.do")
          public String doUpdateDingzhuoxinxi(int id,ModelMap map,Dingzhuoxinxi dingzhuoxinxi){
            dingzhuoxinxi=dingzhuoxinxiService.getById(id);
            map.put("dingzhuoxinxi", dingzhuoxinxi);
            return "dingzhuoxinxi_updt";
          }
        //  后台详细
          @RequestMapping("dingzhuoxinxiDetail.do")
          public String dingzhuoxinxiDetail(int id,ModelMap map,Dingzhuoxinxi dingzhuoxinxi){
            dingzhuoxinxi=dingzhuoxinxiService.getById(id);
            map.put("dingzhuoxinxi", dingzhuoxinxi);
            return "dingzhuoxinxi_detail";
          }
        //  前台详细
          @RequestMapping("dzxxDetail.do")
          public String dzxxDetail(int id,ModelMap map,Dingzhuoxinxi dingzhuoxinxi){
            dingzhuoxinxi=dingzhuoxinxiService.getById(id);
            map.put("dingzhuoxinxi", dingzhuoxinxi);
            return "dingzhuoxinxidetail";
          }
        //
          @RequestMapping("updateDingzhuoxinxi.do")
          public String updateDingzhuoxinxi(int id,ModelMap map,Dingzhuoxinxi dingzhuoxinxi,HttpServletRequest request,HttpSession session){
            dingzhuoxinxiService.update(dingzhuoxinxi);
            session.setAttribute("backxx", "修改成功");
            session.setAttribute("backurl", request.getHeader("Referer"));
            return "redirect:postback.jsp";
            //String url = request.getHeader("Referer");
            //return "redirect:"+url;
            //return "redirect:dingzhuoxinxiList.do";
          }
        //  分页查询
          @RequestMapping("dingzhuoxinxiList.do")
          public String dingzhuoxinxiList(@RequestParam(value="page",required=false)String page,
              ModelMap map,HttpSession session,Dingzhuoxinxi dingzhuoxinxi, String qiuzhuohao, String meixiaoshijifei1,String meixiaoshijifei2, String dingzhuoshijian, String huiyuanbianhao, String xingming, String huiyuandengji, String zhekou, String beizhu){
            if(page==null||page.equals("")){
              page="1";
            }
            PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
            Map<String, Object> pmap=new HashMap<String,Object>();
            pmap.put("pageno", pageBean.getStart());
            pmap.put("pageSize", 15);
            if(qiuzhuohao==null||qiuzhuohao.equals("")){pmap.put("qiuzhuohao", null);}else{pmap.put("qiuzhuohao", qiuzhuohao);}
            if(meixiaoshijifei1==null||meixiaoshijifei1.equals("")){pmap.put("meixiaoshijifei1", null);}else{pmap.put("meixiaoshijifei1", meixiaoshijifei1);}
            if(meixiaoshijifei2==null||meixiaoshijifei2.equals("")){pmap.put("meixiaoshijifei2", null);}else{pmap.put("meixiaoshijifei2", meixiaoshijifei2);}
            if(dingzhuoshijian==null||dingzhuoshijian.equals("")){pmap.put("dingzhuoshijian", null);}else{pmap.put("dingzhuoshijian", dingzhuoshijian);}
            if(huiyuanbianhao==null||huiyuanbianhao.equals("")){pmap.put("huiyuanbianhao", null);}else{pmap.put("huiyuanbianhao", huiyuanbianhao);}
            if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
            if(huiyuandengji==null||huiyuandengji.equals("")){pmap.put("huiyuandengji", null);}else{pmap.put("huiyuandengji", huiyuandengji);}
            if(zhekou==null||zhekou.equals("")){pmap.put("zhekou", null);}else{pmap.put("zhekou", zhekou);}
            if(beizhu==null||beizhu.equals("")){pmap.put("beizhu", null);}else{pmap.put("beizhu", beizhu);}
            int total=dingzhuoxinxiService.getCount(pmap);
            pageBean.setTotal(total);
            List<Dingzhuoxinxi> list=dingzhuoxinxiService.getByPage(pmap);
            map.put("page", pageBean);
            map.put("list", list);
            session.setAttribute("p", 1);
            return "dingzhuoxinxi_list";
          }
          @RequestMapping("dingzhuoxinxiList2.do")
          public String dingzhuoxinxiList2(@RequestParam(value="page",required=false)String page,
              ModelMap map,HttpSession session,Dingzhuoxinxi dingzhuoxinxi, String qiuzhuohao, String meixiaoshijifei1,String meixiaoshijifei2, String dingzhuoshijian, String huiyuanbianhao, String xingming, String huiyuandengji, String zhekou, String beizhu,HttpServletRequest request){
            /*if(session.getAttribute("user")==null){
              return "login";
            }*/
            if(page==null||page.equals("")){
              page="1";
            }
            PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
            Map<String, Object> pmap=new HashMap<String,Object>();
            pmap.put("pageno", pageBean.getStart());
            pmap.put("pageSize", 15);
            pmap.put("huiyuanbianhao", (String)request.getSession().getAttribute("username"));
            if(qiuzhuohao==null||qiuzhuohao.equals("")){pmap.put("qiuzhuohao", null);}else{pmap.put("qiuzhuohao", qiuzhuohao);}
            if(meixiaoshijifei1==null||meixiaoshijifei1.equals("")){pmap.put("meixiaoshijifei1", null);}else{pmap.put("meixiaoshijifei1", meixiaoshijifei1);}
            if(meixiaoshijifei2==null||meixiaoshijifei2.equals("")){pmap.put("meixiaoshijifei2", null);}else{pmap.put("meixiaoshijifei2", meixiaoshijifei2);}
            if(dingzhuoshijian==null||dingzhuoshijian.equals("")){pmap.put("dingzhuoshijian", null);}else{pmap.put("dingzhuoshijian", dingzhuoshijian);}
            if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
            if(huiyuandengji==null||huiyuandengji.equals("")){pmap.put("huiyuandengji", null);}else{pmap.put("huiyuandengji", huiyuandengji);}
            if(zhekou==null||zhekou.equals("")){pmap.put("zhekou", null);}else{pmap.put("zhekou", zhekou);}
            if(beizhu==null||beizhu.equals("")){pmap.put("beizhu", null);}else{pmap.put("beizhu", beizhu);}
            int total=dingzhuoxinxiService.getCount(pmap);
            pageBean.setTotal(total);
            List<Dingzhuoxinxi> list=dingzhuoxinxiService.getByPage(pmap);
            map.put("page", pageBean);
            map.put("list", list);
            session.setAttribute("p", 1);
            return "dingzhuoxinxi_list2";
          }
          @RequestMapping("dzxxList.do")
          public String dzxxList(@RequestParam(value="page",required=false)String page,
              ModelMap map,HttpSession session,Dingzhuoxinxi dingzhuoxinxi, String qiuzhuohao, String meixiaoshijifei1,String meixiaoshijifei2, String dingzhuoshijian, String huiyuanbianhao, String xingming, String huiyuandengji, String zhekou, String beizhu){
            if(page==null||page.equals("")){
              page="1";
            }
            PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
            Map<String, Object> pmap=new HashMap<String,Object>();
            pmap.put("pageno", pageBean.getStart());
            pmap.put("pageSize", 15);
            if(qiuzhuohao==null||qiuzhuohao.equals("")){pmap.put("qiuzhuohao", null);}else{pmap.put("qiuzhuohao", qiuzhuohao);}
            if(meixiaoshijifei1==null||meixiaoshijifei1.equals("")){pmap.put("meixiaoshijifei1", null);}else{pmap.put("meixiaoshijifei1", meixiaoshijifei1);}
            if(meixiaoshijifei2==null||meixiaoshijifei2.equals("")){pmap.put("meixiaoshijifei2", null);}else{pmap.put("meixiaoshijifei2", meixiaoshijifei2);}
            if(dingzhuoshijian==null||dingzhuoshijian.equals("")){pmap.put("dingzhuoshijian", null);}else{pmap.put("dingzhuoshijian", dingzhuoshijian);}
            if(huiyuanbianhao==null||huiyuanbianhao.equals("")){pmap.put("huiyuanbianhao", null);}else{pmap.put("huiyuanbianhao", huiyuanbianhao);}
            if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
            if(huiyuandengji==null||huiyuandengji.equals("")){pmap.put("huiyuandengji", null);}else{pmap.put("huiyuandengji", huiyuandengji);}
            if(zhekou==null||zhekou.equals("")){pmap.put("zhekou", null);}else{pmap.put("zhekou", zhekou);}
            if(beizhu==null||beizhu.equals("")){pmap.put("beizhu", null);}else{pmap.put("beizhu", beizhu);}
            int total=dingzhuoxinxiService.getCount(pmap);
            pageBean.setTotal(total);
            List<Dingzhuoxinxi> list=dingzhuoxinxiService.getByPage(pmap);
            map.put("page", pageBean);
            map.put("list", list);
            session.setAttribute("p", 1);
            return "dingzhuoxinxilist";
          }
          @RequestMapping("deleteDingzhuoxinxi.do")
          public String deleteDingzhuoxinxi(int id,HttpServletRequest request){
            dingzhuoxinxiService.delete(id);
            String url = request.getHeader("Referer");
            return "redirect:"+url;
            //return "redirect:dingzhuoxinxiList.do";
          }
        }

        image.gif

        球桌信息管理

        package com.controller;
        import java.io.File;
        import java.io.IOException;
        import java.sql.Timestamp;
        import java.util.ArrayList;
        import java.util.HashMap;
        import java.util.List;
        import java.util.Map;
        import java.io.PrintWriter;
        import javax.annotation.Resource;
        import javax.servlet.http.HttpServletRequest;
        import javax.servlet.http.HttpServletResponse;
        import javax.servlet.http.HttpSession;
        import org.springframework.stereotype.Controller;
        import org.springframework.ui.ModelMap;
        import org.springframework.web.bind.annotation.RequestMapping;
        import org.springframework.web.bind.annotation.RequestParam;
        import org.springframework.web.multipart.MultipartFile;
        import com.entity.Qiuzhuoxinxi;
        import com.server.QiuzhuoxinxiServer;
        import com.util.PageBean;
        import net.sf.json.JSONObject;
        import com.util.db;
        import java.sql.SQLException;
        import java.sql.*;
        /**
         * 球桌信息管理
         */
        @Controller
        public class QiuzhuoxinxiController {
          @Resource
          private QiuzhuoxinxiServer qiuzhuoxinxiService;
          @RequestMapping("addQiuzhuoxinxi.do")
          public String addQiuzhuoxinxi(HttpServletRequest request,Qiuzhuoxinxi qiuzhuoxinxi,HttpSession session) throws SQLException{
            Timestamp time=new Timestamp(System.currentTimeMillis());
            qiuzhuoxinxi.setAddtime(time.toString().substring(0, 19));
            qiuzhuoxinxiService.add(qiuzhuoxinxi);
            session.setAttribute("backxx", "添加成功");
            session.setAttribute("backurl", request.getHeader("Referer"));
            //session.setAttribute("backurl", "qiuzhuoxinxiList.do");
            return "redirect:postback.jsp";
            //return "redirect:qiuzhuoxinxiList.do";
          }
        //  处理编辑
          @RequestMapping("doUpdateQiuzhuoxinxi.do")
          public String doUpdateQiuzhuoxinxi(int id,ModelMap map,Qiuzhuoxinxi qiuzhuoxinxi){
            qiuzhuoxinxi=qiuzhuoxinxiService.getById(id);
            map.put("qiuzhuoxinxi", qiuzhuoxinxi);
            return "qiuzhuoxinxi_updt";
          }
        //  后台详细
          @RequestMapping("qiuzhuoxinxiDetail.do")
          public String qiuzhuoxinxiDetail(int id,ModelMap map,Qiuzhuoxinxi qiuzhuoxinxi){
            qiuzhuoxinxi=qiuzhuoxinxiService.getById(id);
            map.put("qiuzhuoxinxi", qiuzhuoxinxi);
            return "qiuzhuoxinxi_detail";
          }
        //  前台详细
          @RequestMapping("qzxxDetail.do")
          public String qzxxDetail(int id,ModelMap map,Qiuzhuoxinxi qiuzhuoxinxi){
            qiuzhuoxinxi=qiuzhuoxinxiService.getById(id);
            map.put("qiuzhuoxinxi", qiuzhuoxinxi);
            return "qiuzhuoxinxidetail";
          }
        //
          @RequestMapping("updateQiuzhuoxinxi.do")
          public String updateQiuzhuoxinxi(int id,ModelMap map,Qiuzhuoxinxi qiuzhuoxinxi,HttpServletRequest request,HttpSession session){
            qiuzhuoxinxiService.update(qiuzhuoxinxi);
            session.setAttribute("backxx", "修改成功");
            session.setAttribute("backurl", request.getHeader("Referer"));
            return "redirect:postback.jsp";
            //String url = request.getHeader("Referer");
            //return "redirect:"+url;
            //return "redirect:qiuzhuoxinxiList.do";
          }
        //  分页查询
          @RequestMapping("qiuzhuoxinxiList.do")
          public String qiuzhuoxinxiList(@RequestParam(value="page",required=false)String page,
              ModelMap map,HttpSession session,Qiuzhuoxinxi qiuzhuoxinxi, String qiuzhuohao, String zhuangtai, String meixiaoshijifei, String beizhu){
            if(page==null||page.equals("")){
              page="1";
            }
            PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
            Map<String, Object> pmap=new HashMap<String,Object>();
            pmap.put("pageno", pageBean.getStart());
            pmap.put("pageSize", 15);
            if(qiuzhuohao==null||qiuzhuohao.equals("")){pmap.put("qiuzhuohao", null);}else{pmap.put("qiuzhuohao", qiuzhuohao);}
            if(zhuangtai==null||zhuangtai.equals("")){pmap.put("zhuangtai", null);}else{pmap.put("zhuangtai", zhuangtai);}
            if(meixiaoshijifei==null||meixiaoshijifei.equals("")){pmap.put("meixiaoshijifei", null);}else{pmap.put("meixiaoshijifei", meixiaoshijifei);}
            if(beizhu==null||beizhu.equals("")){pmap.put("beizhu", null);}else{pmap.put("beizhu", beizhu);}
            int total=qiuzhuoxinxiService.getCount(pmap);
            pageBean.setTotal(total);
            List<Qiuzhuoxinxi> list=qiuzhuoxinxiService.getByPage(pmap);
            map.put("page", pageBean);
            map.put("list", list);
            session.setAttribute("p", 1);
            return "qiuzhuoxinxi_list";
          }
          @RequestMapping("qzxxList.do")
          public String qzxxList(@RequestParam(value="page",required=false)String page,
              ModelMap map,HttpSession session,Qiuzhuoxinxi qiuzhuoxinxi, String qiuzhuohao, String zhuangtai, String meixiaoshijifei, String beizhu){
            if(page==null||page.equals("")){
              page="1";
            }
            PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
            Map<String, Object> pmap=new HashMap<String,Object>();
            pmap.put("pageno", pageBean.getStart());
            pmap.put("pageSize", 15);
            if(qiuzhuohao==null||qiuzhuohao.equals("")){pmap.put("qiuzhuohao", null);}else{pmap.put("qiuzhuohao", qiuzhuohao);}
            if(zhuangtai==null||zhuangtai.equals("")){pmap.put("zhuangtai", null);}else{pmap.put("zhuangtai", zhuangtai);}
            if(meixiaoshijifei==null||meixiaoshijifei.equals("")){pmap.put("meixiaoshijifei", null);}else{pmap.put("meixiaoshijifei", meixiaoshijifei);}
            if(beizhu==null||beizhu.equals("")){pmap.put("beizhu", null);}else{pmap.put("beizhu", beizhu);}
            int total=qiuzhuoxinxiService.getCount(pmap);
            pageBean.setTotal(total);
            List<Qiuzhuoxinxi> list=qiuzhuoxinxiService.getByPage(pmap);
            map.put("page", pageBean);
            map.put("list", list);
            session.setAttribute("p", 1);
            return "qiuzhuoxinxilist";
          }
          @RequestMapping("qiuzhuoxinxiList2.do")
          public String qiuzhuoxinxiList2(@RequestParam(value="page",required=false)String page,
              ModelMap map,HttpSession session,Qiuzhuoxinxi qiuzhuoxinxi, String qiuzhuohao, String zhuangtai, String meixiaoshijifei, String beizhu){
            if(page==null||page.equals("")){
              page="1";
            }
            PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
            Map<String, Object> pmap=new HashMap<String,Object>();
            pmap.put("pageno", pageBean.getStart());
            pmap.put("pageSize", 15);
            if(qiuzhuohao==null||qiuzhuohao.equals("")){pmap.put("qiuzhuohao", null);}else{pmap.put("qiuzhuohao", qiuzhuohao);}
            if(zhuangtai==null||zhuangtai.equals("")){pmap.put("zhuangtai", null);}else{pmap.put("zhuangtai", zhuangtai);}
            if(meixiaoshijifei==null||meixiaoshijifei.equals("")){pmap.put("meixiaoshijifei", null);}else{pmap.put("meixiaoshijifei", meixiaoshijifei);}
            if(beizhu==null||beizhu.equals("")){pmap.put("beizhu", null);}else{pmap.put("beizhu", beizhu);}
            int total=qiuzhuoxinxiService.getCount(pmap);
            pageBean.setTotal(total);
            List<Qiuzhuoxinxi> list=qiuzhuoxinxiService.getByPage(pmap);
            map.put("page", pageBean);
            map.put("list", list);
            session.setAttribute("p", 1);
            return "qiuzhuoxinxi_list2";
          }
          @RequestMapping("deleteQiuzhuoxinxi.do")
          public String deleteQiuzhuoxinxi(int id,HttpServletRequest request){
            qiuzhuoxinxiService.delete(id);
            String url = request.getHeader("Referer");
            return "redirect:"+url;
            //return "redirect:qiuzhuoxinxiList.do";
          }
        }

        image.gif

        五,项目总结

           本项目整体功能完整,用户角色齐全,符合实际运行要求,界面简洁大方,操作方便,人机交互较好,用户很容易适应系统的基本操作,可以作为毕业设计或课程设计使用

        相关文章
        |
        7月前
        |
        前端开发 Java 关系型数据库
        基于SSM实现台球厅计时收费系统
        基于SSM实现台球厅计时收费系统
        |
        4月前
        |
        Java 数据库连接 Maven
        手把手教你如何搭建SSM框架、图书商城系统案例
        这篇文章是关于如何搭建SSM框架以及实现一个图书商城系统的详细教程,包括了项目的配置文件整合、依赖管理、项目结构和运行效果展示,并提供了GitHub源码链接。
        手把手教你如何搭建SSM框架、图书商城系统案例
        |
        6月前
        |
        搜索推荐 JavaScript Java
        计算机Java项目|基于SSM的个性化商铺系统
        计算机Java项目|基于SSM的个性化商铺系统
        |
        3月前
        |
        Java 应用服务中间件 数据库连接
        ssm项目整合,简单的用户管理系统
        文章介绍了一个使用SSM框架(Spring、SpringMVC、MyBatis)构建的简单用户管理系统的整合过程,包括项目搭建、数据库配置、各层代码实现以及视图展示。
        ssm项目整合,简单的用户管理系统
        |
        6月前
        |
        前端开发 JavaScript Java
        计算机Java项目|SSM智能仓储系统
        计算机Java项目|SSM智能仓储系统
        |
        3月前
        |
        XML Java 数据库连接
        如何搭建SSM框架、图书商城系统
        这是一份详尽的《Spring + SpringMVC + Mybatis 整合指南》,作者耗时良久整理出约五万字的内容,现已经全部笔记公开。此文档详细地介绍了如何搭建与整合SSM框架,具体步骤包括创建Maven项目、添加web骨架、配置pom文件以及整合Spring、SpringMVC和Mybatis等。无论是对初学者还是有一定基础的开发者来说,都是很好的学习资源。此外,作者还提供了项目源码的GitHub链接,方便读者实践。虽然当前主流推荐学习SpringBoot,但了解SSM框架仍然是不可或缺的基础。
        45 0
        |
        4月前
        |
        SQL Java 应用服务中间件
        使用SSM搭建图书商城管理系统(完整过程介绍、售后服务哈哈哈)
        这篇文章是关于如何使用SSM框架搭建图书商城管理系统的教程,包括完整过程介绍、常见问题解答和售后服务,提供了项目地址、运行环境配置、效果图展示以及运行代码的步骤。
        使用SSM搭建图书商城管理系统(完整过程介绍、售后服务哈哈哈)
        |
        5月前
        |
        存储 关系型数据库 测试技术
        基于ssm+vue的校园驿站管理系统+(源码+部署说明+演示视频+源码介绍)(2)
        基于ssm+vue的校园驿站管理系统+(源码+部署说明+演示视频+源码介绍)
        78 1
        |
        6月前
        |
        前端开发
        杨校老师之基于SSM开发的校园点餐配送系统
        杨校老师之基于SSM开发的校园点餐配送系统
        65 0
        杨校老师之基于SSM开发的校园点餐配送系统
        |
        6月前
        |
        小程序 前端开发 测试技术
        微信小程序|ssm基于微信小程序的高校课堂教学管理系统
        微信小程序|ssm基于微信小程序的高校课堂教学管理系统