package org.dromara.qa.md.service;
|
|
import org.dromara.qa.md.domain.vo.MdInstrumentVo;
|
import org.dromara.qa.md.domain.bo.MdInstrumentBo;
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
import java.util.Collection;
|
import java.util.List;
|
|
/**
|
* 测量仪器Service接口
|
*
|
* @author zhuguifei
|
* @date 2026-03-18
|
*/
|
public interface IMdInstrumentService {
|
|
/**
|
* 查询测量仪器
|
*
|
* @param id 主键
|
* @return 测量仪器
|
*/
|
MdInstrumentVo queryById(String id);
|
|
/**
|
* 分页查询测量仪器列表
|
*
|
* @param bo 查询条件
|
* @param pageQuery 分页参数
|
* @return 测量仪器分页列表
|
*/
|
TableDataInfo<MdInstrumentVo> queryPageList(MdInstrumentBo bo, PageQuery pageQuery);
|
|
/**
|
* 查询符合条件的测量仪器列表
|
*
|
* @param bo 查询条件
|
* @return 测量仪器列表
|
*/
|
List<MdInstrumentVo> queryList(MdInstrumentBo bo);
|
|
/**
|
* 新增测量仪器
|
*
|
* @param bo 测量仪器
|
* @return 是否新增成功
|
*/
|
Boolean insertByBo(MdInstrumentBo bo);
|
|
/**
|
* 修改测量仪器
|
*
|
* @param bo 测量仪器
|
* @return 是否修改成功
|
*/
|
Boolean updateByBo(MdInstrumentBo bo);
|
|
/**
|
* 校验并批量删除测量仪器信息
|
*
|
* @param ids 待删除的主键集合
|
* @param isValid 是否进行有效性校验
|
* @return 是否删除成功
|
*/
|
Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);
|
}
|