package com.unis.crk.hardware.service;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.unis.crk.basic.entity.BasicEnum;
import com.unis.crk.hardware.entity.Unithardware;
import com.baomidou.mybatisplus.extension.service.IService;
import com.unis.crk.hardware.entity.vo.UnithardwareVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 单位硬件管理表 服务类
 * </p>
 *
 * @author ghh
 * @since 2021-09-15
 */
public interface IUnithardwareService extends IService<Unithardware> {

    List<Unithardware> findDeviceType(String HIID, String filterIP, String unitId,Integer IsUsed);

    List<Unithardware> getAllByUnitId(String unitId);



    IPage<Map<String, Object>> getPageByUnitId(Page<Unithardware> objectPage, QueryWrapper<Unithardware> unithardwareQueryWrapper);

    List<Unithardware> getUnithardwareDropDown(UnithardwareVo unithardwareVo);

    JSONObject updataIsUsed(String id, String ip);
}
