——————————DescriptionStart——————————
运行环境
Java≥8、MySQL≥5.7、Tomcat≥8
开发工具
eclipse/idea/myeclipse/sts等均可配置运行
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明





基于javaweb的SSM垃圾分类查询管理系统(java+ssm+jsp+mysql+bootstrap)
jsp+ssm(spring+springmvc+mybatis)+mysql实现的垃圾分类查询管理系统:
系统主要实现的功能有:
1:前端垃圾分类查询,前端采用bootstrap框架,自适应设备的。
2:后台菜单管理、角色权限管理、用户管理、日志管理、垃圾分类管理、垃圾管理等功能。
——————————CodeStart——————————
| 12
 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
 
 | 	 */@RequestMapping(value="/get_role_authority",method=RequestMethod.POST)
 @ResponseBody
 public List<Authority> getRoleAuthority(
 @RequestParam(name="roleId",required=true) Long roleId
 ){
 return authorityService.findListByRoleId(roleId);
 }
 }
 package com.ischoolbar.programmer.controller.admin;
 
 
 
 
 
 
 
 
 
 @RequestMapping("/admin/menu")
 @Controller
 public class MenuController {
 
 @Autowired
 private MenuService menuService;
 
 
 
 
 
 
 
 
 | 
| 12
 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
 
 | 	}
 
 
 
 
 
 
 
 @RequestMapping(value="/delete",method=RequestMethod.POST)
 @ResponseBody
 public Map<String, String> delete(String ids){
 Map<String, String> ret = new HashMap<String, String>();
 if(StringUtils.isEmpty(ids)){
 ret.put("type", "error");
 ret.put("msg", "选择要删除的数据!");
 return ret;
 }
 if(ids.contains(",")){
 ids = ids.substring(0,ids.length()-1);
 }
 if(logService.delete(ids) <= 0){
 ret.put("type", "error");
 ret.put("msg", "日志删除失败,请联系管理员!");
 return ret;
 }
 ret.put("type", "success");
 ret.put("msg", "日志删除成功!");
 return ret;
 }
 }
 package com.ischoolbar.programmer.controller.home;
 
 
 
 
 | 
| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 
 | 		}if(logService.delete(ids) <= 0){
 ret.put("type", "error");
 ret.put("msg", "日志删除失败,请联系管理员!");
 return ret;
 }
 ret.put("type", "success");
 ret.put("msg", "日志删除成功!");
 return ret;
 }
 }
 package com.ischoolbar.programmer.controller.home;
 
 
 
 
 
 | 
| 12
 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
 
 | 
 
 
 
 
 @RequestMapping("/admin/menu")
 @Controller
 public class MenuController {
 
 @Autowired
 private MenuService menuService;
 
 
 
 
 
 
 
 @RequestMapping(value="/list",method=RequestMethod.GET)
 public ModelAndView list(ModelAndView model){
 model.addObject("topList", menuService.findTopList());
 model.setViewName("menu/list");
 return model;
 }
 
 
 
 
 
 
 
 @RequestMapping(value="/list",method=RequestMethod.POST)
 @ResponseBody
 public Map<String, Object> getMenuList(Page page,
 @RequestParam(name="name",required=false,defaultValue="") String name
 
 | 
| 12
 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
 
 | 
 
 
 
 
 @RequestMapping(value="/list",method=RequestMethod.GET)
 public ModelAndView list(ModelAndView model){
 model.addObject("rubbishCategoryList", rubbishCategoryService.findList(null));
 model.setViewName("rubbish/list");
 return model;
 }
 
 
 
 
 
 
 
 
 
 @RequestMapping(value="/list",method=RequestMethod.POST)
 @ResponseBody
 public Map<String, Object> getList(Page page,
 @RequestParam(name="name",required=false,defaultValue="") String name,
 Long categoryId
 ){
 Map<String, Object> ret = new HashMap<String, Object>();
 Map<String, Object> queryMap = new HashMap<String, Object>();
 if(categoryId != null){
 queryMap.put("categoryId", categoryId);
 }
 queryMap.put("name", name);
 queryMap.put("offset", page.getOffset());
 queryMap.put("pageSize", page.getRows());
 ret.put("rows", rubbishService.findList(queryMap));
 ret.put("total", rubbishService.getTotal(queryMap));
 return ret;
 }
 
 
 
 
 
 
 @RequestMapping(value="/add",method=RequestMethod.POST)
 @ResponseBody
 public Map<String, String> add(Rubbish rubbish){
 Map<String, String> ret = new HashMap<String, String>();
 if(rubbish == null){
 ret.put("type", "error");
 ret.put("msg", "请填写正确的垃圾信息!");
 return ret;
 
 | 
——————————PayStart——————————
项目链接:
https://javayms.github.io?id=171422312105200hx
https://javayms.pages.dev?id=171422312105200hx