基于javaweb的SSM+Maven农家乐管理系统(java+ssm+vue+elementui+axios+mysql)

运行环境

Java≥8、MySQL≥5.7、Tomcat≥8、Node.js≥14

开发工具

后端:eclipse/idea/myeclipse/sts等均可配置运行
前端:WebStorm/VSCode/HBuilderX等均可

❗没学过node.js的不要搞前后端分离项目

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

321324580701

331324580701

341324580701

351324580701

361324580701

371324580701

381324580701

基于javaweb的SSM+Maven农家乐管理系统(java+ssm+vue+elementui+axios+mysql)

项目介绍

基于SSM的农家乐管理系统

角色:管理员、用户

本课程设计了农家乐管理系统 ,

用户可以此系统实现美食信息、住宿信息、活动信息、活动报名、客房预订等信息,管理员通过后台会对此美食信息进行审核,管理员在还可以进行首页、个人中心、农家乐管理、美食信息管理、住宿信息管理、活动信息管理、用户管理、活动报名管理、客房预订管理、用户评价管理、论坛交流、管理员管理、系统管理,前台首页;首页、农家乐、美食信息、住宿信息、活动信息、论坛交流、系统公告、个人中心、后台管理、在线客服,用户;首页、个人中心、活动报名管理、客房预订管理、用户评价管理、我的收藏管理等操作。

技术栈

后端:SSM(Spring+SpringMVC+Mybatis)

前端:ElementUI+Vue

1
2
3
4
5
6
7
8
9
10
管理员:
admin 123456

用户:
用户1 123456
用户2 123456
用户3 123456
用户4 123456
用户5 123456
用户6 123456

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
    KefangyudingEntity kefangyuding = kefangyudingService.selectById(id);
return R.ok().put("data", kefangyuding);
}




/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody KefangyudingEntity kefangyuding, HttpServletRequest request){
kefangyuding.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(kefangyuding);

kefangyudingService.insert(kefangyuding);
return R.ok();
}

/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody KefangyudingEntity kefangyuding, HttpServletRequest request){
kefangyuding.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(kefangyuding);

kefangyudingService.insert(kefangyuding);
return R.ok();
}

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


/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
kefangyudingService.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
  @RequestMapping("/lists")
public R list( DiscussnongjialeEntity discussnongjiale){
EntityWrapper<DiscussnongjialeEntity> ew = new EntityWrapper<DiscussnongjialeEntity>();
ew.allEq(MPUtil.allEQMapPre( discussnongjiale, "discussnongjiale"));
return R.ok().put("data", discussnongjialeService.selectListView(ew));
}

/**
* 查询
*/
@RequestMapping("/query")
public R query(DiscussnongjialeEntity discussnongjiale){
EntityWrapper< DiscussnongjialeEntity> ew = new EntityWrapper< DiscussnongjialeEntity>();
ew.allEq(MPUtil.allEQMapPre( discussnongjiale, "discussnongjiale"));
DiscussnongjialeView discussnongjialeView = discussnongjialeService.selectView(ew);
return R.ok("查询农家乐评论表成功").put("data", discussnongjialeView);
}

/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
DiscussnongjialeEntity discussnongjiale = discussnongjialeService.selectById(id);
return R.ok().put("data", discussnongjiale);
}

/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
DiscussnongjialeEntity discussnongjiale = discussnongjialeService.selectById(id);
return R.ok().put("data", discussnongjiale);
}




/**
* 后端保存
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




/**
* 活动信息评论表
* 后端接口
* @email
*/
@RestController
@RequestMapping("/discusshuodongxinxi")
public class DiscusshuodongxinxiController {
@Autowired
private DiscusshuodongxinxiService discusshuodongxinxiService;



/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,DiscusshuodongxinxiEntity discusshuodongxinxi, HttpServletRequest request){

EntityWrapper<DiscusshuodongxinxiEntity> ew = new EntityWrapper<DiscusshuodongxinxiEntity>();
PageUtils page = discusshuodongxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, discusshuodongxinxi), params), params));
return R.ok().put("data", page);
}

