智能仲裁后端服务

CaseAttachMapper.java 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package com.ruoyi.wisdomarbitrate.mapper;
  2. import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
  3. import com.ruoyi.wisdomarbitrate.domain.CaseAttach;
  4. import org.apache.ibatis.annotations.Mapper;
  5. import org.apache.ibatis.annotations.Param;
  6. import java.util.List;
  7. @Mapper
  8. public interface CaseAttachMapper {
  9. int save(CaseAttach caseAttach);
  10. int batchSave(@Param("list") List<CaseAttach> caseAttach);
  11. List<CaseAttach> queryAnnexPathByCaseId(Long id);
  12. List<CaseAttach> queryCaseAttachList(CaseApplication caseApplication);
  13. int updateCaseAttach(CaseAttach caseAttach);
  14. int updateCaseAttachBycaseid(CaseAttach caseAttach);
  15. int deleteByFileIds(@Param("ids") List<Long> fileIds);
  16. List<CaseAttach> getCaseAttachByCaseIdAndType(CaseAttach caseAttach);
  17. CaseAttach queryAnnexById(@Param("annexId")Long annexId);
  18. /**
  19. * 根据案件id和附件类型删除和上传类型
  20. * @param caseAppliId
  21. * @param annexType
  22. */
  23. void deleteByCasedIdAndType(@Param("caseAppliId")Long caseAppliId,@Param("annexType") int annexType,@Param("isBatchUpload") int isBatchUpload);
  24. void deleteCaseAttachByCasedIdAndType(@Param("caseAppliId")Long caseAppliId,@Param("annexType") int annexType);
  25. /**
  26. * 删除存在的附件不包括该附件
  27. * @param caseId 附件
  28. * @param type 附件类型
  29. * @param annexId 附件id
  30. */
  31. void deleteCaseAttach(@Param("caseId")Long caseId, @Param("type")int type,@Param("annexId") Long annexId);
  32. /**
  33. * 根据ids查询
  34. * @param fileIds
  35. * @return
  36. */
  37. List<CaseAttach> selectByIds(@Param("ids") List<String> fileIds);
  38. }