package com.ruoyi.wisdomarbitrate.mapper; import com.ruoyi.wisdomarbitrate.domain.CaseApplication; import com.ruoyi.wisdomarbitrate.domain.CaseAttach; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; @Mapper public interface CaseAttachMapper { int save(CaseAttach caseAttach); int batchSave(@Param("list") List caseAttach); List queryAnnexPathByCaseId(Long id); List queryCaseAttachList(CaseApplication caseApplication); int updateCaseAttach(CaseAttach caseAttach); int updateCaseAttachBycaseid(CaseAttach caseAttach); int deleteByFileIds(@Param("ids") List fileIds); List getCaseAttachByCaseIdAndType(CaseAttach caseAttach); CaseAttach queryAnnexById(Integer annexId); /** * 根据案件id和附件类型删除和上传类型 * @param caseAppliId * @param annexType */ void deleteByCasedIdAndType(@Param("caseAppliId")Long caseAppliId,@Param("annexType") int annexType,@Param("isBatchUpload") int isBatchUpload); }