package com.zksy.base.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zksy.base.domain.EquipmentMaintain;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface EquipmentMaintainService extends IService<EquipmentMaintain> {
    Page<EquipmentMaintain> findByPage(long pageNum, long pageSize,
                                       String maintainId,String equipmentId,
                                       String maintainType,String maintainPerson);

    /**
     * 新增设备维护记录
     * @param entity
     * @return
     */
    boolean saveWithCheck(EquipmentMaintain entity);

    /**
     * 批量新增设备维护记录
     * @param entityList
     * @return
     */
    boolean saveBatchWithCheck(List<EquipmentMaintain> entityList);

    /**
     * 修改设备维护记录
     * @param entity
     * @return
     */
    boolean updateWithCheck(EquipmentMaintain entity);
}
