Skip to content

基于Java+Springboot+vue的二手书交易系统(源代码+数据库+11000字论文+ppt)237 本项目前后端分离(可以改为ssm版本),分为用户、卖家、管理员三种角色。 1、用户: 注册、登录、公告信息、二手书(查看、购买、退货)、购物车、留言、车票购买、客服咨询、图书求购、个人中心、密码修改 2、卖家: 二手书管理、订单管理、求购图书管理、求购回复、留言管理、轮播图管理、公告管理、客服回复 3、管理员: 用户管理、订单管理、分类管理、图书管理、求购管理、发货 二、所用技术 后端技术栈: Springboot mybatisPlus Mysql Maven 前端技术栈: Vue Vue-router axios elementui html

Notifications You must be signed in to change notification settings

codegitpro/secondhandBook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

本项目完整源码是收费的 接毕业设计和论文

作者微信:grapro666 QQ:3642795578 (支持部署调试、支持代做毕设)

接javaweb、python、小程序、H5、APP、各种管理系统、单片机、嵌入式等开发

选题+开题报告+任务书+程序定制+安装调试+论文+答辩ppt

博客地址: https://blog.csdn.net/2303_76227485/article/details/151077124

视频演示: https://www.bilibili.com/video/BV1XgaUzQEgW/

毕业设计所有选题地址: https://github.com/giteecode/allProject

基于Java+Springboot+vue的二手书交易系统(源代码+数据库+11000字论文+ppt)237

一、系统介绍

本项目前后端分离(可以改为ssm版本),分为用户、卖家、管理员三种角色。

1、用户:

  • 注册、登录、公告信息、二手书(查看、购买、退货)、购物车、留言、车票购买、客服咨询、图书求购、个人中心、密码修改

2、卖家:

  • 二手书管理、订单管理、求购图书管理、求购回复、留言管理、轮播图管理、公告管理、客服回复

3、管理员:

  • 用户管理、订单管理、分类管理、图书管理、求购管理、发货

二、所用技术

后端技术栈:

  • Springboot
  • mybatisPlus
  • Mysql
  • Maven

前端技术栈:

  • Vue
  • Vue-router
  • axios
  • elementui
  • html

三、环境介绍

基础环境 :IDEA/eclipse, JDK1.8, Mysql5.7及以上, Maven3.6, node14, navicat

所有项目以及源代码本人均调试运行无问题 可支持远程调试运行

四、页面截图

文档截图: contents contents contents

1、用户:

contents contents contents contents contents contents contents contents contents contents contents contents contents contents contents contents contents contents contents contents

2、卖家:

contents contents contents contents contents contents contents contents

3、管理员:

contents contents contents contents contents contents contents contents contents contents contents contents

五、浏览地址

前台访问地址:http://localhost:8080/secondhandBook/front/index.html

用户账号密码:用户账号1/123456

后台访问地址:http://localhost:8081

管理员账号密码:admin/admin

卖家账号密码:卖家账号1/123456

六、部署教程

  1. 使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并执行项目的sql文件

  2. 使用IDEA/Eclipse导入secondhandBook项目,若为maven项目请选择maven,等待依赖下载完成

  3. 修改application.yml里面的数据库配置,src/main/java/com/SpringbootSchemaApplication.java启动后端项目

  4. vscode或idea打开src/main/resources/admin/admin项目

  5. 在编译器中打开terminal,执行npm install 依赖下载完成后执行 npm run serve,执行成功后会显示后台访问地址

七、创新点

1、通过开发出聊天功能实现和客服咨询聊天

八、部分代码

/**
 * 联系客服
 * 后端接口
 * @author 
 * @email 
 */
@RestController
@RequestMapping("/chat")
public class ChatController {
    @Autowired
    private ChatService chatService;

    /**
     * 消息列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,ChatEntity chat,
		HttpServletRequest request){
    	if(!request.getSession().getAttribute("role").toString().equals("管理员")) {
    		chat.setUserid((Long)request.getSession().getAttribute("userId"));
    	}
        EntityWrapper<ChatEntity> ew = new EntityWrapper<ChatEntity>();
		PageUtils page = chatService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chat), params), params));

        return R.ok().put("data", page);
    }
	
    /**
     * 消息详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        ChatEntity chat = chatService.selectById(id);
        return R.ok().put("data", chat);
    }
    
    /**
     * 消息发送
     */
    @RequestMapping("/save")
    public R save(@RequestBody ChatEntity chat, HttpServletRequest request){
    	chat.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(chat);
    	if(StringUtils.isNotBlank(chat.getAsk())) {
			chatService.updateForSet("isreply=0", new EntityWrapper<ChatEntity>().eq("userid", request.getSession().getAttribute("userId")));
    		chat.setUserid((Long)request.getSession().getAttribute("userId"));
    		chat.setIsreply(1);
    	}
    	if(StringUtils.isNotBlank(chat.getReply())) {
    		chatService.updateForSet("isreply=0", new EntityWrapper<ChatEntity>().eq("userid", chat.getUserid()));
    		chat.setAdminid((Long)request.getSession().getAttribute("userId"));
    	}
        chatService.insert(chat);
        return R.ok();
    }
}
@RestController
@RequestMapping("/orders")
public class OrdersController {
    @Autowired
    private OrdersService ordersService;

    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,OrdersEntity orders,
		HttpServletRequest request){
    	if(!request.getSession().getAttribute("role").toString().equals("管理员")) {
    		orders.setUserid((Long)request.getSession().getAttribute("userId"));
    	}
		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("maijiayonghu")) {
			orders.setMaijiazhanghao((String)request.getSession().getAttribute("username"));
                        if(orders.getUserid()!=null) {
                                orders.setUserid(null);
                        }
		}
        EntityWrapper<OrdersEntity> ew = new EntityWrapper<OrdersEntity>();
		PageUtils page = ordersService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, orders), params), params));

        return R.ok().put("data", page);
    }

    /**
     * 前端详情
     */
	@IgnoreAuth
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        OrdersEntity orders = ordersService.selectById(id);
        return R.ok().put("data", orders);
    }
    
    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody OrdersEntity orders, HttpServletRequest request){
    	orders.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(orders);
    	orders.setUserid((Long)request.getSession().getAttribute("userId"));
        ordersService.insert(orders);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody OrdersEntity orders, HttpServletRequest request){
    	orders.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(orders);
        ordersService.insert(orders);
        return R.ok();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    @Transactional
    public R update(@RequestBody OrdersEntity orders, HttpServletRequest request){
        //ValidatorUtils.validateEntity(orders);
        ordersService.updateById(orders);//全部更新
        return R.ok();
    }

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        ordersService.deleteBatchIds(Arrays.asList(ids));
        return R.ok();
    }
}

About

基于Java+Springboot+vue的二手书交易系统(源代码+数据库+11000字论文+ppt)237 本项目前后端分离(可以改为ssm版本),分为用户、卖家、管理员三种角色。 1、用户: 注册、登录、公告信息、二手书(查看、购买、退货)、购物车、留言、车票购买、客服咨询、图书求购、个人中心、密码修改 2、卖家: 二手书管理、订单管理、求购图书管理、求购回复、留言管理、轮播图管理、公告管理、客服回复 3、管理员: 用户管理、订单管理、分类管理、图书管理、求购管理、发货 二、所用技术 后端技术栈: Springboot mybatisPlus Mysql Maven 前端技术栈: Vue Vue-router axios elementui html

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages