heheng
2025-11-28 6d5fc7859473d30a2e4c1f20f748abae652342b8
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
package com.gkhy.exam.admin.controller.web;
 
import com.gkhy.exam.common.api.CommonResult;
import com.gkhy.exam.system.domain.*;
import com.gkhy.exam.system.service.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
@RestController
@RequestMapping("/market")
@Api(tags = "管理评审会议、输入、报告")
public class MarketController {
 
 
    @Autowired
    private CustomerInventoryService customerInventoryService;
 
    @Autowired
    private CustomerRecordService customerRecordService;
 
    @Autowired
    private CustomerCommunicationService customerCommunicationService;
 
    @Autowired
    private ContractLedgerService contractLedgerService;
 
    @Autowired
    private ContractReviewService contractReviewService;
 
    @Autowired
    private PostSalesService postSalesService;
 
    @Autowired
    private MonthlyInspectionService monthlyInspectionService;
 
 
 
    /**
     * 顾客清单列表
     * @param customerInventory
     * @return
     */
    @ApiOperation(value = "顾客清单列表(分页)")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"),
            @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"),
    })
    @GetMapping("/inventory/list")
    public CommonResult listCustomer(CustomerInventory customerInventory){
        return CommonResult.success(customerInventoryService.selectCustomerInventoryList(customerInventory));
    }
 
    /**
     * 顾客清单列表所有
     * @param customerInventory
     * @return
     */
    @ApiOperation(value = "顾客清单列表(所有)")
    @GetMapping("/inventory/listAll")
    public CommonResult listCustomerAll(CustomerInventory customerInventory){
        return CommonResult.success(customerInventoryService.selectCustomerInventoryListAll(customerInventory));
    }
 
 
    /**
     * 顾客清单新增
     * @param customerInventory
     * @return
     */
    @ApiOperation(value = "顾客清单新增")
    @PostMapping("/inventory/insert")
    public CommonResult insertCustomer(@RequestBody CustomerInventory customerInventory){
        return customerInventoryService.insertCustomerInventory(customerInventory);
    }
 
    /**
     * 顾客清单修改
     * @param customerInventory
     * @return
     */
    @ApiOperation(value = "顾客清单修改")
    @PostMapping("/inventory/update")
    public CommonResult updateCustomer(@RequestBody CustomerInventory customerInventory){
        return customerInventoryService.updateCustomerInventory(customerInventory);
    }
 
    /**
     * 顾客清单删除
     * @param customerId
     * @return
     */
    @ApiOperation(value = "顾客清单删除")
    @GetMapping("/inventory/deleted")
    public CommonResult deletedCustomer(@RequestParam("customerId") Integer customerId){
        return customerInventoryService.deletedCustomerInventory(customerId);
    }
 
 
 
    /**
     * 顾客需求登记列表
     * @param customerRecord
     * @return
     */
    @ApiOperation(value = "顾客需求登记列表(分页)")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"),
            @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"),
    })
    @GetMapping("/record/list")
    public CommonResult listCustomerRecord(CustomerRecord customerRecord){
        return CommonResult.success(customerRecordService.selectCustomerRecordList(customerRecord));
    }
 
 
    /**
     * 顾客需求登记新增
     * @param customerRecord
     * @return
     */
    @ApiOperation(value = "顾客需求登记新增")
    @PostMapping("/record/insert")
    public CommonResult insertCustomerRecord(@RequestBody CustomerRecord customerRecord){
        return customerRecordService.insertCustomerRecord(customerRecord);
    }
 
    /**
     * 顾客需求登记修改
     * @param customerRecord
     * @return
     */
    @ApiOperation(value = "顾客需求登记修改")
    @PostMapping("/record/update")
    public CommonResult updateCustomerRecord(@RequestBody CustomerRecord customerRecord){
        return customerRecordService.updateCustomerRecord(customerRecord);
    }
 
    /**
     * 顾客需求登记删除
     * @param recordId
     * @return
     */
    @ApiOperation(value = "顾客需求登记删除")
    @GetMapping("/record/deleted")
    public CommonResult deletedCustomerRecord(@RequestParam("recordId") Integer recordId){
        return customerRecordService.deletedCustomerRecord(recordId);
    }
 
 
 
 
    /**
     * 顾客沟通记录列表
     * @param customerCommunication
     * @return
     */
    @ApiOperation(value = "顾客沟通记录列表(分页)")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"),
            @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"),
    })
    @GetMapping("/communication/list")
    public CommonResult listCustomerCommunication(CustomerCommunication customerCommunication){
        return CommonResult.success(customerCommunicationService.selectCustomerCommunicationList(customerCommunication));
    }
 
 
    /**
     * 顾客沟通记录新增
     * @param customerCommunication
     * @return
     */
    @ApiOperation(value = "顾客沟通记录新增")
    @PostMapping("/communication/insert")
    public CommonResult insertCustomerCommunication(@RequestBody CustomerCommunication customerCommunication){
        return customerCommunicationService.insertCustomerCommunication(customerCommunication);
    }
 
    /**
     * 顾客沟通记录修改
     * @param customerCommunication
     * @return
     */
    @ApiOperation(value = "顾客沟通记录修改")
    @PostMapping("/communication/update")
    public CommonResult updateCustomerCommunication(@RequestBody CustomerCommunication customerCommunication){
        return customerCommunicationService.updateCustomerCommunication(customerCommunication);
    }
 
    /**
     * 顾客沟通记录删除
     * @param communId
     * @return
     */
    @ApiOperation(value = "顾客沟通记录删除")
    @GetMapping("/communication/deleted")
    public CommonResult deletedCustomerCommunication(@RequestParam("communId") Integer communId){
        return customerCommunicationService.deletedCustomerCommunication(communId);
    }
 
 
 
    /**
     * 合同台账列表
     * @param contractLedger
     * @return
     */
    @ApiOperation(value = "合同台账(分页)")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"),
            @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"),
    })
    @GetMapping("/ledger/list")
    public CommonResult listContractLedger(ContractLedger contractLedger){
        return CommonResult.success(contractLedgerService.selectContractLedgerList(contractLedger));
    }
 
 
    /**
     * 合同台账新增
     * @param contractLedger
     * @return
     */
    @ApiOperation(value = "合同台账新增")
    @PostMapping("/ledger/insert")
    public CommonResult insertContractLedger(@RequestBody ContractLedger contractLedger){
        return contractLedgerService.insertContractLedger(contractLedger);
    }
 
    /**
     * 合同台账修改
     * @param contractLedger
     * @return
     */
    @ApiOperation(value = "合同台账修改")
    @PostMapping("/ledger/update")
    public CommonResult updateContractLedger(@RequestBody ContractLedger contractLedger){
        return contractLedgerService.updateContractLedger(contractLedger);
    }
 
    /**
     * 合同台账删除
     * @param ledgerId
     * @return
     */
    @ApiOperation(value = "合同台账删除")
    @GetMapping("/ledger/deleted")
    public CommonResult deletedContractLedger(@RequestParam("ledgerId") Integer ledgerId){
        return contractLedgerService.deletedContractLedger(ledgerId);
    }
 
 
    /**
     * 合同评审列表
     * @param contractReview
     * @return
     */
    @ApiOperation(value = "合同评审(分页)")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"),
            @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"),
    })
    @GetMapping("/review/list")
    public CommonResult listContractReview(ContractReview contractReview){
        return CommonResult.success(contractReviewService.selectContractReviewList(contractReview));
    }
 
 
    /**
     * 合同评审新增
     * @param contractReview
     * @return
     */
    @ApiOperation(value = "合同评审新增")
    @PostMapping("/review/insert")
    public CommonResult insertContractReview(@RequestBody ContractReview contractReview){
        return contractReviewService.insertContractReview(contractReview);
    }
 
    /**
     * 合同评审修改
     * @param contractReview
     * @return
     */
    @ApiOperation(value = "合同评审修改")
    @PostMapping("/review/update")
    public CommonResult updateContractReview(@RequestBody ContractReview contractReview){
        return contractReviewService.updateContractReview(contractReview);
    }
 
    /**
     * 合同评审删除
     * @param reviewId
     * @return
     */
    @ApiOperation(value = "合同评审删除")
    @GetMapping("/review/deleted")
    public CommonResult deletedContractReview(@RequestParam("reviewId") Integer reviewId){
        return contractReviewService.deletedContractReview(reviewId);
    }
 
 
 
    /**
     * 售后服务
     * @param postSales
     * @return
     */
    @ApiOperation(value = "售后服务(分页)")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"),
            @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"),
    })
    @GetMapping("/sales/list")
    public CommonResult listPostsales(PostSales postSales){
        return CommonResult.success(postSalesService.selectPostSalesList(postSales));
    }
 
 
    /**
     * 售后服务新增
     * @param postSales
     * @return
     */
    @ApiOperation(value = "售后服务新增")
    @PostMapping("/sales/insert")
    public CommonResult insertPostsales(@RequestBody PostSales postSales){
        return postSalesService.insertPostSales(postSales);
    }
 
    /**
     * 售后服务修改
     * @param postSales
     * @return
     */
    @ApiOperation(value = "售后服务修改")
    @PostMapping("/sales/update")
    public CommonResult updatePostsales(@RequestBody PostSales postSales){
        return postSalesService.updatePostSales(postSales);
    }
 
    /**
     * 售后服务删除
     * @param salesId
     * @return
     */
    @ApiOperation(value = "售后服务删除")
    @GetMapping("/sales/deleted")
    public CommonResult deletedPostsales(@RequestParam("salesId") Integer salesId){
        return postSalesService.deletedPostSales(salesId);
    }
 
    /**
     * 月度检查记录
     * @param monthlyInspection
     * @return
     */
    @ApiOperation(value = "月度检查记录(分页)")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"),
            @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"),
    })
    @GetMapping("/monthly/list")
    public CommonResult listMonthlyInspection(MonthlyInspection monthlyInspection){
        return CommonResult.success(monthlyInspectionService.selectMonthlyInspectionList(monthlyInspection));
    }
 
    /**
     * 月度检查记录id查
     * @param monthlyId
     * @return
     */
    @ApiOperation(value = "月度检查记录id查")
    @GetMapping("/monthly/listByid")
    public CommonResult listMonthlyInspectionByid(@RequestParam("monthlyId") Integer monthlyId){
        return monthlyInspectionService.listMonthlyInspectionById(monthlyId);
    }
 
 
    /**
     * 月度检查记录新增
     * @param monthlyInspection
     * @return
     */
    @ApiOperation(value = "月度检查记录新增")
    @PostMapping("/monthly/insert")
    public CommonResult insertMonthlyInspection(@RequestBody MonthlyInspection monthlyInspection){
        return monthlyInspectionService.insertMonthlyInspection(monthlyInspection);
    }
 
    /**
     * 月度检查记录修改
     * @param monthlyInspection
     * @return
     */
    @ApiOperation(value = "月度检查记录修改")
    @PostMapping("/monthly/update")
    public CommonResult updateMonthlyInspection(@RequestBody MonthlyInspection monthlyInspection){
        return monthlyInspectionService.updateMonthlyInspection(monthlyInspection);
    }
 
    /**
     * 月度检查记录删除
     * @param monthlyId
     * @return
     */
    @ApiOperation(value = "月度检查记录删除")
    @GetMapping("/monthly/deleted")
    public CommonResult deletedMonthlyInspection(@RequestParam("monthlyId") Integer monthlyId){
        return monthlyInspectionService.deletedMonthlyInspection(monthlyId);
    }
 
 
 
 
 
 
 
 
}