package com.junmp.jyzb.mapper;


import com.junmp.jyzb.api.bean.dto.largeScreenDto.*;
import com.junmp.jyzb.api.bean.dto.tjDto.FinalTjOrgCountDto;
import com.junmp.jyzb.api.bean.dto.tjDto.TjOrgCountDto;
import com.junmp.jyzb.api.bean.dto.tjDto.TjOrgEqsDto;
import com.junmp.jyzb.api.bean.query.tjReq.TjOrgCountReq;
import com.junmp.jyzb.entity.EquipmentCountSummary;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.junmp.jyzb.entity.InventorySummary;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author lxh专属坐骑
* @description 针对表【vie_equipment_count_summary】的数据库操作Mapper
* @createDate 2023-12-14 14:41:35
* @Entity com.junmp.jyzb.entity.EquipmentCountSummary
*/
public interface EquipmentCountSummaryMapper extends BaseMapper<EquipmentCountSummary> {



     TjOrgCountDto TjOrgCount(@Param("orgId") String orgId,
                             @Param("typeIdsList") List<String> typeIdsList,
                             @Param("sizeNameList") List<String> sizeNameList,
                             @Param("year")Integer year,
                             @Param("typeParentId")String typeParentId,
                             @Param("monthList") List<Integer> monthList,
                             @Param("typeName") String typeName);
//    List<TjOrgCountDto>  TjOrgCount1(@Param("orgId") String orgId,
//                                    @Param("typeIdsList") List<String> typeIdsList,
//                                    @Param("sizeNameList") List<String> sizeNameList,
//                                    @Param("year")Integer year,
//                                    @Param("typeParentId")String typeParentId,
//                                    @Param("monthList") List<Integer> monthList);
    TjOrgCountDto TjOrgCountleve4(@Param("orgId") Long orgId,
                                  @Param("typeIdsList") List<String> typeIdsList,
                                  @Param("sizeNameList") List<String> sizeNameList,
                                  @Param("year") Integer year,
                                  @Param("typeParentId")String typeParentId,
                                  @Param("monthList") List<Integer> monthList,
                                  @Param("levelFlag")Integer levelFlag,
                                  @Param("typeName") String typeName);

    TjOrgCountDto TjOrgCountSelf(@Param("orgId") Long orgId,
                                 @Param("typeIdsList") List<String> typeIdsList,
                                 @Param("sizeNameList") List<String> sizeNameList,
                                 @Param("year") Integer year,
                                 @Param("typeParentId")String typeParentId,
                                 @Param("monthList") List<Integer> monthList,
                                 @Param("typeName") String typeName);

    List<TjOrgCountDto> TjOrgCountTotalNum(@Param("orgId") Long orgId,
                                           @Param("typeIdsList") List<String> typeIdsList,
                                           @Param("sizeNameList") List<String> sizeNameList,
                                           @Param("year") Integer year,
                                           @Param("typeParentId")String typeParentId,
                                           @Param("monthList") List<Integer> monthList,
                                           @Param("levelNum")Integer levelNum,
                                           @Param("level")Integer level,
                                           @Param("column")String column,
                                           @Param("order")String order,
                                           @Param("levelFlag")Integer levelFlag,
                                           @Param("typeName") String typeName);
    List<TjOrgCountDto> TjOrgCountTotalDetail(@Param("orgId") Long orgId,
                                              @Param("typeIdsList") List<String> typeIdsList,
                                              @Param("sizeNameList") List<String> sizeNameList,
                                              @Param("year") Integer year,
                                              @Param("typeParentId")String typeParentId,
                                              @Param("monthList") List<Integer> monthList,
                                              @Param("levelNum")Integer levelNum,
                                              @Param("level")Integer level,
                                              @Param("column")String column,
                                              @Param("order")String order,
                                              @Param("typeName") String typeName);
//    List<TjOrgCountDto> TjOrgCountDetail(@Param("orgId") Long orgId,
//                                         @Param("typeIdsList") List<String> typeIdsList,
//                                         @Param("sizeNameList") List<String> sizeNameList,
//                                         @Param("year") Integer year,
//                                         @Param("typeParentId")String typeParentId,
//                                         @Param("monthList") List<Integer> monthList,
//                                         @Param("levelNum")Integer levelNum,
//                                         @Param("level")Integer level,
//                                         @Param("column")String column,
//                                         @Param("order")String order,
//                                         @Param("typeName") String typeName);

    FinalTjOrgCountDto TjOrgCountSum(@Param("orgId") Long orgId,
                                     @Param("sizeNameList") List<String> sizeNameList,
                                     @Param("typeIdsList") List<String> typeIdsList,
                                     @Param("year")Integer year,
                                     @Param("typeName") String typeName);


    List<TjOrgCountDto> TjOrgCountByType(@Param("req") TjOrgCountReq req);

    void setSizeName(@Param("sizeId") String id,@Param("sizeName") String name);

    void setTypeName(@Param("typeId") String id,@Param("typeName") String name);


    List<Top5Dto> GetTop5(@Param("req") TjOrgCountReq req,@Param("length")Integer length);

    List<GroupByCountDto> GetGroupByCount(@Param("req") TjOrgCountReq req,@Param("length")Integer length);

    List<InventorySummary> GetCount(@Param("req") TjOrgCountReq req, @Param("length")Integer length);

    List<String> getTypeParentName();

    List<AreaChildrenDto> getChildren(@Param("dto")TjOrgEqsDto dto,@Param("levelFlag") Integer levelFlag);

    List<Integer> GetSyWxBf(@Param("req") TjOrgCountReq req,@Param("length")Integer length,@Param("num") Integer num);

    TjOrgDto GetPageOrgTj(@Param("req") TjOrgCountReq req);

    List<ContentDto> getBydetail(@Param("req") TjOrgCountReq req);

    List<ContentChildrenDto> getByChildren(@Param("dto") ContentDto dto);
}




