package cn.com.victorysoft.business.cyyzs.dao;

import cn.com.victorysoft.business.cyyzs.entity.FailureReason;
import cn.com.victorysoft.business.cyyzs.entity.FailureReasonDetails;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Author TY
 * @Date: 2022/10/11 15:20
 */
@Mapper
@Repository
public interface FailureReasonDao {

    /**
     *
     * @param yclx
     * @param dwdm
     * @param dydm
     * @param gylx
     * @return
     */
    List<FailureReason> selectListGroupGylx(@Param("yclx") String yclx,@Param("dwdm") String dwdm,@Param("dydm") String dydm,@Param("gylx") String gylx);

    /**
     *
     * @param yclx
     * @param dwdm
     * @param dydm
     * @param gylx
     * @return
     */
    List<FailureReason> selectListGroupYclx(@Param("yclx") String yclx,@Param("dwdm") String dwdm,@Param("dydm") String dydm,@Param("gylx") String gylx);

    /**
     *
     * @param yclx
     * @param dwdm
     * @param dydm
     * @param jh
     * @param gylx
     * @return
     */
    List<FailureReasonDetails> selectDetails(@Param("yclx") String yclx,@Param("dwdm") String dwdm,@Param("dydm") String dydm,@Param("jh") String jh,@Param("gylx") String gylx);

    /**
     *
     * @param yclx
     * @param dwdm
     * @param dydm
     * @param gylx
     * @return
     */
    List<FailureReason> getBarData(@Param("yclx") String yclx, @Param("dwdm") String dwdm, @Param("dydm") String dydm, @Param("gylx") String gylx);

    /**
     *
     * @param yclx
     * @param dwdm
     * @param dydm
     * @param gylx
     * @return
     */
    Map<String, Object> getPieData(@Param("yclx") String yclx, @Param("dwdm") String dwdm, @Param("dydm") String dydm, @Param("gylx") String gylx);
}
