package com.rongwei.bsserver.sys.controller;


import com.rongwei.bscommon.sys.service.EquLubricationTaskManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * <p>
 * 设备子系统——润滑任务管理 前端控制器
 * </p>
 *
 * @author fpy
 * @since 2024-01-12
 */
@Controller
@RequestMapping("/equLubricationTaskManagement")
public class EquLubricationTaskManagementController {

    @Autowired
    private EquLubricationTaskManagementService equLubricationTaskManagementService;

    /**
     * 导出润滑计划标准
     * */
    @PostMapping("/wordExportLubricationTask")
    @ResponseBody
    public void wordExportLubricationTask(@RequestBody Map<String, Object> parameter, HttpServletResponse response){
        equLubricationTaskManagementService.wordExportLubricationTask(parameter,response);
    }

}

