• 大小: 26.12MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-22
  • 语言: 其他
  • 标签: ssm  

资源简介

基于SSM的网上购物系统

资源截图

代码片段和文件信息

package com.shop.controller;

import java.io.File;
import java.util.Date;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
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.multipart.MultipartFile;

import com.shop.Utils.PageBean;
import com.shop.Utils.UUIDUtiils;
import com.shop.po.Adminuser;
import com.shop.po.Category;
import com.shop.po.Categorysecond;
import com.shop.po.Message;
import com.shop.po.Orders;
import com.shop.po.Product;
import com.shop.po.User;
import com.shop.service.CategorySecondService;
import com.shop.service.CategoryService;
import com.shop.service.MessageService;
import com.shop.service.OrderService;
import com.shop.service.ProductService;
import com.shop.service.UserService;


@Controller
public class AdminController {
@Autowired
private UserService userService;
@Autowired
public CategoryService categoryService;
@Autowired
public CategorySecondService categorySecondService;
@Autowired
public ProductService productService;
@Autowired
private OrderService orderService;
@Autowired
private MessageService messageService;

@RequestMapping(“/admin/admin_findAll“)
public String admin_findAll(Model modelHttpServletRequest request) throws Exception {
Adminuser adminuserLogin = (Adminuser) request.getSession().getAttribute(“adminuserLogin“);
if(adminuserLogin==null){
request.getSession().setAttribute(“message““对不起您还没有登录“);
return “admin/index“;
}
List userList = userService.admin_findAll();
model.addAttribute(“userList“ userList);
return “admin/user/list“;
}

@RequestMapping(“/admin/adminCategory_findAll“)
public String adminCategory_findAll(Model model HttpServletRequest request)
throws Exception {
Adminuser adminuserLogin = (Adminuser) request.getSession().getAttribute(“adminuserLogin“);
if(adminuserLogin==null){
request.getSession().setAttribute(“message““对不起您还没有登录“);
return “admin/index“;
}
List categoryList = categoryService.adminbFindCategory();
/*for (Category category : categoryList) {
System.out.println(category.getCname());
}*/
model.addAttribute(“categoryList“ categoryList);
return “admin/category/list“;
}

@RequestMapping(“/admin/adminCategory_add“)
public String adminCategory_add(Model modelHttpServletRequest request) throws Exception {
Adminuser adminuserLogin = (Adminuser) request.getSession().getAttribute(“adminuserLogin“);
if(adminuserLogin==null){
request.getSession().setAttribute(“message““对不起您还没有登录“);
return “admin/index“;
}
// List categoryList = categoryService.adminbFindCategory();
// model.addAttribute(“categoryList“ categoryList);
return 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-01-20 09:31  基于SSM的网上购物系统\
     目录           0  2018-04-07 01:27  基于SSM的网上购物系统\shop\
     文件       14774  2018-04-06 08:40  基于SSM的网上购物系统\shop.sql
     文件        1058  2018-04-08 13:43  基于SSM的网上购物系统\shop\.classpath
     文件         904  2018-04-03 04:53  基于SSM的网上购物系统\shop\.project
     目录           0  2018-04-06 03:57  基于SSM的网上购物系统\shop\.settings\
     文件         500  2018-04-05 20:53  基于SSM的网上购物系统\shop\.settings\.jsdtscope
     文件         275  2018-04-10 08:53  基于SSM的网上购物系统\shop\.settings\org.eclipse.core.resources.prefs
     文件          52  2018-04-06 13:06  基于SSM的网上购物系统\shop\.settings\org.eclipse.core.runtime.prefs
     文件         364  2018-04-02 05:13  基于SSM的网上购物系统\shop\.settings\org.eclipse.jdt.core.prefs
     文件         538  2018-04-03 15:03  基于SSM的网上购物系统\shop\.settings\org.eclipse.wst.common.component
     文件         345  2018-04-07 04:52  基于SSM的网上购物系统\shop\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件         153  2018-04-08 21:03  基于SSM的网上购物系统\shop\.settings\org.eclipse.wst.jsdt.ui.prefs
     文件          49  2018-04-02 18:45  基于SSM的网上购物系统\shop\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-04-05 15:54  基于SSM的网上购物系统\shop\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2018-04-07 08:35  基于SSM的网上购物系统\shop\build\
     目录           0  2018-10-10 22:12  基于SSM的网上购物系统\shop\build\classes\
     目录           0  2018-10-10 22:11  基于SSM的网上购物系统\shop\build\classes\com\
     目录           0  2018-10-10 22:11  基于SSM的网上购物系统\shop\build\classes\com\shop\
     目录           0  2018-10-10 22:11  基于SSM的网上购物系统\shop\build\classes\com\shop\controller\
     文件       14355  2018-10-10 22:11  基于SSM的网上购物系统\shop\build\classes\com\shop\controller\AdminController.class
     文件        2151  2018-10-10 22:11  基于SSM的网上购物系统\shop\build\classes\com\shop\controller\ajaxController.class
     文件        3246  2018-10-10 22:11  基于SSM的网上购物系统\shop\build\classes\com\shop\controller\cartController.class
     文件        2224  2018-10-10 22:11  基于SSM的网上购物系统\shop\build\classes\com\shop\controller\CategorySecondController.class
     文件        3867  2018-10-10 22:11  基于SSM的网上购物系统\shop\build\classes\com\shop\controller\checkImgController.class
     目录           0  2018-10-10 22:11  基于SSM的网上购物系统\shop\build\classes\com\shop\controller\converters\
     文件        1068  2018-10-10 22:11  基于SSM的网上购物系统\shop\build\classes\com\shop\controller\converters\DateConverters.class
     文件        3569  2018-10-10 22:11  基于SSM的网上购物系统\shop\build\classes\com\shop\controller\indexController.class
     文件        4015  2018-10-10 22:11  基于SSM的网上购物系统\shop\build\classes\com\shop\controller\loginController.class
     文件        2943  2018-10-10 22:11  基于SSM的网上购物系统\shop\build\classes\com\shop\controller\messageController.class
     文件        5464  2018-10-10 22:11  基于SSM的网上购物系统\shop\build\classes\com\shop\controller\orderController.class
............此处省略1087个文件信息

评论

共有 条评论