• 基于java+springboot+mybatis+vue+elementui的球鞋销售商城网站


    系统功能:
    用户端:

    • 登录注册
    • 首页浏览
    • 商品信息
    • 发表评论
    • 分类筛选
    • 商品查询
    • 商品资讯
    • 在线客服
    • 加入购物车
    • 商品收藏
    • 提交订单
    • 地址管理
    • 个人中心
    • 收藏管理
    • 订单管理
    • 退出登录

    管理员端:

    • 系统登录
    • 个人中心
    • 用户管理
    • 商品分类管理
    • 商品信息管理
    • 订单评价管理
    • 订单管理
    • 系统管理(轮播图管理、商品资讯管理、在线客服管理)
    • 退出登录

    页面效果:
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
    核心代码:

    package com.controller;
    
    
    import java.util.Arrays;
    import java.util.Map;
    
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.web.bind.annotation.PathVariable;
    import org.springframework.web.bind.annotation.PostMapping;
    import org.springframework.web.bind.annotation.RequestBody;
    import org.springframework.web.bind.annotation.RequestMapping;
    import org.springframework.web.bind.annotation.RequestParam;
    import org.springframework.web.bind.annotation.RestController;
    
    import com.annotation.IgnoreAuth;
    import com.baomidou.mybatisplus.mapper.EntityWrapper;
    import com.entity.ConfigEntity;
    import com.service.ConfigService;
    import com.utils.PageUtils;
    import com.utils.R;
    import com.utils.ValidatorUtils;
    
    /**
     * 登录相关
     */
    @RequestMapping("config")
    @RestController
    public class ConfigController{
    	
    	@Autowired
    	private ConfigService configService;
    
    	/**
         * 列表
         */
        @RequestMapping("/page")
        public R page(@RequestParam Map<String, Object> params,ConfigEntity config){
            EntityWrapper<ConfigEntity> ew = new EntityWrapper<ConfigEntity>();
        	PageUtils page = configService.queryPage(params);
            return R.ok().put("data", page);
        }
        
    	/**
         * 列表
         */
        @IgnoreAuth
        @RequestMapping("/list")
        public R list(@RequestParam Map<String, Object> params,ConfigEntity config){
            EntityWrapper<ConfigEntity> ew = new EntityWrapper<ConfigEntity>();
        	PageUtils page = configService.queryPage(params);
            return R.ok().put("data", page);
        }
    
        /**
         * 信息
         */
        @RequestMapping("/info/{id}")
        public R info(@PathVariable("id") String id){
            ConfigEntity config = configService.selectById(id);
            return R.ok().put("data", config);
        }
        
        /**
         * 详情
         */
        @IgnoreAuth
        @RequestMapping("/detail/{id}")
        public R detail(@PathVariable("id") String id){
            ConfigEntity config = configService.selectById(id);
            return R.ok().put("data", config);
        }
        
        /**
         * 根据name获取信息
         */
        @RequestMapping("/info")
        public R infoByName(@RequestParam String name){
            ConfigEntity config = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile"));
            return R.ok().put("data", config);
        }
        
        /**
         * 保存
         */
        @PostMapping("/save")
        public R save(@RequestBody ConfigEntity config){
    //    	ValidatorUtils.validateEntity(config);
        	configService.insert(config);
            return R.ok();
        }
    
        /**
         * 修改
         */
        @RequestMapping("/update")
        public R update(@RequestBody ConfigEntity config){
    //        ValidatorUtils.validateEntity(config);
            configService.updateById(config);//全部更新
            return R.ok();
        }
    
        /**
         * 删除
         */
        @RequestMapping("/delete")
        public R delete(@RequestBody Long[] ids){
        	configService.deleteBatchIds(Arrays.asList(ids));
            return R.ok();
        }
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
  • 相关阅读:
    Grpc MagicOnion库 之 客户端和服务端 (案例版)
    哪些企业可以做知识产权质押?
    【linux】查看本机的网关地址
    IDEA设置方法分割线
    微服务线上问题排查困难?不知道问题出在哪一环?那是你还不会分布式链路追踪
    什么是安规电容、X电容、Y电容?
    node.js共享输液检测系统毕业设计源码131105
    C语言百钱买百鸡(ZZULIOJ1074:百钱买百鸡)
    2022年找工作确实不易
    如何突破测试/开发程序员思维?一种不一样的感觉......
  • 原文地址:https://blog.csdn.net/qq_3306428634/article/details/126557344