package com.doumee.service.business;
|
|
import com.doumee.core.model.LoginUserInfo;
|
import com.doumee.core.model.PageData;
|
import com.doumee.core.model.PageWrap;
|
import com.doumee.dao.business.model.YwMaterial;
|
import org.springframework.web.multipart.MultipartFile;
|
|
import java.util.List;
|
|
/**
|
* 运维资产信息表Service定义
|
* @author 江蹄蹄
|
* @date 2025/01/06 11:05
|
*/
|
public interface YwMaterialService {
|
|
/**
|
* 创建
|
*
|
* @param ywMaterial 实体对象
|
* @return Integer
|
*/
|
Integer create(YwMaterial ywMaterial);
|
|
/**
|
* 主键删除
|
*
|
* @param id 主键
|
*/
|
void deleteById(Integer id);
|
|
/**
|
* 删除
|
*
|
* @param ywMaterial 实体对象
|
*/
|
void delete(YwMaterial ywMaterial);
|
|
/**
|
* 批量主键删除
|
*
|
* @param ids 主键集
|
*/
|
void deleteByIdInBatch(List<Integer> ids);
|
|
/**
|
* 主键更新
|
*
|
* @param ywMaterial 实体对象
|
*/
|
void updateById(YwMaterial ywMaterial);
|
|
/**
|
* 批量主键更新
|
*
|
* @param ywMaterials 实体集
|
*/
|
void updateByIdInBatch(List<YwMaterial> ywMaterials);
|
|
void updateStatus(YwMaterial ywMaterials);
|
|
/**
|
* 主键查询
|
*
|
* @param id 主键
|
* @return YwMaterial
|
*/
|
YwMaterial findById(Integer id);
|
|
/**
|
* 条件查询单条记录
|
*
|
* @param ywMaterial 实体对象
|
* @return YwMaterial
|
*/
|
YwMaterial findOne(YwMaterial ywMaterial);
|
|
/**
|
* 条件查询
|
*
|
* @param ywMaterial 实体对象
|
* @return List<YwMaterial>
|
*/
|
List<YwMaterial> findList(YwMaterial ywMaterial);
|
|
/**
|
* 分页查询
|
*
|
* @param pageWrap 分页对象
|
* @return PageData<YwMaterial>
|
*/
|
PageData<YwMaterial> findPage(PageWrap<YwMaterial> pageWrap);
|
|
/**
|
* 条件统计
|
*
|
* @param ywMaterial 实体对象
|
* @return long
|
*/
|
long count(YwMaterial ywMaterial);
|
|
YwMaterial getDetail(Integer id);
|
|
Integer importMaterialBatch(MultipartFile file, LoginUserInfo loginUserInfo);
|
}
|