注意:该项目只展示部分功能,如需了解,评论区咨询即可。
1.开发环境
开发语言:Java 后台框架:SpringBoot 数据库:MySQL 编译工具:Idea、Eclipse、MyEclipse (选其一) 其他:jdk1.8、Maven 、微信开发者工具
eclipse 下载 mysql 5.7 下载 jdk 1.8 下载 tomcat 8.0 下载 maven 3.5 下载 idea 下载
2.系统的设计与实现
2.1 设计任务
系统实现功能包括:管理员包括:个人中心、用户管理、图书类型管理、图书信息管理、评分信息管理、交流信息、我的收藏管理、系统管理,用户:首页、图书信息、交流信息、我的收藏管理、我要发帖、我的发帖。
管理员在后台可以查询管理用户信息,对违反交流规定的用户还可删除用户,从而维护书城小程序的社区秩序。用户注册登陆书城,可在首页查看图书信息,或者在图书信息栏下搜索自己喜爱的图书,本书城最基本的操作方式也仅有三个:收藏,评分和评论,围绕着这三个模块,书城小程序构建起以用户为中心的兴趣平台,使得他们可以将自己平日里看书的记录收集和整理起来,供日后回顾和分析。
当然本书城还有一个很重要的功能,发帖功能,此功能为开放功能,每个用户都能加入一起交流图书信息,可以很容易找到很多趣味相投的朋友,可以尽情的跟他们交流,从而提高自己的人脉及与人的沟通能力。
2.2 各角色功能模块
2.2.1 用户
2.2.2 管理员
- 登录;
- 用户管理
- 图书类型管理
- 图书信息管理
- 评分信息管理
- 交流信息
- 我的收藏管理
- 系统管理
3 小程序端功能模块展示
     
4 管理员端功能模块展示
    
5 更多推荐
2023年计算机毕业设计选题大全 计算机毕业设计选题推荐 ssm在线点餐系统(沙箱支付) 基于springboot的社区志愿者管理系统 ssm考研图书商城系统
6 部分功能代码
@RestController
@RequestMapping("/tushuxinxi")
public class TushuxinxiController {
@Autowired
private TushuxinxiService tushuxinxiService;
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,TushuxinxiEntity tushuxinxi,
HttpServletRequest request){
EntityWrapper<TushuxinxiEntity> ew = new EntityWrapper<TushuxinxiEntity>();
PageUtils page = tushuxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, tushuxinxi), params), params));
return R.ok().put("data", page);
}
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,TushuxinxiEntity tushuxinxi,
HttpServletRequest request){
EntityWrapper<TushuxinxiEntity> ew = new EntityWrapper<TushuxinxiEntity>();
PageUtils page = tushuxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, tushuxinxi), params), params));
return R.ok().put("data", page);
}
@RequestMapping("/lists")
public R list( TushuxinxiEntity tushuxinxi){
EntityWrapper<TushuxinxiEntity> ew = new EntityWrapper<TushuxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( tushuxinxi, "tushuxinxi"));
return R.ok().put("data", tushuxinxiService.selectListView(ew));
}
@RequestMapping("/query")
public R query(TushuxinxiEntity tushuxinxi){
EntityWrapper< TushuxinxiEntity> ew = new EntityWrapper< TushuxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( tushuxinxi, "tushuxinxi"));
TushuxinxiView tushuxinxiView = tushuxinxiService.selectView(ew);
return R.ok("查询图书信息成功").put("data", tushuxinxiView);
}
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
TushuxinxiEntity tushuxinxi = tushuxinxiService.selectById(id);
return R.ok().put("data", tushuxinxi);
}
@IgnoreAuth
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
TushuxinxiEntity tushuxinxi = tushuxinxiService.selectById(id);
return R.ok().put("data", tushuxinxi);
}
@RequestMapping("/save")
public R save(@RequestBody TushuxinxiEntity tushuxinxi, HttpServletRequest request){
tushuxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
tushuxinxiService.insert(tushuxinxi);
return R.ok();
}
@RequestMapping("/add")
public R add(@RequestBody TushuxinxiEntity tushuxinxi, HttpServletRequest request){
tushuxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
tushuxinxiService.insert(tushuxinxi);
return R.ok();
}
@RequestMapping("/update")
public R update(@RequestBody TushuxinxiEntity tushuxinxi, HttpServletRequest request){
tushuxinxiService.updateById(tushuxinxi);
return R.ok();
}
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
tushuxinxiService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
@RequestMapping("/remind/{columnName}/{type}")
public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);
if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStartDate = null;
Date remindEndDate = null;
if(map.get("remindstart")!=null) {
Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}
Wrapper<TushuxinxiEntity> wrapper = new EntityWrapper<TushuxinxiEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = tushuxinxiService.selectCount(wrapper);
return R.ok().put("count", count);
}
源码项目、定制开发、代码讲解、答辩辅导 希望和大家多多交流!!
|