71 lines
1.4 KiB
Java
71 lines
1.4 KiB
Java
package com.rzdata.web.service;
|
|
|
|
import com.rzdata.web.domain.Attachment;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 附件Service接口
|
|
*
|
|
* @author panchichun
|
|
* @date 2024-08-28
|
|
*/
|
|
public interface IAttachmentService
|
|
{
|
|
/**
|
|
* 查询附件
|
|
*
|
|
* @param id 附件主键
|
|
* @return 附件
|
|
*/
|
|
public Attachment selectAttachmentById(String id);
|
|
|
|
/**
|
|
* 查询附件列表
|
|
*
|
|
* @param attachment 附件
|
|
* @return 附件集合
|
|
*/
|
|
public List<Attachment> selectAttachmentList(Attachment attachment);
|
|
|
|
/**
|
|
* 新增附件
|
|
*
|
|
* @param attachment 附件
|
|
* @return 结果
|
|
*/
|
|
public int insertAttachment(Attachment attachment);
|
|
|
|
/**
|
|
* 修改附件
|
|
*
|
|
* @param attachment 附件
|
|
* @return 结果
|
|
*/
|
|
public int updateAttachment(Attachment attachment);
|
|
public int updateAttachmentByBusinessId(Attachment attachment);
|
|
|
|
/**
|
|
* 批量删除附件
|
|
*
|
|
* @param ids 需要删除的附件主键集合
|
|
* @return 结果
|
|
*/
|
|
public int deleteAttachmentByIds(String[] ids);
|
|
|
|
/**
|
|
* 根据业务id批量删除
|
|
* @param businessIds
|
|
* @return
|
|
*/
|
|
public int deleteAttachmentByBusinessId(List<String> businessIds);
|
|
|
|
/**
|
|
* 删除附件信息
|
|
*
|
|
* @param id 附件主键
|
|
* @return 结果
|
|
*/
|
|
public int deleteAttachmentById(String id);
|
|
}
|