基于javaweb+mysql的springboot+mybatis服装店门店信息管理系统(JavaWeb JSP MySQL Servlet SSM SpringBoot Layui Ajax)

这是一个基于JavaWeb、MySQL、SpringBoot和MyBatis的服装店门店信息管理系统,适用于课程设计和项目练习。系统包含了登录、注册、用户管理、公告、供应商、商品、进货、库存和销售等功能模块,支持使用Eclipse、MyEclipse和IDEA等开发工具进行运行。
摘要由CSDN通过智能技术生成

基于javaweb+mysql的springboot+mybatis服装店门店信息管理系统(JavaWeb JSP MySQL Servlet SSM SpringBoot Layui Ajax)

运行环境

Java≥8、MySQL≥5.7

开发工具

eclipse/idea/myeclipse/sts等均可配置运行

技术框架

JavaBean MVC JSP SpringBoot MyBatis MySQL CSS JavaScript Layui Ajax

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

登录、注册、退出、用户模块、公告模块、供应商模块、商品模块、进货模块、库存盘点、销售模块的增删改查管理

eclipse/MyEclipse运行:

idea运行:

        response.sendRedirect("user_" + to + ".jsp");
    }

    /**
     * 根据条件查询用户的列表并跳转回页面
     *
     * @param response
     * @param request
     * @throws IOException
     */
    @RequestMapping("userList")
    public void list(HttpServletResponse response, HttpServletRequest request) throws IOException {
   
        this.redirectList(request, response);
    }

    /**
     * 跳转到列表页面
     *
     * @param request
     * @param response
     */
    private void redirectList(HttpServletRequest request, HttpServletResponse response) throws IOException {
   
        //查询列和关键字
        String searchColumn = request.getParameter("searchColumn");
        String keyword = request.getParameter("keyword");
        Map<String, Object> params = new HashMap();//用来保存控制层传进来的参数(查询条件)
        params.put("searchColumn", searchColumn);//要查询的列
        params.put("keyword", keyword);//查询的关键字
        response.getWriter().println(com.alibaba.fastjson.JSONObject.toJSONString(userService.list(params).get("list")));
    }
}


    /**
     * 根据条件查询进货的列表并跳转回页面
     *
     * @param response
     * @param request
     * @throws IOException
     */
    @RequestMapping("jinghuoList")
    public void list(HttpServletResponse response, HttpServletRequest request) throws IOException {
   
        this.redirectList(request, response);
    }

    /**
     * 跳转到列表页面
     *
     * @param request
     * @param response
     */
    private void redirectList(HttpServletRequest request, HttpServletResponse response) throws IOException {
   
        //查询列和关键字
        String searchColumn = request.getParameter("searchColumn");
        String keyword = request.getParameter("keyword");
        Map<String, Object> params = new HashMap();//用来保存控制层传进来的参数(查询条件)
        params.put("searchColumn", searchColumn);//要查询的列
        params.put("keyword", keyword);//查询的关键字
        response.getWriter().println(com.alibaba.fastjson.JSONObject.toJSONString(jinghuoService.list(params).get("list")));
    }
}

     * 增加商品
     *
     * @param response
     * @param request
     * @throws IOException
     */
    @RequestMapping("goodAdd")
    public void add(Good vo, HttpServletResponse response, HttpServletRequest request) throws IOException {
   
        //调用Service层的增加(insert)方法
        goodService.insert(vo);
        this.redirectList(request, response);
    }

    /**
     * 删除商品
     *
     * @param response
     * @param request
     * @throws IOException
     */
    @RequestMapping("goodDelete")
    public void delete(HttpServletResponse response, HttpServletRequest request) throws IOException {
   
        Serializable id = request.getParameter("id");
        goodService.delete(Arrays.asList(id));
        this.redirectList(request, response);
    }

    /**
     * 编辑商品
     *
     * @param response
     * @param request
     * @throws IOException
     */
    @RequestMapping("goodEdit")
    public void edit(Good vo, HttpServletResponse response, HttpServletRequest request) throws IOException {
   
        goodService.update(vo);
        this.redirectList(request, response);
    }

    /**
     * 获取商品的详细信息(详情页面与编辑页面要显示该商品的详情)并跳转回页面
     *
     * @param response
     * @param request
     * @throws IOException
     */
    @RequestMapping({
   "goodGet", "goodEditPre"})
    public void get(HttpServletResponse response, HttpServletRequest request) throws IOException {
   
        Serializable id = request.getParameter("id");//取出主键id
     * @param response
     * @param request
     * @throws IOException
     */
    @RequestMapping("xiaoshouDelete")
    public void delete(HttpServletResponse response, HttpServletRequest request) throws IOException {
   
        Serializable id = request.getParameter("id");
        xiaoshouService.delete(Arrays.asList(id));
        this.redirectList(request, response);
    }

    /**
     * 编辑销售
     *
     * @param response
     * @param request
     * @throws IOException
     */
    @RequestMapping("xiaoshouEdit")
    public void edit(Xiaoshou vo, HttpServletResponse response, HttpServletRequest request) throws IOException {
   
        xiaoshouService.update(vo);
        this.redirectList(request, response);
    }

    /**
     * 获取销售的详细信息(详情页面与编辑页面要显示该销售的详情)并跳转回页面
     *
     * @param response
     * @param request
     * @throws IOException
     */
    @RequestMapping({
   "xiaoshouGet", "xiaoshouEditPre"})
    public void get(HttpServletResponse response, HttpServletRequest request) throws IOException {
   
        Serializable id = request.getParameter("id");//取出主键id
        Xiaoshou vo = xiaoshouService.get(id);
        request.getSession().setAttribute("vo"<
  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值