zhangqian
2023-08-07 4b63908ad085bc570623f7b0c0fd397b2ae7a80d
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
148
149
150
151
152
153
154
155
package service
 
import (
    "aps_crm/model/response"
    "aps_crm/pkg/ecode"
)
 
type DataServer struct{}
 
func (DataServer) GetAllData() (errCode int, data response.DataResponse) {
    // get country list
    countryList, _ := ServiceGroup.GetCountryList()
    data.Country = countryList
 
    // get province list
    provinceList, _ := ServiceGroup.GetProvinces(0)
    data.Province = provinceList
 
    // get city list
    cityList, _ := ServiceGroup.ListCities(0)
    data.City = cityList
 
    // get region list
    regionList, _ := ServiceGroup.ListRegions(0)
    data.Region = regionList
 
    // get client level list
    clientLevelList, _ := ServiceGroup.GetClientLevelList()
    data.ClientLevel = clientLevelList
 
    // get client status list
    clientStatusList, _ := ServiceGroup.GetClientStatusList()
    data.ClientStatus = clientStatusList
 
    // get client type list
    clientTypeList, _ := ServiceGroup.GetClientTypeList()
    data.ClientType = clientTypeList
 
    // get client Origin list
    clientOriginList, _ := ServiceGroup.GetClientOriginList()
    data.ClientOrigin = clientOriginList
 
    // get Industry list
    industryList, _ := ServiceGroup.GetIndustryList()
    data.Industry = industryList
 
    // get EnterpriseNature list
    enterpriseNatureList, _ := ServiceGroup.GetEnterpriseNatureList()
    data.EnterpriseNature = enterpriseNatureList
 
    // get RegisterCapital list
    registerCapitalList, _ := ServiceGroup.GetRegisteredCapitalList()
    data.RegisteredCapital = registerCapitalList
 
    // get EnterpriseScale list
    enterpriseScaleList, _ := ServiceGroup.GetEnterpriseScaleList()
    data.EnterpriseScale = enterpriseScaleList
 
    // get SalesStage list
    salesStageList, _ := ServiceGroup.GetSaleStageList()
    data.SaleStage = salesStageList
 
    // get SalesType list
    salesTypeList, _ := ServiceGroup.GetSaleTypeList()
    data.SaleType = salesTypeList
 
    // get SalesSource list
    salesSourceList, _ := ServiceGroup.GetSalesSourcesList()
    data.SalesSource = salesSourceList
 
    // get RegularCustomer list
    regularCustomerList, _ := ServiceGroup.GetRegularCustomersList()
    data.RegularCustomers = regularCustomerList
 
    // get Member list
    memberList, _ := ServiceGroup.GetUserList()
    data.Member = memberList
 
    // get Department list
    departmentList, _ := ServiceGroup.GetDepartmentList()
    data.Department = departmentList
 
    // get Satisfaction list
    satisfactionList, _ := ServiceGroup.GetSatisfactionList()
    data.Satisfaction = satisfactionList
 
    // get TimelyRate list
    timelyRateList, _ := ServiceGroup.GetTimelyRateList()
    data.TimelyRate = timelyRateList
 
    // get SolveRate list
    solveRateList, _ := ServiceGroup.GetSolveRateList()
    data.SolveRate = solveRateList
 
    // get IsVisit list
    isVisitList, _ := ServiceGroup.GetIsVisitList()
    data.IsVisit = isVisitList
 
    // get ReportSource list
    reportSourceList, _ := ServiceGroup.GetReportSourceList()
    data.ReportSource = reportSourceList
 
    // get OrderType list
    orderTypeList, _ := ServiceGroup.GetOrderTypeList()
    data.OrderType = orderTypeList
 
    // get ServiceContractStatus list
    serviceContractStatusList, _ := ServiceGroup.GetServiceContractStatusList()
    data.ServiceContractStatus = serviceContractStatusList
 
    // get ServiceContractType list
    serviceContractTypeList, _ := ServiceGroup.GetServiceContractTypeList()
    data.ServiceContractType = serviceContractTypeList
 
    // get RefundMethod list
    refundMethodList, _ := ServiceGroup.GetRefundMethodList()
    data.RefundMethod = refundMethodList
 
    // get IsInvoice list
    isInvoiceList, _ := ServiceGroup.GetIsInvoiceList()
    data.IsInvoice = isInvoiceList
 
    // get AccountId list
    accountIdList, _ := ServiceGroup.GetAccountIdList()
    data.AccountId = accountIdList
 
    // get SalesReturnStatus list
    salesReturnStatusList, _ := ServiceGroup.GetSalesReturnStatusList()
    data.SalesReturnStatus = salesReturnStatusList
 
    // get Repository list
    repositoryList, _ := ServiceGroup.GetRepositoryList()
    data.Repository = repositoryList
 
    // get QuotationStatus list
    quotationStatusList, _ := ServiceGroup.GetQuotationStatusList()
    data.QuotationStatus = quotationStatusList
 
    // get Possibility list
    possibilityList, _ := ServiceGroup.GetPossibilityList()
    data.Possibility = possibilityList
 
    // get Status list
    statusList, _ := ServiceGroup.GetStatusList()
    data.Status = statusList
 
    // get Currency list
    currencyList, _ := ServiceGroup.GetCurrencyList()
    data.Currency = currencyList
 
 
    errCode = ecode.OK
 
    return
}