package com.ycl.platform.mapper;
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.ycl.platform.domain.entity.YwUnit;
|
import com.ycl.platform.domain.query.DistributeWorkOrderQuery;
|
import com.ycl.platform.domain.vo.YwUnitVO;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* 运维单位 Mapper 接口
|
*
|
* @author xp
|
* @since 2024-03-04
|
*/
|
@Mapper
|
public interface YwUnitMapper extends BaseMapper<YwUnit> {
|
|
/**
|
* 运维单位列表统计
|
* @return 数据
|
*/
|
List<YwUnitVO> workList(@Param("query") DistributeWorkOrderQuery query);
|
|
/**
|
* 通过用户ID查找运维单位
|
*
|
* @param userId
|
* @return
|
*/
|
YwUnit getByUserId(Long userId);
|
|
/**
|
* 运维单位违规次数
|
* @return 数据
|
*/
|
List<Map<String, Object>> ywUnitCount();
|
}
|