chenzx
2024-02-20 77847fe500de2519cba82d1a5ef03d055739f0d7
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
package com.ruoyi.iot.service;
 
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.iot.domain.DeviceOrder;
import org.aspectj.weaver.loadtime.Aj;
import org.checkerframework.checker.units.qual.A;
 
import java.util.List;
/**
 * @author wmz
 * @version v1.0
 * @ClassName IDeviceOrderService
 * @description 设备安装单/维修单Service接口
 * @createTime 2023/11/13 0:24
 */
 
public interface IDeviceOrderService {
 
 
    /**
     * 根据条件分页查询设备安装信息
     *
     * @param deviceOrder
     * @return
     * @throws Exception
     */
    public List<DeviceOrder> selectDeviceOrderList(DeviceOrder deviceOrder) throws Exception;
 
    /**
     * 根据登录的用户来查询自己未派单的安装单/维修单数量
     *
     * @param deviceOrder
     * @return
     * @throws Exception
     */
    public AjaxResult selectDeviceOrderCountByUndeliveredOrders(DeviceOrder deviceOrder) throws Exception;
 
    /**
     * 根据登录的用户来查询自己已派单的安装单/维修单数量
     *
     * @param deviceOrder
     * @return
     * @throws Exception
     */
    public int selectDeviceOrderCountByDispatchedOrders(DeviceOrder deviceOrder) throws Exception;
 
    /**
     * 根据登录的用户来查询自己已接单的安装单/维修单数量
     *
     * @param deviceOrder
     * @return
     * @throws Exception
     */
    public int selectDeviceOrderCountByReceivedOrders(DeviceOrder deviceOrder) throws Exception;
 
    /**
     * 根据登录的用户来查询自己已完成的安装单/维修单数量
     *
     * @param deviceOrder
     * @return
     * @throws Exception
     */
    public int selectDeviceOrderCountByCompleted(DeviceOrder deviceOrder) throws Exception;
 
    /**
     * 查询设备订单表中已派单/已接单所有的数据
     *
     * @return
     * @throws Exception
     */
    public List<DeviceOrder> selectDeviceOrderAll() throws Exception;
 
    /**
     * 根据id查询安装订单信息
     *
     * @param id
     * @return
     * @throws Exception
     */
    public DeviceOrder selectDeviceOrderById(Long id) throws Exception;
 
    /**
     * 根据安装工的id查询设备订单信息
     *
     * @param erectoId
     * @return
     * @throws Exception
     */
    public List<DeviceOrder>  selectDeviceOrderByErectoId(Long erectoId) throws Exception;
 
    /**
     * 添加安装设备订单信息
     *
     * @param deviceOrder
     * @return
     * @throws Exception
     */
    public AjaxResult insertDeviceOrder(DeviceOrder deviceOrder) throws Exception;
 
 
    /**
     * 修改设备订单信息
     *
     * @param deviceOrder
     * @return
     * @throws Exception
     */
    public AjaxResult updateDeviceOrder(DeviceOrder deviceOrder) throws Exception;
 
    /**
     * 用户对完成的安装单/维修单打分和评价
     *
     * @param deviceOrder
     * @return
     * @throws Exception
     */
    public AjaxResult updateDeviceOrderScoreAndComment(DeviceOrder deviceOrder) throws Exception;
 
    /**
     * 删除设备安装单/维修单信息
     *
     * @param id
     * @param deviceId
     * @return
     * @throws Exception
     */
    public AjaxResult deleteDeviceOrderById(Long id, Long deviceId) throws Exception;
 
    /**
     * 批量删除设备订单安装信息
     *
     * @param ids
     * @return
     * @throws Exception
     */
    public int deleteDeviceOrder(Integer[] ids) throws Exception;
 
}