whyclxw
2025-04-25 92d5abeefe20770dbc37bdf68097dd3bfcd1673f
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
package com.whyc.controller;
 
import com.whyc.dto.LockAlmHisDto;
import com.whyc.dto.Response;
import com.whyc.pojo.plus_user.UserInf;
import com.whyc.service.LockAlarmHisService;
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.*;
 
import java.text.ParseException;
 
@RestController
@Api(tags = "告警历史管理")
@RequestMapping("lockAlmHis")
public class LockAlarmHisController {
    @Autowired
    private LockAlarmHisService service;
    @ApiOperation("查询锁告警的历史状态")
    @PostMapping("getLockAlmHis")
    public Response getLockAlmHis(@RequestBody LockAlmHisDto almHisDto) throws ParseException, InterruptedException {
        UserInf uinf= ActionUtil.getUser();
        almHisDto.setUid(uinf.getUid());
        Response res=service.getLockAlmHis(almHisDto);
        return res;
    }
}