36 lines
636 B
Java
36 lines
636 B
Java
package com.rzyc.mapper;
|
|
|
|
import com.rzyc.model.SparePart;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* <p>
|
|
* Mapper 接口
|
|
* </p>
|
|
*
|
|
* @author
|
|
* @since 2022-10-21
|
|
*/
|
|
@Repository
|
|
public interface SparePartMapper extends BaseMapper<SparePart> {
|
|
|
|
/**
|
|
* 查询共享备件
|
|
* @param name 备件名
|
|
* @return list
|
|
* */
|
|
List<SparePart>sparePartList(String name);
|
|
|
|
|
|
/**
|
|
* 修改共享备件
|
|
* @param sparePart 共享备件
|
|
* @return int
|
|
* */
|
|
int updateSparePart(SparePart sparePart);
|
|
|
|
}
|