whycxzp
2023-04-13 d260e910afa92253dfab4b223833ed69eb055256
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
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.pojo.UserInf;
import com.whyc.pojo.WorksheetMain;
import com.whyc.service.WorksheetMainService;
import com.whyc.util.ActionUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
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.web.bind.annotation.RestController;
 
import java.io.IOException;
 
/**
 * @author perryhsu
 * @date 2022/12/17 22:13
 */
 
@RestController
@RequestMapping("worksheetMain")
@Api(tags = "工单主单")
public class WorksheetMainController {
 
    @Autowired
    private WorksheetMainService service;
 
    /**没有使用*/
    @PostMapping("alarmFlowSubmit")
    @ApiOperation(value = "告警工单提交")
    @Deprecated
    public Response alarmFlowSubmit(@RequestBody WorksheetMain main) {
        UserInf user = ActionUtil.getUser();
        return service.alarmFlowSubmit(main,user);
    }
 
 
}