package cn.huge.module.cases.dao.mapper;
|
|
import cn.huge.module.cases.domain.dto.*;
|
import cn.huge.module.cases.domain.po.CaseTask;
|
import cn.huge.module.sys.dto.FlowNodeBaseDTO;
|
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.Date;
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* @title: 纠纷任务表持久层业务处理
|
* @Description 此处仅涉及复杂SQL操作,务必不要在此再次写单表的CRUD操作,因为mybatisPlus已经实现。
|
* @company: hugeinfo
|
* @author: liyj
|
* @time: 2024-09-06 15:50:06
|
* @version 1.0.0
|
*/
|
@Repository
|
public interface CaseTaskMapper extends BaseMapper<CaseTask>{
|
|
/**
|
* 更新对象
|
* @param entity 对象
|
*/
|
void updateCaseTask(@Param("entity") CaseTask entity);
|
|
/**
|
* 批量更新对象
|
* @param entity 对象
|
* @param taskIdList
|
*/
|
void updateCaseTaskList(@Param("entity") CaseTask entity, @Param("taskIdList") List<String> taskIdList);
|
|
/**
|
* 条件更新对象
|
* @param entity 对象
|
* @param terms 条件
|
*/
|
void updateCaseTaskTerms(@Param("entity") CaseTask entity, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 根据编号物理删除
|
* @param id 查询条件集合
|
*/
|
void deleteCaseTask(@Param("id") String id);
|
|
/**
|
* 按条件查询结果集
|
* @param terms 查询条件集合
|
* @return List<CaseTask>
|
*/
|
List<CaseTask> listTerms(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 按条件查询实体总数
|
* @param terms 查询条件集合
|
* @return long
|
*/
|
long countTerms(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 按条件查询实体分页结果集
|
* @param page 分页对象
|
* @param terms 查询条件集合
|
* @return List<CaseTask>
|
*/
|
List<CaseTask> pageTerms(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 按条件查询实体总数
|
* @param terms 查询条件集合
|
* @return long
|
*/
|
FrontPageCountDTO countTaskList(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 全部查询
|
* */
|
List<FrontPageListAllDTO> pageMyTaskAll(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 全部查询统计
|
* @param terms 条件
|
* @return long
|
*/
|
long countMyTaskAll(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 首页-待/已分派条件统计
|
* @param terms 条件
|
* @return long
|
*/
|
long countMyTaskFp(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 首页-待/已分派分页查询
|
* @param page 分页对象
|
* @param terms 条件
|
* @return List<FrontPageListDTO>
|
*/
|
List<FrontPageListFPDTO> pageMyTaskFp(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 首页-待/已签收条件统计
|
* @param terms 条件
|
* @return long
|
*/
|
long countMyTaskQs(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 首页-待/已签收分页查询
|
* @param page 分页对象
|
* @param terms 条件
|
* @return List<FrontPageListDTO>
|
*/
|
List<FrontPageListQSDTO> pageMyTaskQs(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 全部签收-查询未签收所有Id
|
* @param terms 条件
|
* @return List<String>
|
*/
|
List<SignTaskDTO> listIdByTerms(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 首页-待/已受理条件统计
|
* @param terms 条件
|
* @return long
|
*/
|
long countMyTaskSl(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 首页-待/已受理分页查询
|
* @param page 分页对象
|
* @param terms 条件
|
* @return List<FrontPageListDTO>
|
*/
|
List<FrontPageListSLDTO> pageMyTaskSl(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 首页-待审核-我申请的条件统计
|
* @param terms 条件
|
* @return long
|
*/
|
long countMyTaskShWSQD(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 首页-待审核-我申请的分页查询
|
* @param page 分页对象
|
* @param terms 条件
|
* @return List<FrontPageListDTO>
|
*/
|
List<FrontPageListWSQDDTO> pageMyTaskShWSQD(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 首页-办理中条件统计
|
* @param terms 条件
|
* @return long
|
*/
|
long countMyTaskBlz(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 首页-办理中分页查询
|
* @param page 分页对象
|
* @param terms 条件
|
* @return List<FrontPageListDTO>
|
*/
|
List<FrontPageListBLZDTO> pageMyTaskBlz(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* web端-工作台-已办事项条件统计
|
* @param terms 条件
|
* @return long
|
*/
|
long countMyTaskYb(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* web端-工作台-已办事项分页查询
|
* @param page 分页对象
|
* @param terms 条件
|
* @return List<FrontPageListDTO>
|
*/
|
List<FrontPageListYBDTO> pageMyTaskYb(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 根据编号物理删除
|
* @param caseId
|
*/
|
void deleteByCaseId(@Param("caseId") String caseId);
|
|
/**
|
* 查询工作流节点
|
* @param flowId 流程id
|
* @param nodeId 节点id
|
* @return FlowNodeBaseDTO
|
*/
|
FlowNodeBaseDTO getNodeByFlowAndNode(@Param("flowId") String flowId, @Param("nodeId") String nodeId);
|
|
int deleteCaseTaskByCaseId(@Param("caseId") String caseId,@Param("updateTime") Date updateTime);
|
|
|
/**
|
* 已办事项-已分派
|
* @param terms 条件
|
* @return long
|
*/
|
long countYbDispatch(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 已办事项-已分派
|
* @param terms 条件
|
* @return long
|
*/
|
long countYbAccept(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 已办事项-已分派
|
* @param terms 条件
|
* @return long
|
*/
|
long countYbClosed(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 已办事项-已审核数量
|
* @param terms 条件
|
* @return long
|
*/
|
long countYbAudit(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 已办事项-督办数量
|
* @param terms 条件
|
* @return long
|
*/
|
long countYbSupervise(@Param("terms") Map<String, Object> terms);
|
|
}
|