package cn.huge.module.judic.dao.mapper;
|
|
import cn.huge.module.cases.domain.dto.CasePageDTO;
|
import cn.huge.module.judic.domain.dto.*;
|
import cn.huge.module.judic.domain.po.JudicInfo;
|
import cn.huge.module.judic.domain.po.JudicTask;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import org.apache.ibatis.annotations.Param;
|
import org.springframework.data.domain.PageRequest;
|
import org.springframework.stereotype.Repository;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* @title: 司法确认信息表持久层业务处理
|
* @Description 此处仅涉及复杂SQL操作,务必不要在此再次写单表的CRUD操作,因为mybatisPlus已经实现。
|
* @company: hugeinfo
|
* @author: liyj
|
* @time: 2022-04-18 10:40:03
|
* @version 1.0.0
|
*/
|
@Repository
|
public interface JudicInfoMapper extends BaseMapper<JudicInfo>{
|
|
/**
|
* 更新对象
|
* @param entity 对象
|
*/
|
void updateJudicInfo(@Param("entity") JudicInfo entity);
|
|
/**
|
* 条件更新对象
|
* @param entity 对象
|
* @param terms 条件
|
*/
|
void updateJudicInfoTerms(@Param("entity") JudicInfo entity, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 根据编号物理删除
|
* @param id 查询条件集合
|
*/
|
void deleteJudicInfo(@Param("id") String id);
|
|
/**
|
* 按条件查询结果集
|
* @param terms 查询条件集合
|
* @return List<JudicInfo>
|
*/
|
List<JudicInfo> listTerms(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 按条件查询结果集
|
* @return JudicInfo
|
*/
|
JudicInfo getById(@Param("id") String id);
|
|
/**
|
* 按条件查询实体总数
|
* @param terms 查询条件集合
|
* @return long
|
*/
|
long countTerms(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 按条件查询实体分页结果集
|
* @param page 分页对象
|
* @param terms 查询条件集合
|
* @return List<JudicInfo>
|
*/
|
List<JudicInfo> pageTerms(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 调解组织司法确认申请列表-统计
|
* @param terms 查询条件集合
|
* @return long
|
*/
|
long countUnitApplyTerms(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 查询调解组织司法确认申请列表各种状态数量
|
* @param terms 查询条件集合
|
* @return long
|
*/
|
Map<String, Object> countUnitApplyByStatus(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 查询平台内调解成功案件-查询实体总数
|
* @param terms 查询条件集合
|
* @return long
|
*/
|
long countSuccessCaseTerms(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 查询平台内调解成功案件-查询实体分页结果集
|
* @param page 分页对象
|
* @param terms 查询条件集合
|
* @return List<SuccessCasePageDTO>
|
*/
|
List<CaseJudicPageDTO> pageSuccessCaseTerms(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 司法确认总览列表-统计
|
* @param terms 查询条件集合
|
* @return long
|
*/
|
long countJudicTotalTerms(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 工作台-统计案件数量
|
* @return
|
*/
|
Map<String, Long> countProcess(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 工作台-工作统计(近一年的数据)
|
* @return
|
*/
|
List<Map<String, Object>> countOneYear(@Param("terms") Map<String, Object> terms);
|
|
|
/**
|
* 当事人小程序我的司法确认-查询实体总数
|
* @param terms 查询条件集合
|
* @return long
|
*/
|
long countWechatMyJudicTerms(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 司法确认申请审查列表-统计
|
* @param terms 查询条件集合
|
* @return long
|
*/
|
long countCourtAuditTerms(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 司法确认申请审查列表-分页查询
|
* @param page 分页对象
|
* @param terms 查询条件集合
|
* @return List<UnitApplyPageDTO>
|
*/
|
List<CaseJudicPageDTO> pageCourtAuditTerms(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 司法确认申请审查列表-统计
|
* @param terms 查询条件集合
|
* @return long
|
*/
|
long countCourtConfirmTerms(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 司法确认申请审查列表-分页查询
|
* @param page 分页对象
|
* @param terms 查询条件集合
|
* @return List<UnitApplyPageDTO>
|
*/
|
List<CaseJudicPageDTO> pageCourtConfirmTerms(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
JudicInfo getCopyJudicInfo(@Param("caseId") String caseId);
|
|
List<String> listIdByCaseId(@Param("caseId") String caseId);
|
|
}
|