一、项目简述
功能包括: 用户登录,设备管理,设备指派,贝附信息,信息公告, 信息维护,系统管理,图表统计等等功能。
二、项目运行
环境配置: Jdk1.8 + Tomcat8.5 + mysql + Eclispe (IntelliJ IDEA,Eclispe,MyEclispe,Sts 都支持)
项目技术: JSP +Spring + SpringMVC + MyBatis + html+ css + JavaScript + JQuery + Ajax + layui+ maven等等。
基础信息操作:
复制代码
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118基础信息操作: @Controller @RequestMapping("/baseInfos") public class BaseInfoController { @Autowired private BaseInfoService baseInfoService; @Autowired private LogService logService; /** * 获取所有设备类型信息 * @param map * @return */ @RequestMapping("/type/list") public String listDeviceType(ModelMap map){ List<DeviceType> typeList = baseInfoService.listDeviceType(); map.put("typeList",typeList); return "deviceTypes::table-refresh"; } /** * 添加设备类型 * @param deviceType * @return */ @PostMapping("/type") @ResponseBody public int addtDeviceType(DeviceType deviceType){ return baseInfoService.addtDeviceType(deviceType); } /** * 删除设备类型 * @param typeId * @return */ @DeleteMapping("/type/{typeId}") @ResponseBody public int delteDeviceTypByid(@PathVariable("typeId") String typeId){ return baseInfoService.deleteDeviceTypeById(typeId); } /** * 修改设备类型 * @param deviceType * @return */ @PutMapping("/type") @ResponseBody public int updateDeviceType(DeviceType deviceType){ return baseInfoService.updateDeviceType(deviceType); } /** * 获取所有设备品牌信息 * @param map * @return */ @RequestMapping("/brand/list") public String listDeviceBrand(ModelMap map){ List<DeviceBrand> brandList = baseInfoService.listDeviceBrand(); map.put("brandList",brandList); return "deviceBrands::table-refresh"; } /** * 添加设备品牌 * @param deviceBrand * @return */ @PostMapping("/brand") @ResponseBody public int addtDeviceBrand(DeviceBrand deviceBrand){ return baseInfoService.addtDeviceBrand(deviceBrand); } /** * 删除设备品牌 * @param brandId * @return */ @DeleteMapping("/brand/{brandId}") @ResponseBody public int delteDeviceBrandByid(@PathVariable("brandId") String brandId){ return baseInfoService.deleteDeviceBrandById(brandId); } /** * 修改品牌 * @param deviceBrand * @return */ @PutMapping("/brand") @ResponseBody public int updateDeviceBrand(DeviceBrand deviceBrand){ return baseInfoService.updateDeviceBrand(deviceBrand); } /** * 获取系统日志 * @param map * @return */ @RequestMapping("/log") public String listLog(ModelMap map, HttpServletRequest request){ String startTime = request.getParameter("startTime"); String endTime = request.getParameter("endTime"); List<SystemLog> logs = logService.listLogsByDate(startTime,endTime); map.put("logList",logs); return "system::logList-refresh"; } }
信息公告控制器代码:
复制代码
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
54
55
56
57
58
59/** * 信息公告控制器 * */ @Controller @RequestMapping("/notice") public class NoticeController { @Autowired NoticeService noticeService; /** * 查看公告详情 * @param id * @param map * @return */ @GetMapping("/{id}") public String readContent(@PathVariable("id") String id,ModelMap map){ Notice notice = noticeService.getNoticeById(id); map.put("notice",notice); return "noticeContent"; } /** * 查询所有公告 * @param map * @return /*/ @GetMapping("/list") public String listAllNotice(ModelMap map){ List<Notice> noticeList = noticeService.listAll(); map.addAttribute("noticeList",noticeList); return "notice::table-refresh"; } /** * 新增公告 * @param notice * @return */ @PostMapping public String addNotice(Notice notice){ noticeService.addNotice(notice); return "notice"; } /** * 按id删除公告 * @param id * @return */ @DeleteMapping("/{id}") @ResponseBody public int deleteNotice(@PathVariable("id")String id){ return noticeService.deleteNoticeById(id); } }
以上就是Java 实战项目锤炼之IT设备固定资产管理系统的实现流程的详细内容,更多关于Java IT设备管理系统的资料请关注靠谱客其它相关文章!
最后
以上就是阔达画板最近收集整理的关于Java 实战项目锤炼之IT设备固定资产管理系统的实现流程的全部内容,更多相关Java内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复