package com.yifu.cloud.plus.v1.batch.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.batch.entity.TAttaInfo;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;

import java.util.List;

/**
 * 附件信息表
 *
 * @author pwang
 * @date 2021-02-19 16:16:07
 */
public interface TAttaInfoService extends IService<TAttaInfo> {

	/**
	 * @param domainId 关联id
	 * @Description: 根据domainId获取附件
	 * @Author: huych
	 * @Date: 2025/12/17 18:23
	 * @return: java.util.List<com.yifu.cloud.plus.v1.yifu.archives.entity.TAttaInfo>
	 **/
	List<TAttaInfo> getTAttaInfoListByDoMainId(String domainId);

    Boolean updateDomainId(String domainId, List<String> ids);

	/**
	 * @param applyId
	 * @Description: 收入证明使用
	 * @Author: hgw
	 * @Date: 2023/2/22 10:50
	 * @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.util.List < com.yifu.cloud.plus.v1.yifu.archives.entity.TAttaInfo>>
	 **/
	R<List<TAttaInfo>> getAttaByApplyId(String applyId);

	/**
	 * @param domainId 关联id
	 * @Description: 删除附件
	 * @Author: hgw
	 * @Date: 2024/6/20 14:50
	 * @return: void
	 **/
	void deleteByDomainId(String domainId);

	TAttaInfo add(TAttaInfo attaInfo);
}
