| | |
| | | public class SalesQuotationController { |
| | | @Autowired |
| | | private SalesQuotationService salesQuotationService; |
| | | |
| | | @GetMapping("/list") |
| | | public AjaxResult getList(Page page, SalesQuotationDto salesQuotationDto) { |
| | | return AjaxResult.success(salesQuotationService.listPage(page, salesQuotationDto)); |
| | |
| | | public AjaxResult add(@RequestBody SalesQuotationDto salesQuotationDto) { |
| | | return AjaxResult.success(salesQuotationService.add(salesQuotationDto)); |
| | | } |
| | | |
| | | @PostMapping("/update") |
| | | public AjaxResult update(@RequestBody SalesQuotationDto salesQuotationDto) { |
| | | return AjaxResult.success(salesQuotationService.edit(salesQuotationDto)); |
| | |
| | | |
| | | /** |
| | | * 详情 根据客户类型和产品返回报价单价 |
| | | * |
| | | * @param type 客户类型 |
| | | * @param productName 产品名称 |
| | | * @param specification 规格 |
| | |
| | | */ |
| | | @ApiOperation("详情") |
| | | @GetMapping("/detail") |
| | | public AjaxResult detail(@RequestParam("type") String type, |
| | | public AjaxResult detail(@RequestParam(value = "type", required = false) String type, |
| | | @RequestParam("productName")String productName, |
| | | @RequestParam("specification")String specification) { |
| | | return AjaxResult.success(salesQuotationService.detail(type, productName, specification)); |
| | | } |
| | | |
| | | @DeleteMapping("/delete") |
| | | public AjaxResult delete(@RequestBody Long id) { |
| | | return AjaxResult.success(salesQuotationService.delete(id)); |