/**
* 前端列表
*/
@IgnoreAuth
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
   
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,HuodongbaomingEntity huodongbaoming, HttpServletRequest request){
EntityWrapper<HuodongbaomingEntity> ew = new EntityWrapper<HuodongbaomingEntity>();
PageUtils page = huodongbaomingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, huodongbaoming), params), params));
return R.ok().put("data", page);
}

/**
* 列表
*/
@RequestMapping("/lists")
public R list( HuodongbaomingEntity huodongbaoming){
EntityWrapper<HuodongbaomingEntity> ew = new EntityWrapper<HuodongbaomingEntity>();
ew.allEq(MPUtil.allEQMapPre( huodongbaoming, "huodongbaoming"));
return R.ok().put("data", huodongbaomingService.selectListView(ew));
}

/**
* 查询
*/
@RequestMapping("/query")
public R query(HuodongbaomingEntity huodongbaoming){
EntityWrapper< HuodongbaomingEntity> ew = new EntityWrapper< HuodongbaomingEntity>();
ew.allEq(MPUtil.allEQMapPre( huodongbaoming, "huodongbaoming"));
HuodongbaomingView huodongbaomingView = huodongbaomingService.selectView(ew);
return R.ok("查询活动报名成功").put("data", huodongbaomingView);
}

/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
HuodongbaomingEntity huodongbaoming = huodongbaomingService.selectById(id);
return R.ok().put("data", huodongbaoming);
}

/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
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

/**
* 列表
*/
@IgnoreAuth
@RequestMapping("/flist")
public R flist(@RequestParam Map<String, Object> params,ForumEntity forum, HttpServletRequest request){
EntityWrapper<ForumEntity> ew = new EntityWrapper<ForumEntity>();
PageUtils page = forumService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.allEq(ew, forum), params), params));
return R.ok().put("data", page);
}

/**
* 查询
*/
@RequestMapping("/query")
public R query(ForumEntity forum){
EntityWrapper< ForumEntity> ew = new EntityWrapper< ForumEntity>();
ew.allEq(MPUtil.allEQMapPre( forum, "forum"));
ForumView forumView = forumService.selectView(ew);
return R.ok("查询论坛交流成功").put("data", forumView);
}

/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
ForumEntity forum = forumService.selectById(id);
return R.ok().put("data", forum);
}

/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
ForumEntity forum = forumService.selectById(id);
return R.ok().put("data", forum);
}

/**
* 论坛详情
*/
@IgnoreAuth
@RequestMapping("/list/{id}")
public R list(@PathVariable("id") String id){
ForumEntity forum = forumService.selectById(id);
getChilds(forum);
return R.ok().put("data", forum);
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
			c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}

Wrapper<MeishixinxiEntity> wrapper = new EntityWrapper<MeishixinxiEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}


int count = meishixinxiService.selectCount(wrapper);
return R.ok().put("count", count);
}

/**
* 前端智能排序
*/
@IgnoreAuth
@RequestMapping("/autoSort")
public R autoSort(@RequestParam Map<String, Object> params,MeishixinxiEntity meishixinxi, HttpServletRequest request,String pre){
EntityWrapper<MeishixinxiEntity> ew = new EntityWrapper<MeishixinxiEntity>();
Map<String, Object> newMap = new HashMap<String, Object>();
Map<String, Object> param = new HashMap<String, Object>();
Iterator<Map.Entry<String, Object>> it = param.entrySet().iterator();
while (it.hasNext()) {
Map.Entry<String, Object> entry = it.next();
String key = entry.getKey();
String newKey = entry.getKey();
if (pre.endsWith(".")) {
newMap.put(pre + newKey, entry.getValue());
} else if (StringUtils.isEmpty(pre)) {
newMap.put(newKey, entry.getValue());
} else {
newMap.put(pre + "." + newKey, entry.getValue());
}


项目链接:
https://javayms.github.io?id=411524170701201gt
https://javayms.pages.dev?id=411524170701201gt