EquipmentBindSparepartMapper.java 919 字节
package com.skua.modules.equipment.mapper;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.skua.modules.equipment.entity.EquipmentSparepart;
import org.apache.ibatis.annotations.Param;
import com.skua.modules.equipment.entity.EquipmentBindSparepart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * 设备关联备品备件
 */
public interface EquipmentBindSparepartMapper extends BaseMapper<EquipmentBindSparepart> {

    /**
     * 删除
     * @param equipmentId
     */
    public void delByEquipmentId(@Param("equipmentId") String equipmentId);

    /***
     * 根据设备台账编号,查询关联的备品备件
     * @param equipmentId
     * @return
     */
    public IPage<EquipmentSparepart> querySparepartListByEquipmentId(Page<EquipmentSparepart> page, @Param("equipmentId") String equipmentId);

}