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
139
140
141
142
143
144
145
146
147
package com.java110.order.dao;
 
import com.java110.utils.exception.DAOException;
import com.java110.entity.mapping.Mapping;
 
import java.util.List;
import java.util.Map;
 
/**
 * Created by wuxw on 2018/4/14.
 */
public interface ICenterServiceDAO {
 
    /**
     * 保存订单信息
     * @param order 订单信息
     * @return
     */
    public void saveOrder(Map order) throws DAOException;
 
    /**
     * 保存属性信息
     * @param orderAttrs
     * @return
     */
    public void saveOrderAttrs(List<Map> orderAttrs) throws DAOException;
 
 
    /**
     * 保存订单项信息
     * @param businesses 订单项信息
     * @return
     */
    public void saveBusiness(List<Map> businesses) throws DAOException;
 
    /**
     * 保存订单项信息
     * @param business 订单项信息
     */
    public void saveBusiness(Map business) throws DAOException;
 
    /**
     * 保存属性信息
     * @param businessAttrs
     * @return
     */
    public void saveBusinessAttrs(List<Map> businessAttrs) throws DAOException;
 
    /**
     * 更新订单信息(一般就更新订单状态)
     * @param order
     * @throws DAOException
     */
    public void updateOrder(Map order) throws DAOException;
 
    /**
     * 更新订单项信息(一般就更新订单状态)
     * @param order
     * @throws DAOException
     */
    public void updateBusiness(Map order) throws DAOException;
 
    /**
     * 根据bId 修改业务项信息
     * @param business
     * @throws DAOException
     */
    public void updateBusinessByBId(Map business) throws DAOException;
 
    /**
     * 当所有业务动作是否都是C,将订单信息改为 C
     * @param bId
     * @return
     * @throws DAOException
     */
    public void completeOrderByBId(String bId) throws DAOException;
 
    /**
     * 当所有业务动作是否都是C,将订单信息改为 C
     * @param oId
     * @return
     * @throws DAOException
     */
    public void completeOrderByOId(String oId) throws DAOException;
    /**
     * 判断 business 过程是否完成 1 表示完成 0表示未完成
     * @param oId
     * @return
     * @throws DAOException
     */
    public int judgeAllBusinessCompleted(String oId,String statusCd) throws DAOException;
 
    /**
     * 判断 business 过程是否是否满足撤单条件
     * @param oId
     * @return
     * @throws DAOException
     */
    public int judgeAllBusinessDeleteOrder(String oId,String statusCd) throws DAOException;
 
    /**
     * 根据bId查询订单信息
     * @param bId
     * @return
     * @throws DAOException
     */
    public Map getOrderInfoByBId(String bId)throws DAOException;
 
    /**
     * 根据oId查询订单信息
     * @param oId
     * @return
     * @throws DAOException
     */
    public Map getDeleteOrderBusinessByOId(String oId)throws DAOException;
 
    /**
     * 获取同个订单中已经完成的订单项
     * @param bId
     * @return
     * @throws DAOException
     */
    public List<Map> getCommonOrderCompledBusinessByBId(String bId) throws DAOException;
 
    /**
     * 根据oId 查询Business
     * @param info
     * @return
     * @throws DAOException
     */
    public List<Map> getBusinessByOId(Map info) throws DAOException;
 
    /**
     * 查询所有组件
     * @return
     */
    public List<Map> getAppRouteAndServiceInfoAll();
 
    /**
     * 查询映射表
     * @return
     */
    public List<Mapping> getMappingInfoAll();
 
 
 
}