fg电池监控平台的达梦数据库版本
whycxzp
2024-11-11 1443158933f220613b43f18a2108a552ea9f1aff
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
package com.whyc.service;
 
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.github.pagehelper.PageInfo;
import com.whyc.dto.Response;
import com.whyc.mapper.Ess3100SysstateMapper;
import com.whyc.pojo.Ess3100Sysstate;
import com.whyc.util.ActionUtil;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
 
import javax.annotation.Resource;
import java.util.List;
 
@Service
public class Ess3100SysstateService {
    @Resource
    private Ess3100SysstateMapper mapper;
 
    //查询所有的系统状态信息
    @Transactional
    public Response searchAll() {
        List list=mapper.selectList((Wrapper<Ess3100Sysstate>) ActionUtil.objeNull);
        PageInfo pageInfo=new PageInfo(list);
        return new Response().setII(1,list.size()>0?true:false,pageInfo,"");
    }
}