欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Java 實(shí)戰(zhàn)項(xiàng)目錘煉之IT設(shè)備固定資產(chǎn)管理系統(tǒng)的實(shí)現(xiàn)流程

 更新時(shí)間:2021年11月11日 15:22:23   作者:qq_1334611189  
讀萬(wàn)卷書不如行萬(wàn)里路,只學(xué)書上的理論是遠(yuǎn)遠(yuǎn)不夠的,只有在實(shí)戰(zhàn)中才能獲得能力的提升,本篇文章手把手帶你用Java+SSM+jsp+mysql+maven實(shí)現(xiàn)一個(gè)IT設(shè)備固定資產(chǎn)管理系統(tǒng),大家可以在過程中查缺補(bǔ)漏,提升水平

一、項(xiàng)目簡(jiǎn)述

功能包括: 用戶登錄,設(shè)備管理,設(shè)備指派,貝附信息,信息公告, 信息維護(hù),系統(tǒng)管理,圖表統(tǒng)計(jì)等等功能。

二、項(xiàng)目運(yùn)行

環(huán)境配置: Jdk1.8 + Tomcat8.5 + mysql + Eclispe (IntelliJ IDEA,Eclispe,MyEclispe,Sts 都支持)

項(xiàng)目技術(shù): JSP +Spring + SpringMVC + MyBatis + html+ css + JavaScript + JQuery + Ajax + layui+ maven等等。

基礎(chǔ)信息操作:

基礎(chǔ)信息操作:
 
@Controller
@RequestMapping("/baseInfos")
public class BaseInfoController {
 
    @Autowired
    private BaseInfoService baseInfoService;
    @Autowired
    private LogService logService;
 
    /**
     * 獲取所有設(shè)備類型信息
     * @param map
     * @return
     */
    @RequestMapping("/type/list")
    public String listDeviceType(ModelMap map){
        List<DeviceType> typeList = baseInfoService.listDeviceType();
        map.put("typeList",typeList);
     return "deviceTypes::table-refresh";
    }
 
    /**
     * 添加設(shè)備類型
     * @param deviceType
     * @return
     */
    @PostMapping("/type")
    @ResponseBody
    public int addtDeviceType(DeviceType deviceType){
        return baseInfoService.addtDeviceType(deviceType);
    }
 
    /**
     * 刪除設(shè)備類型
     * @param typeId
     * @return
     */
    @DeleteMapping("/type/{typeId}")
    @ResponseBody
    public int delteDeviceTypByid(@PathVariable("typeId") String typeId){
        return baseInfoService.deleteDeviceTypeById(typeId);
    }
 
    /**
     * 修改設(shè)備類型
     * @param deviceType
     * @return
     */
    @PutMapping("/type")
    @ResponseBody
    public int updateDeviceType(DeviceType deviceType){
        return baseInfoService.updateDeviceType(deviceType);
    }
 
    /**
     * 獲取所有設(shè)備品牌信息
     * @param map
     * @return
     */
    @RequestMapping("/brand/list")
    public String listDeviceBrand(ModelMap map){
        List<DeviceBrand> brandList = baseInfoService.listDeviceBrand();
        map.put("brandList",brandList);
        return "deviceBrands::table-refresh";
    }
 
    /**
     * 添加設(shè)備品牌
     * @param deviceBrand
     * @return
     */
    @PostMapping("/brand")
    @ResponseBody
    public int addtDeviceBrand(DeviceBrand deviceBrand){
        return baseInfoService.addtDeviceBrand(deviceBrand);
    }
 
    /**
     * 刪除設(shè)備品牌
     * @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);
    }
 
 
    /**
     * 獲取系統(tǒng)日志
     * @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";
    }
 
 
}

信息公告控制器代碼:

/**
 * 信息公告控制器
 * */
@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 實(shí)戰(zhàn)項(xiàng)目錘煉之IT設(shè)備固定資產(chǎn)管理系統(tǒng)的實(shí)現(xiàn)流程的詳細(xì)內(nèi)容,更多關(guān)于Java IT設(shè)備管理系統(tǒng)的資料請(qǐng)關(guān)注腳本之家其它相關(guān)文章!

相關(guān)文章

最新評(píng)論