package com.zjrs.zwnw.fxfk.bpo.impl;

import org.mohrss.leaf.core.framework.domain.bpo.impl.BPOImpl;
import com.zjrs.zwnw.fxfk.blo.YcywjkBLO;
import com.zjrs.zwnw.fxfk.bpo.YcywjkBPO;
import com.zjrs.zwnw.fxfk.dto.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import jakarta.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class YcywjkBPOimpl extends BPOImpl implements YcywjkBPO {
    private static final Logger LOG = LoggerFactory.getLogger(YcywjkBPOimpl.class);
    @Resource
    private YcywjkBLO ycywjkBLO;

    //业务量统计总接口
    public Map<String,Object> getAll(YcywTjInputDTO dto){
        Map<String, Object> resultMap = new HashMap<String, Object>();

        //超期办结业务量监控
        List<YcywCqbjjkOutputDTO> cqbjjklist = this.ycywjkBLO.getCqbjjk(dto);
        //经办机构超期办结业务量TOP5
        List<YcywTop5OutputDTO> top5list = this.ycywjkBLO.getTop5( dto);
        //在办超期业务统计
        List<YcywTop5OutputDTO> zbcqtjlist = this.ycywjkBLO.getZbcqtj( dto);
        //在办超期业务监控
        List<YcywZbcqjkOutputDTO> zbcqjklist =  this.ycywjkBLO.getZbcqjk( dto);
        //预警业务监控
        List<YcywZbcqjkOutputDTO> yjywjklist =  this.ycywjkBLO.getYjywjk( dto);

        resultMap.put("cqbjjkdata",cqbjjklist);
        resultMap.put("top5data",top5list);
        resultMap.put("zbcqtjdata",zbcqtjlist);
        resultMap.put("zbcqjkdata",zbcqjklist);
        resultMap.put("yjywjkdata",yjywjklist);

        return resultMap;
    }

}
