TBoxOperationServiceImpl.java 1.5 KB
Newer Older
wzp's avatar
wzp committed
1 2 3 4
package cn.wisenergy.chnmuseum.party.service.impl;

import cn.wisenergy.chnmuseum.party.model.TBoxOperation;
import cn.wisenergy.chnmuseum.party.mapper.TBoxOperationMapper;
wzp's avatar
wzp committed
5
import cn.wisenergy.chnmuseum.party.model.TUser;
wzp's avatar
wzp committed
6
import cn.wisenergy.chnmuseum.party.service.TBoxOperationService;
wzp's avatar
wzp committed
7
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
wzp's avatar
wzp committed
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
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * <pre>
 * 机顶盒运维信息 服务实现类
 * </pre>
 *
 * @author Danny Lee
 * @since 2021-03-25
 */
@Slf4j
@Service
public class TBoxOperationServiceImpl extends ServiceImpl<TBoxOperationMapper, TBoxOperation> implements TBoxOperationService {

    @Autowired
    private TBoxOperationMapper tBoxOperationMapper;

    @Override
wzp's avatar
wzp committed
33 34
    public List<TBoxOperation> getList(String status, String areaId) {
        return tBoxOperationMapper.getList(status, areaId);
wzp's avatar
wzp committed
35
    }
wzp's avatar
wzp committed
36 37 38

    @Override
    public Page<TBoxOperation> selectBoxPage(Page<TBoxOperation> page, TUser user) {
wzp's avatar
wzp committed
39 40
        return page.setRecords(tBoxOperationMapper.selectBoxPage(page, user));
    }
wzp's avatar
wzp committed
41 42 43 44 45

    @Override
    public Page<TBoxOperation> selectPage(Page<TBoxOperation> page, TBoxOperation tBoxOperation) {
        return page.setRecords(tBoxOperationMapper.selectPageList(page, tBoxOperation));
    }
wzp's avatar
wzp committed
46
}
wzp's avatar
wzp committed
47