whyclxw
2021-12-14 fe979a8afaf86f0bb12d19aea6b4a404d994ad44
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
package com.whyc.service;
 
import com.github.pagehelper.PageInfo;
import com.whyc.dto.Response;
import com.whyc.mapper.PwrdevAlarmParamMapper;
import com.whyc.pojo.PwrdevTimeOutAlarm;
import com.whyc.pojo.UserInf;
import com.whyc.util.ActionUtil;
import org.springframework.stereotype.Service;
 
import javax.annotation.Resource;
import java.util.List;
 
@Service
public class PwrdevAlarmParamService {
 
    @Resource
    private PwrdevAlarmParamMapper mapper;
 
    //通信电源告警规则--查询
    public Response getAllPage(int powerDeviceId) {
        List list=mapper.getAllPage(powerDeviceId);
        PageInfo pageInfo=new PageInfo(list);
        return  new Response().set(1,pageInfo);
    }
}