jiangping
2024-11-05 c9ef2687d3460da668d08d58dee6af468ed6693e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import request from '../../utils/request'
// 查询
export function fetchList(data) {
  return request.post('/meetingAdmin/cloudService/business/bookings/page', data, {
    trim: true
  })
}
 
// 导出Excel
export function exportExcel(data) {
  return request.post('/meetingAdmin/cloudService/business/bookings/exportExcel', data, {
    trim: true,
    download: true
  })
}
 
// 创建
export function create(data) {
  return request.post('/meetingAdmin/cloudService/business/bookings/create', data)
}
 
// 修改
export function updateById(data) {
  return request.post('/meetingAdmin/cloudService/business/bookings/updateById', data)
}
// 取消
export function cancelById(data) {
  return request.post('/meetingAdmin/cloudService/business/meeting/reservationCancel', data)
}
// 开始
export function startById(data) {
  return request.post('/meetingAdmin/cloudService/business/meeting/start', data)
}
// 结束
export function meetingEndById(data) {
  return request.post('/meetingAdmin/cloudService/business/meeting/reservationOver', data)
}
// 提前开始
export function startEarlyById(data) {
  return request.post('/meetingAdmin/cloudService/business/meeting/startEarly', data)
}
// 
export function overBookById(data) {
  return request.post('/meetingAdmin/cloudService/business/meeting/reservationOver', data)
}
// 预定详情
export function BookDetailById(params) {
  return request.get('/meetingAdmin/cloudService/web/meeting/meetingDetail', {
    params
  })
}
 
// 删除
export function deleteById(id) {
  return request.get(`/meetingAdmin/cloudService/business/bookings/delete/${id}`)
}
 
// 根据ID查询
export function bookingsDetail(id) {
  return request.get(`/meetingAdmin/cloudService/business/bookings/${id}`)
}
 
// 批量删除
export function deleteByIdInBatch(ids) {
  return request.get('/meetingAdmin/cloudService/business/bookings/delete/batch', {
    params: {
      ids
    }
  })
}
 
// 会议室使用时长统计
export function getRoomStatistics(yearNum, roomId) {
  return request.get(`/meetingAdmin/cloudService/business/bookings/getRoomStatistics?yearNum=${yearNum}&roomId=${roomId}`)
}
// 会议室使用时长统计导出Excel
export function exportRoomStatistics(data) {
  return request.post(`/meetingAdmin/cloudService/business/bookings/exportRoomStatistics`, data, {
    trim: true,
    download: true
  })
}
 
// 人员参加会议时常
export function getUserStatistics(data) {
  return request.post(`/meetingAdmin/cloudService/business/bookings/getUserStatistics`, data)
}
// 人员参会时长统计导出Excel
export function exportUserStatistics(data) {
  return request.post(`/meetingAdmin/cloudService/business/bookings/exportUserStatistics`, data, {
    trim: true,
    download: true
  })
}
 
//
export function reservationCancel(type) {
  return request.get(`/meetingAdmin/cloudService/business/bookings/reservationCancel?type=${type}`)
}
//
export function findMothBookingMeet({ roomId, dateMonth }) {
  return request.post(`/meetingAdmin/cloudService/business/bookings/findMothBookingMeet?roomId=${roomId}&dateMonth=${dateMonth}`)
}