package com.yeejoin.equipmanage.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.biz.common.dto.OrgMenuDto;
import com.yeejoin.equipmanage.common.entity.EquProperty;
import com.yeejoin.equipmanage.common.entity.EquipmentDetail;

import java.util.List;

/**
 * 服务类
 *
 * @author wujiang
 * @date 2020-07-07
 */
public interface IEquipmentDetailService extends IService<EquipmentDetail> {

	EquipmentDetail saveOne(EquipmentDetail equipmentDetail);

	boolean updateOneById(Long id, EquipmentDetail equipmentDetail);

	Page<EquipmentDetail> page(Page<EquipmentDetail> pageBean, EquipmentDetail equipmentDetail);

	EquipmentDetail getOneById(long id);

	boolean removeOneById(long id);

	Page<EquipmentDetail> page(Page<EquipmentDetail> pageBean, String category);
	
	boolean removeBatchById(List<Long> idList);
	boolean quotaUpdate( List<EquProperty> e);

	String getPref(String id);

	String checkDelete( List<Long> ids);

	List<OrgMenuDto> companyDeptTree();
	List<OrgMenuDto> companyDeptTreeTJ();
}
