package cn.huge.module.ctuser.dao.mapper;
|
|
import cn.huge.base.common.dto.SelectTermDTO;
|
import cn.huge.module.ctuser.domain.po.CtUnit;
|
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: 2024-08-19 20:04:19
|
* @version 1.0.0
|
*/
|
@Repository
|
public interface CtUnitMapper extends BaseMapper<CtUnit>{
|
|
/**
|
* 更新对象
|
* @param entity 对象
|
*/
|
void updateCtUnit(@Param("entity") CtUnit entity);
|
|
/**
|
* 条件更新对象
|
* @param entity 对象
|
* @param terms 条件
|
*/
|
void updateCtUnitTerms(@Param("entity") CtUnit entity, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 根据编号物理删除
|
* @param id 查询条件集合
|
*/
|
void deleteCtUnit(@Param("id") String id);
|
|
/**
|
* 按条件查询结果集
|
* @param terms 查询条件集合
|
* @return List<CtUnit>
|
*/
|
List<CtUnit> 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<CtUnit>
|
*/
|
List<CtUnit> pageTerms(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 更新对象
|
* @param entity 对象
|
*/
|
void updateTerms(@Param("entity") CtUnit entity);
|
|
/**
|
* 更新调度规则指标目标组织名称
|
* @param unitName
|
* @param unitId
|
*/
|
void updateDispNormCauseTargetUnitName(@Param("unitName") String unitName, @Param("unitName") String unitId);
|
|
/**
|
* 查询某一单位下所有管辖单位
|
* @param unitId 单位编号
|
* @return String
|
*/
|
List<CtUnit> listAllChild(@Param("unitId") String unitId);
|
|
/**
|
*
|
* @param gridUnitId
|
* @return
|
*/
|
CtUnit selectUnitByGridId(@Param("gridUnitId") String gridUnitId);
|
|
/**
|
* 查询单位的树形结构
|
* @return List<SelectTermDTO>
|
*/
|
List<SelectTermDTO> listUnitSelectTerm();
|
|
/**
|
* 查询客户下的法院
|
* @param terms 条件集合
|
* @return List<SelectTermDTO>
|
*/
|
List<SelectTermDTO> listCourt(@Param("terms") Map<String, Object> terms);
|
}
|