Blame view

src/main/java/com/order/erp/controller/OrderFieldLockApplyController.java 2.75 KB
“谢茂盛” authored
1
2
package com.order.erp.controller;
3
import com.order.erp.common.annotation.AnonymousAccess;
“谢茂盛” authored
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
import com.order.erp.common.constant.ServerResult;
import com.order.erp.domain.vo.order.OrderFieldLockApplyQueryVO;
import com.order.erp.domain.vo.order.OrderFieldLockApplyVO;
import com.order.erp.service.order.OrderFieldLockApplyService;
import org.springframework.validation.annotation.Validated;
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;

import javax.annotation.Resource;

/**
 * 用户订单-字段锁定申请表(OrderFieldLockApply)表控制层
 *
 * @author makejava
 * @since 2023-09-08 15:26:44
 */
@RestController
@RequestMapping("/order/erp/apply")
public class OrderFieldLockApplyController {
    /**
     * 服务对象
     */
    @Resource
    private OrderFieldLockApplyService orderFieldLockApplyService;

    /**
     * 分页查询
     *
     * @param orderFieldLockApplyQueryVO 查询条件
     * @return 查询结果
     */
    @PostMapping("/list")
38
    @AnonymousAccess
“谢茂盛” authored
39
40
41
42
43
44
45
46
47
48
49
    public ServerResult list(@RequestBody @Validated OrderFieldLockApplyQueryVO orderFieldLockApplyQueryVO) {
        return orderFieldLockApplyService.list(orderFieldLockApplyQueryVO);
    }

    /**
     * 通过主键查询单条数据
     *
     * @param orderFieldLockApplyQueryVO 查询条件
     * @return 单条数据
     */
    @PostMapping("/query_by_id")
50
    @AnonymousAccess
“谢茂盛” authored
51
52
53
54
55
56
57
58
59
60
61
    public ServerResult queryById(@RequestBody OrderFieldLockApplyQueryVO orderFieldLockApplyQueryVO) {
        return orderFieldLockApplyService.queryById(orderFieldLockApplyQueryVO);
    }

    /**
     * 新增数据
     *
     * @param orderFieldLockApplyVO 数据VO
     * @return 新增结果
     */
    @PostMapping("/add")
62
    @AnonymousAccess
“谢茂盛” authored
63
64
65
66
67
68
69
70
71
72
73
    public ServerResult add(@RequestBody OrderFieldLockApplyVO orderFieldLockApplyVO) {
        return orderFieldLockApplyService.add(orderFieldLockApplyVO);
    }

    /**
     * 编辑数据
     *
     * @param orderFieldLockApplyVO 数据VO
     * @return 编辑结果
     */
    @PostMapping("/edit")
74
    @AnonymousAccess
“谢茂盛” authored
75
76
77
78
79
80
81
82
83
84
85
    public ServerResult edit(@RequestBody OrderFieldLockApplyVO orderFieldLockApplyVO) {
        return orderFieldLockApplyService.edit(orderFieldLockApplyVO);
    }

    /**
     * 删除数据
     *
     * @param orderFieldLockApplyQueryVO 查询条件
     * @return 删除是否成功
     */
    @PostMapping("/delete_by_id")
86
    @AnonymousAccess
“谢茂盛” authored
87
88
89
90
91
92
    public ServerResult deleteById(@RequestBody OrderFieldLockApplyQueryVO orderFieldLockApplyQueryVO) {
        return orderFieldLockApplyService.deleteById(orderFieldLockApplyQueryVO);
    }

}