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 = "顾客清单新增")
|
@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));
|
}
|
|
|
/**
|
* 月度检查记录新增
|
* @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);
|
}
|
|
|
|
|
|
|
|
|
}
|