package cn.huge.module.meet.dao.mapper;
|
|
import cn.huge.module.meet.domain.po.MeetInfo;
|
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-03-28 12:02:57
|
* @version 1.0.0
|
*/
|
@Repository
|
public interface MeetInfoMapper extends BaseMapper<MeetInfo>{
|
|
/**
|
* 更新对象
|
* @param entity 对象
|
*/
|
void updateMeetInfo(@Param("entity") MeetInfo entity);
|
|
/**
|
* 条件更新对象
|
* @param entity 对象
|
* @param terms 条件
|
*/
|
void updateMeetInfoTerms(@Param("entity") MeetInfo entity, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 根据编号物理删除
|
* @param id 查询条件集合
|
*/
|
void deleteMeetInfo(@Param("id") String id);
|
|
/**
|
* 按条件查询结果集
|
* @param terms 查询条件集合
|
* @return List<MeetInfo>
|
*/
|
List<MeetInfo> 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<MeetInfo>
|
*/
|
List<MeetInfo> pageTerms(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 查询未结束的预约会议信息
|
* @param userId 用户编号
|
* @param meetType 会议类型
|
* @return List<MeetInfo>
|
*/
|
List<MeetInfo> listIngByUserAndMeetType(@Param("userId") String userId, @Param("meetType") String meetType);
|
|
/**
|
* 查询未结束的预约会议信息
|
* @param userId 用户编号
|
* @return List<MeetInfo>
|
*/
|
List<MeetInfo> listIngByUser(@Param("userId") String userId);
|
|
/**
|
* 查询未结束的预约调解会议信息
|
* @param userId 用户编号
|
* @return List<MeetInfo>
|
*/
|
List<MeetInfo> listCaseIngByUser(@Param("userId") String userId);
|
|
/**
|
* 查询未结束的预约司法确认会议信息
|
* @param userId 用户编号
|
* @return List<MeetInfo>
|
*/
|
List<MeetInfo> listJudicIngByUser(@Param("userId") String userId);
|
|
}
|