校园二手交易系统
文章目录项目介绍一、技术栈二、项目功能介绍1、后台功能介绍2、前台功能介绍三、后台页面展示四、前台页面展示五、部分代码六、底部关注公众号获取源码带万字论文参考项目介绍校园二手交易系统一、技术栈基于springboot的校园二手市场二、项目功能介绍1、后台功能介绍1、菜单管理 2、角色管理3、用户管理 4、日志管理5、数据备份 6、分类管理7、物品管理 8、求购物品9、用户管理 10、评论管理11、举报管理 12、公告管理13、网站设置 14、搜索功能2、前台功能介绍1、用户注册 2、用户注册 3、个人资料编辑 4、发布商品卖 5、购买商品买 6、求购专区 7、发表评论 8、搜索商品三、后台页面展示四、前台页面展示五、部分代码packagecom.yuanlrc.campus_market.controller.admin;importjava.util.List;importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.stereotype.Controller;importorg.springframework.ui.Model;importorg.springframework.web.bind.annotation.RequestMapping;importorg.springframework.web.bind.annotation.RequestMethod;importorg.springframework.web.bind.annotation.RequestParam;importorg.springframework.web.bind.annotation.ResponseBody;importcom.yuanlrc.campus_market.bean.PageBean;importcom.yuanlrc.campus_market.bean.Result;importcom.yuanlrc.campus_market.entity.common.Comment;importcom.yuanlrc.campus_market.entity.common.Goods;importcom.yuanlrc.campus_market.entity.common.Student;importcom.yuanlrc.campus_market.service.common.CommentService;importcom.yuanlrc.campus_market.service.common.GoodsService;importcom.yuanlrc.campus_market.service.common.StudentService;/** * 后台物品评论管理控制器 * author Administrator * */RequestMapping(/admin/comment)ControllerpublicclassCommentController{AutowiredprivateGoodsServicegoodsService;AutowiredprivateStudentServicestudentService;AutowiredprivateCommentServicecommentService;/** * 物品评论管理列表页面 * param name * param pageBean * param model * return */RequestMapping(value/list)publicStringlist(Commentcomment,PageBeanCommentpageBean,Modelmodel){if(comment.getStudent()!nullcomment.getStudent().getSn()!null){StudentstudentstudentService.findBySn(comment.getStudent().getSn());if(student!null){comment.setStudent(student);}}ListGoodsgoodsListnull;if(comment.getGoods()!nullcomment.getGoods().getName()!null){goodsListgoodsService.findListByName(comment.getGoods().getName());}model.addAttribute(title,物品评论列表);model.addAttribute(content,comment.getContent());model.addAttribute(name,comment.getGoods()null?null:comment.getGoods().getName());model.addAttribute(sn,comment.getStudent()null?null:comment.getStudent().getSn());model.addAttribute(pageBean,commentService.findlist(pageBean,comment,goodsList));returnadmin/comment/list;}/** * 物品评论删除操作 * param id * return */RequestMapping(value/delete,methodRequestMethod.POST)ResponseBodypublicResultBooleandelete(RequestParam(nameid,requiredtrue)Longid){commentService.delete(id);returnResult.success(true);}}packagecom.yuanlrc.campus_market.controller.admin;importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.stereotype.Controller;importorg.springframework.ui.Model;importorg.springframework.web.bind.annotation.RequestMapping;importorg.springframework.web.bind.annotation.RequestMethod;importorg.springframework.web.bind.annotation.RequestParam;importorg.springframework.web.bind.annotation.ResponseBody;importcom.yuanlrc.campus_market.bean.PageBean;importcom.yuanlrc.campus_market.bean.Result;importcom.yuanlrc.campus_market.entity.common.Student;importcom.yuanlrc.campus_market.entity.common.WantedGoods;importcom.yuanlrc.campus_market.service.common.StudentService;importcom.yuanlrc.campus_market.service.common.WantedGoodsService;/** * 后台求购物品管理控制器 * author Administrator * */RequestMapping(/admin/wanted_goods)ControllerpublicclassWantedGoodsController{AutowiredprivateWantedGoodsServicewantedGoodsService;AutowiredprivateStudentServicestudentService;/** * 求购物品管理列表页面 * param name * param pageBean * param model * return */RequestMapping(value/list)publicStringlist(WantedGoodswantedGoods,PageBeanWantedGoodspageBean,Modelmodel){if(wantedGoods.getStudent()!nullwantedGoods.getStudent().getSn()!null){StudentstudentstudentService.findBySn(wantedGoods.getStudent().getSn());if(student!null){wantedGoods.setStudent(student);}}model.addAttribute(title,求购物品列表);model.addAttribute(name,wantedGoods.getName());model.addAttribute(sn,wantedGoods.getStudent()null?null:wantedGoods.getStudent().getSn());model.addAttribute(pageBean,wantedGoodsService.findWantedGoodslist(pageBean,wantedGoods));returnadmin/wanted_goods/list;}/** * 求购物品删除操作 * param id * return */RequestMapping(value/delete,methodRequestMethod.POST)ResponseBodypublicResultBooleandelete(RequestParam(nameid,requiredtrue)Longid){wantedGoodsService.delete(id);returnResult.success(true);}}packagecom.yuanlrc.campus_market.controller.home;importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.stereotype.Controller;importorg.springframework.ui.Model;importorg.springframework.web.bind.annotation.RequestMapping;importorg.springframework.web.bind.annotation.RequestMethod;importcom.yuanlrc.campus_market.bean.PageBean;importcom.yuanlrc.campus_market.entity.common.WantedGoods;importcom.yuanlrc.campus_market.service.common.WantedGoodsService;/** * 求购物品控制器 * author Administrator * */RequestMapping(/home/wanted_goods)ControllerpublicclassHomeWantedGoodsController{AutowiredprivateWantedGoodsServicewantedGoodsService;/** * 求购物品列表页面 * param model * param pageBean * param WantedGoods * return */RequestMapping(value/list,methodRequestMethod.GET)publicStringlist(Modelmodel,PageBeanWantedGoodspageBean,WantedGoodsWantedGoods){model.addAttribute(pageBean,wantedGoodsService.findlist(pageBean,WantedGoods));returnhome/wanted_goods/list;}}六、底部关注公众号获取源码带万字论文参考