xuhy
2024-08-15 98e7dc8c77c30a6cad499a4a12b5334da1fe16d7
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
package com.ruoyi.web.controller.api;
 
 
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.dto.TOrderMealDTO;
import com.ruoyi.system.dto.TOrderSaleDTO;
import com.ruoyi.system.service.TOrderMealService;
import com.ruoyi.system.service.TOrderSaleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * <p>
 * 销售订单 前端控制器
 * </p>
 *
 * @author xiaochen
 * @since 2024-08-14
 */
@Api(tags = "销售订单")
@RestController
@RequestMapping("/t-order-sale")
public class TOrderSaleController {
    private final TOrderSaleService orderSaleService;
 
    @Autowired
    public TOrderSaleController(TOrderSaleService orderSaleService) {
        this.orderSaleService = orderSaleService;
    }
    /**
     * 销售下单接口
     */
    @ApiOperation( value = "销售下单接口")
    @PostMapping(value = "/add")
    public AjaxResult<String> add(@RequestBody TOrderSaleDTO dto) {
        orderSaleService.add(dto);
        return AjaxResult.success();
    }
 
}