Java项目:SpringBoot企业固定资产管理系统
项目介绍
PS:左上角WEB控制台点击进去管理页面,需要注意的是,管理员可以在后台添加无数个角色和权限,所以这个不是一个单角色的系统。
环境需要
1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。 2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA; 3.tomcat环境:Tomcat 7.x,8.x,9.x版本均可 4.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS;
5.数据库:MySql 5.7版本;
6.是否Maven项目:是;
技术栈
1. 后端:springboot, mybatis, shiro
2. 前端:HTML+CSS+JavaScript+VUE
使用说明
1. 使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件; 2. 使用IDEA/Eclipse/MyEclipse导入项目,Eclipse/MyEclipse导入时,若为maven项目请选择maven; 若为maven项目,导入成功后请执行maven clean;maven install命令,然后运行; 3. 将项目中config/application.properties配置文件中的数据库配置改为自己的配置; 4. 运行项目,输入http://localhost:8080/ 登录
管理员账号/密码:admin/123456
代码相关
网点管理控制器
@Api("网点管理") @RestController @RequestMapping("/point") @RequiresPermissions(value = {"system-administrator-permission","sys:point"},logical = Logical.OR) public class PointController { @Autowired private PointService pointService; @ApiOperation(value = "添加网点") @PostMapping("/add") public ResultDto<Object> add(@RequestBody Point point){ return pointService.add(point); } @ApiOperation(value = "删除网点") @DeleteMapping("/delete/{id}") public ResultDto<Object> deleteById(@PathVariable("id") Long id) throws AssetException { return pointService.deleteById(id); } @ApiOperation(value = "更新网点") @PutMapping("/update") public ResultDto<Object> update(@RequestBody Point point) { return pointService.update(point); } @ApiOperation(value = "网点列表") @GetMapping("/list") public ResultDto<PageDto<Point>> getList(PointDto dto){ return pointService.getList(dto); } @ApiOperation(value = "网点树") @GetMapping("/tree") public ResultDto<List<Point>> getPointTree(){ return pointService.getResultTree(); } @ApiOperation(value = "获取网点") @GetMapping("/map") public ResultDto<List<KeyValue>> getMapByPid(@RequestParam("pid") Long pid) throws AssetException { return pointService.getMapByPid(pid); } @ApiOperation(value = "获取网点") @GetMapping("/get") public ResultDto<List<Point>> getPointByPid(@RequestParam(value = "pid",required = false) Long pid){ return pointService.getResultTreeNodesByPid(pid); } @ApiOperation(value = "获取网点") @GetMapping("/get/{id}") public ResultDto<Point> getPointById(@PathVariable("id") Long id){ return pointService.getResultTreeEntityById(id); } @ApiOperation(value = "获取网点") @GetMapping("/root/query") public ResultDto<List<Point>> getQueryRootPoint(){ ResultDto<List<Point>> result = new ResultDto<>(ResultCode.SUCCESS); result.setObject(pointService.getQueryRootPoint()); return result; } @ApiOperation(value = "刷新网点缓存数据") @PostMapping("/refresh") public ResultDto<List<Point>> refresh(){ ResultDto<List<Point>> result = new ResultDto<>(ResultCode.SUCCESS); pointService.refreshTreeData(); return result; } }
过滤器
如果也想学习本系统,下面领取。回复:066springboot