2023-11-22 13:58:34 +08:00
|
|
|
package com.ruoyi.wisdomarbitrate.mapper;
|
|
|
|
|
|
|
|
|
|
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
|
|
|
|
|
import com.ruoyi.wisdomarbitrate.domain.vo.UpdateSubmitVO;
|
|
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @author wangqiong
|
|
|
|
|
* @description 案件日志
|
|
|
|
|
* @date 2023-11-17 14:05
|
|
|
|
|
*/
|
|
|
|
|
@Repository
|
|
|
|
|
public interface CaseApplicationLogMapper {
|
|
|
|
|
int insert(CaseApplication caseApplicationLog);
|
|
|
|
|
|
|
|
|
|
int deleteById(Long id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CaseApplication selectByCaseIdAndVersion(@Param("caseAppliId")long caseAppliId,@Param("version") int version);
|
|
|
|
|
|
|
|
|
|
Integer selectMaxVersionByCaseId(@Param("caseAppliId")long caseAppliId);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 修改日志表状态
|
|
|
|
|
* @param vo
|
|
|
|
|
*/
|
|
|
|
|
void updateStatus(UpdateSubmitVO vo);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据案件id查询秘书角色最新版本号
|
|
|
|
|
* @param id
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
Integer selectMaxVersionBySecret(@Param("caseAppliId")Long id);
|
|
|
|
|
|
|
|
|
|
/**
|
2023-12-20 09:15:28 +08:00
|
|
|
* 删除日志
|
2023-11-22 13:58:34 +08:00
|
|
|
* @param ids
|
|
|
|
|
*/
|
|
|
|
|
void batchDeleteLog(@Param("ids") List<Long> ids);
|
|
|
|
|
|
2023-11-23 22:51:29 +08:00
|
|
|
CaseApplication selectBeforeCase(@Param("caseId") Long caseId, @Param("version")Integer version);
|
2023-12-12 16:22:41 +08:00
|
|
|
|
|
|
|
|
Integer batchSave(@Param("list")List<CaseApplication> caseApplications);
|
2023-12-20 09:15:28 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据案件id查询所有的日志id
|
|
|
|
|
* @param ids
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<Long> selectLogsByCaseIds(@Param("ids")List<Long> ids);
|
2023-11-22 13:58:34 +08:00
|
|
|
}
|