package cn.iocoder.yudao.module.pms.service.yanfan;

import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
import cn.iocoder.yudao.module.pms.controller.admin.yanfan.vo.ThingsModelPageReqVO;
import cn.iocoder.yudao.module.pms.controller.admin.yanfan.vo.ThingsModelSaveReqVO;
import cn.iocoder.yudao.module.pms.dal.dataobject.yanfan.ThingsModelDO;
import cn.iocoder.yudao.module.pms.dal.mysql.yanfan.ThingsModelMapper;
import com.baomidou.dynamic.datasource.annotation.Slave;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.transaction.annotation.Transactional;

import java.util.*;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;


import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;

/**
 * 物模型 Service 实现类
 *
 * @author 李鹏辉
 */
@Service
@Validated
public class ThingsModelServiceImpl implements ThingsModelService {

    @Resource
    private ThingsModelMapper thingsModelMapper;


    @Override
    @Slave
    @TenantIgnore
    public List<ThingsModelDO> selectList(String column, String value) {
        return thingsModelMapper.selectList(column, value);
    }

    @Override
    public ThingsModelDO getThingsModel(Long id) {
        return thingsModelMapper.selectById(id);
    }

    @Override
    public PageResult<ThingsModelDO> getThingsModelPage(ThingsModelPageReqVO pageReqVO) {
        return thingsModelMapper.selectPage(pageReqVO);
    }

}
