2023-09-13 19:08:38 +08:00
|
|
|
package com.ruoyi.wisdomarbitrate.mapper;
|
|
|
|
|
|
2023-09-26 14:52:17 +08:00
|
|
|
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
|
2023-09-13 19:08:38 +08:00
|
|
|
import com.ruoyi.wisdomarbitrate.domain.CaseAttach;
|
2023-10-31 19:15:46 +08:00
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
2023-10-19 14:05:15 +08:00
|
|
|
import org.apache.ibatis.annotations.Param;
|
2023-09-13 19:08:38 +08:00
|
|
|
|
2023-09-14 18:42:55 +08:00
|
|
|
import java.util.List;
|
|
|
|
|
|
2023-10-31 19:15:46 +08:00
|
|
|
@Mapper
|
2023-09-13 19:08:38 +08:00
|
|
|
public interface CaseAttachMapper {
|
|
|
|
|
int save(CaseAttach caseAttach);
|
2023-12-04 17:08:39 +08:00
|
|
|
int batchSave(@Param("list") List<CaseAttach> caseAttach);
|
2023-09-14 18:42:55 +08:00
|
|
|
|
2023-10-31 19:15:46 +08:00
|
|
|
List<CaseAttach> queryAnnexPathByCaseId(Long id);
|
2023-09-26 14:52:17 +08:00
|
|
|
|
|
|
|
|
List<CaseAttach> queryCaseAttachList(CaseApplication caseApplication);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int updateCaseAttach(CaseAttach caseAttach);
|
2023-10-15 10:16:48 +08:00
|
|
|
|
|
|
|
|
int updateCaseAttachBycaseid(CaseAttach caseAttach);
|
|
|
|
|
|
2024-05-14 16:54:42 +08:00
|
|
|
int deleteByFileIds(@Param("ids") List<Long> fileIds);
|
2023-10-31 19:15:46 +08:00
|
|
|
|
|
|
|
|
List<CaseAttach> getCaseAttachByCaseIdAndType(CaseAttach caseAttach);
|
2023-11-10 18:08:30 +08:00
|
|
|
|
2024-04-28 13:55:46 +08:00
|
|
|
CaseAttach queryAnnexById(@Param("annexId")Long annexId);
|
2023-11-23 20:39:35 +08:00
|
|
|
|
|
|
|
|
/**
|
2023-11-24 19:22:32 +08:00
|
|
|
* 根据案件id和附件类型删除和上传类型
|
2023-11-23 20:39:35 +08:00
|
|
|
* @param caseAppliId
|
|
|
|
|
* @param annexType
|
|
|
|
|
*/
|
2023-11-24 19:22:32 +08:00
|
|
|
void deleteByCasedIdAndType(@Param("caseAppliId")Long caseAppliId,@Param("annexType") int annexType,@Param("isBatchUpload") int isBatchUpload);
|
2023-12-12 11:49:48 +08:00
|
|
|
|
|
|
|
|
void deleteCaseAttachByCasedIdAndType(@Param("caseAppliId")Long caseAppliId,@Param("annexType") int annexType);
|
2024-05-10 17:48:42 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 删除存在的附件不包括该附件
|
|
|
|
|
* @param caseId 附件
|
|
|
|
|
* @param type 附件类型
|
|
|
|
|
* @param annexId 附件id
|
|
|
|
|
*/
|
|
|
|
|
void deleteCaseAttach(@Param("caseId")Long caseId, @Param("type")int type,@Param("annexId") Long annexId);
|
2024-05-29 13:41:49 +08:00
|
|
|
/**
|
|
|
|
|
* 根据ids查询
|
|
|
|
|
* @param fileIds
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<CaseAttach> selectByIds(@Param("ids") List<String> fileIds);
|
2023-09-13 19:08:38 +08:00
|
|
|
}
|