iis服务器助手广告广告
返回顶部
首页 > 资讯 > 后端开发 > Python >Java 实战项目锤炼之IT设备固定资产管理系统的实现流程
  • 703
分享到

Java 实战项目锤炼之IT设备固定资产管理系统的实现流程

2024-04-02 19:04:59 703人浏览 八月长安

Python 官方文档:入门教程 => 点击学习

摘要

一、项目简述 功能包括: 用户登录,设备管理,设备指派,贝附信息,信息公告, 信息维护,系统管理,图表统计等等功能。 二、项目运行 环境配置: jdk1.8 + Tomcat8.5

一、项目简述

功能包括: 用户登录,设备管理,设备指派,贝附信息,信息公告, 信息维护,系统管理,图表统计等等功能。

二、项目运行

环境配置: jdk1.8 + Tomcat8.5 + Mysql + Eclispe (IntelliJ idea,Eclispe,MyEclispe,Sts 都支持)

项目技术: jsP +spring + springMVC + mybatis + html+ CSS + javascript + Jquery + ajax + layui+ Maven等等。

基础信息操作:


基础信息操作:
 
@Controller
@RequestMapping("/baseInfos")
public class BaseInfoController {
 
    @Autowired
    private BaseInfoService baseInfoService;
    @Autowired
    private LogService logService;
 
    
    @RequestMapping("/type/list")
    public String listDeviceType(ModelMap map){
        List<DeviceType> typeList = baseInfoService.listDeviceType();
        map.put("typeList",typeList);
     return "deviceTypes::table-refresh";
    }
 
    
    @PostMapping("/type")
    @ResponseBody
    public int addtDeviceType(DeviceType deviceType){
        return baseInfoService.addtDeviceType(deviceType);
    }
 
    
    @DeleteMapping("/type/{typeId}")
    @ResponseBody
    public int delteDeviceTypByid(@PathVariable("typeId") String typeId){
        return baseInfoService.deleteDeviceTypeById(typeId);
    }
 
    
    @PutMapping("/type")
    @ResponseBody
    public int updateDeviceType(DeviceType deviceType){
        return baseInfoService.updateDeviceType(deviceType);
    }
 
    
    @RequestMapping("/brand/list")
    public String listDeviceBrand(ModelMap map){
        List<DeviceBrand> brandList = baseInfoService.listDeviceBrand();
        map.put("brandList",brandList);
        return "deviceBrands::table-refresh";
    }
 
    
    @PostMapping("/brand")
    @ResponseBody
    public int addtDeviceBrand(DeviceBrand deviceBrand){
        return baseInfoService.addtDeviceBrand(deviceBrand);
    }
 
    
    @DeleteMapping("/brand/{brandId}")
    @ResponseBody
    public int delteDeviceBrandByid(@PathVariable("brandId") String brandId){
        return baseInfoService.deleteDeviceBrandById(brandId);
    }
 
    
    @PutMapping("/brand")
    @ResponseBody
    public int updateDeviceBrand(DeviceBrand deviceBrand){
        return baseInfoService.updateDeviceBrand(deviceBrand);
    }
 
 
    
    @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";
    }
 
 
}

信息公告控制器代码:



@Controller
@RequestMapping("/notice")
public class NoticeController {
    @Autowired
    NoticeService noticeService;
 
    
    @GetMapping("/{id}")
    public String readContent(@PathVariable("id") String id,ModelMap map){
        Notice notice = noticeService.getNoticeById(id);
        map.put("notice",notice);
        return "noticeContent";
    }
 
    
    @GetMapping("/list")
    public String listAllNotice(ModelMap map){
        List<Notice> noticeList = noticeService.listAll();
        map.addAttribute("noticeList",noticeList);
        return "notice::table-refresh";
    }
 
 
    
    @PostMapping
    public String addNotice(Notice notice){
       noticeService.addNotice(notice);
        return "notice";
    }
 
 
    
    @DeleteMapping("/{id}")
    @ResponseBody
    public int deleteNotice(@PathVariable("id")String id){
        return noticeService.deleteNoticeById(id);
    }
 
}

以上就是Java 实战项目锤炼之IT设备固定资产管理系统的实现流程的详细内容,更多关于Java IT设备管理系统的资料请关注编程网其它相关文章!

--结束END--

本文标题: Java 实战项目锤炼之IT设备固定资产管理系统的实现流程

本文链接: https://www.lsjlt.com/news/157071.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作