package cn.huge.module.casebook.dao.mapper;
|
|
import cn.huge.module.casebook.domain.dto.CaseBookPageDTO;
|
import cn.huge.module.casebook.domain.po.CasebookInfo;
|
import cn.huge.module.cust.dto.CtUserDTO;
|
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: dyh_casebook_info持久层业务处理
|
* @Description 此处仅涉及复杂SQL操作,务必不要在此再次写单表的CRUD操作,因为mybatisPlus已经实现。
|
* @company: hugeinfo
|
* @author: liyj
|
* @time: 2024-10-26 12:31:22
|
* @version 1.0.0
|
*/
|
@Repository
|
public interface CasebookInfoMapper extends BaseMapper<CasebookInfo>{
|
|
/**
|
* 更新对象
|
* @param entity 对象
|
*/
|
void updateCasebookInfo(@Param("entity") CasebookInfo entity);
|
|
/**
|
* 条件更新对象
|
* @param entity 对象
|
* @param terms 条件
|
*/
|
void updateCasebookInfoTerms(@Param("entity") CasebookInfo entity, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 根据编号物理删除
|
* @param id 查询条件集合
|
*/
|
void deleteCasebookInfo(@Param("id") String id);
|
|
/**
|
* 按条件查询结果集
|
* @param terms 查询条件集合
|
* @return List<CasebookInfo>
|
*/
|
List<CasebookInfo> 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<CasebookInfo>
|
*/
|
List<CasebookInfo> pageTerms(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 统计-导入草稿
|
* @param terms 查询条件集合
|
* @return long
|
*/
|
long countImportDraft(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 条件分页查询-导入草稿
|
* @param page 分页对象
|
* @param terms 查询条件集合
|
* @return List<CasebookInfo>
|
*/
|
List<CaseBookPageDTO> pageImportDraft(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 条件查询-导入草稿
|
* @param terms 查询条件集合
|
* @return List<CasebookInfo>
|
*/
|
List<CaseBookPageDTO> listImportDraft(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 统计-导入成功
|
* @param terms 查询条件集合
|
* @return long
|
*/
|
long countImportSuc(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 条件分页查询-导入成功
|
* @param page 分页对象
|
* @param terms 查询条件集合
|
* @return List<CasebookInfo>
|
*/
|
List<CaseBookPageDTO> pageImportSuc(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 根据名称查询用户
|
* @param userName
|
* @return
|
*/
|
List<CtUserDTO> listUserByName(@Param("userName") String userName, @Param("unitId") String unitId);
|
}
|