import request from '@/utils/request'
// 查询柱形图表数据
export function ColumnList(query) {
    return request({
      url: '/inspection/report/ColumnList',
      method: 'get',
      params: query
    })
  }

  // 查询园形图表数据
export function RoundList(query) {
    return request({
      url: '/inspection/report/RoundList',
      method: 'get',
      params: query
    })
  }

  // 查询总条数
  export function listTotal(query) {
    return request({
      url: '/inspection/report/total',
      method: 'get',
      params: query
    })
  }

    // 查询本月总条数
    export function listmonthTotal(query) {
        return request({
          url: '/inspection/report/monthTotal',
          method: 'get',
          params: query
        })
      }

// 按天趋势统计
export function trendDaily(query) {
  return request({
    url: '/inspection/report/trendDaily',
    method: 'get',
    params: query
  })
}

// 新增：按天双序列
export function trendDailyDual(query) {
  return request({
    url: '/inspection/report/trendDailyDual',
    method: 'get',
    params: query
  })
}

// 新增：按月双序列
export function trendMonthlyDual(query) {
  return request({
    url: '/inspection/report/trendMonthlyDual',
    method: 'get',
    params: query
  })
}

// 巡检类型占比
export function typeProportion(query) {
  return request({
    url: '/inspection/report/typeProportion',
    method: 'get',
    params: query
  })
}

// 覆盖率统计
export function coverage(query) {
  return request({
    url: '/inspection/report/coverage',
    method: 'get',
    params: query
  })
}

// 未巡检点清单
export function uninspectedPoints(query) {
  return request({
    url: '/inspection/report/uninspectedPoints',
    method: 'get',
    params: query
  })
}

// 点位类型已巡检次数（distinct）
export function pointTypeCounts(query) {
  return request({
    url: '/inspection/report/pointTypeCounts',
    method: 'get',
    params: query
  })
}

// 点位状态分布
export function statusDistribution() {
  return request({
    url: '/inspection/report/statusDistribution',
    method: 'get'
  })
}

// 巡检人统计（三合一：总/月/日）
export function inspectorStats3(query) {
  return request({
    url: '/inspection/report/inspectorStats3',
    method: 'get',
    params: query
  })
}

// 巡检点统计（三合一：总/月/日）
export function pointStats3(query) {
  return request({
    url: '/inspection/report/pointStats3',
    method: 'get',
    params: query
  })
}