package cn.ezhizao.project.business.equipment.service.impl;

import cn.ezhizao.project.business.equipment.domain.BizEquipmentCategory;
import cn.ezhizao.project.business.equipment.domain.BizEquipmentDetail;
import cn.ezhizao.project.business.equipment.mapper.BizEquipmentDetailMapper;
import cn.ezhizao.project.business.equipment.service.IBizEquipmentDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 设备档案Service业务层处理
 *
 * @author ezhizao
 * @date 2023-11-14
 */
@Service
public class BizEquipmentDetailServiceImpl  extends ServiceImpl<BizEquipmentDetailMapper, BizEquipmentDetail> implements IBizEquipmentDetailService
{
    @Resource
    private BizEquipmentDetailMapper bizEquipmentDetailMapper;

    /**
     * 查询设备档案列表
     *
     * @param bizEquipmentDetail 设备档案
     * @return 设备档案
     */
    @Override
    public List<BizEquipmentDetail> getList(BizEquipmentDetail bizEquipmentDetail)
    {
        return bizEquipmentDetailMapper.getList(bizEquipmentDetail);
    }

    /**
     * 物理删除
     * @param bizEquipmentDetail
     * @return 删除结果
     */
    @Override
    public int physicalDelete(BizEquipmentDetail bizEquipmentDetail){ return bizEquipmentDetailMapper.physicalDelete(bizEquipmentDetail); };

    /**
     * 查询调机设备档案列表
     *
     * @param bizEquipmentDetail 设备档案
     * @return 设备档案集合
     */
    @Override
    public List<BizEquipmentDetail> getResourceAllocationList(BizEquipmentDetail bizEquipmentDetail) {
        return  bizEquipmentDetailMapper.getResourceAllocationList(bizEquipmentDetail);
    }

    @Override
    public List<BizEquipmentDetail> getDetailsList(BizEquipmentDetail bizEquipmentDetail) {
        return bizEquipmentDetailMapper.getDetailsList(bizEquipmentDetail);
    }

    @Override
    public List<BizEquipmentCategory> getCategoryList(BizEquipmentCategory bizEquipmentDetail) {
        return bizEquipmentDetailMapper.getCategoryList(bizEquipmentDetail);
    }

}
