Blame view

src/main/java/com/order/erp/controller/OrderAuditLogController.java 1.79 KB
“谢茂盛” authored
1
2
package com.order.erp.controller;
3
import com.order.erp.common.annotation.AnonymousAccess;
“谢茂盛” authored
4
5
6
import com.order.erp.common.constant.ServerResult;
import com.order.erp.domain.vo.order.OrderAuditLogQueryVO;
import com.order.erp.service.order.OrderAuditLogService;
谢茂盛 authored
7
8
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
“谢茂盛” authored
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;

/**
 * 用户订单审批日志表(OrderAuditLog)表控制层
 *
 * @author makejava
 * @since 2023-09-08 15:26:41
 */
谢茂盛 authored
23
@Api(tags = "用户订单审批日志")
“谢茂盛” authored
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@RestController
@RequestMapping("/order/erp/audit/log")
public class OrderAuditLogController {
    /**
     * 服务对象
     */
    @Resource
    private OrderAuditLogService orderAuditLogService;

    /**
     * 分页查询
     *
     * @param orderAuditLogQueryVO 查询条件
     * @return 查询结果
     */
39
    @PostMapping("/list_by_page")
谢茂盛 authored
40
    @ApiOperation("分页查询")
41
    @AnonymousAccess
“谢茂盛” authored
42
    public ServerResult list(@RequestBody @Validated OrderAuditLogQueryVO orderAuditLogQueryVO) {
43
        return orderAuditLogService.listByPage(orderAuditLogQueryVO);
“谢茂盛” authored
44
45
46
47
48
49
50
51
52
    }

    /**
     * 通过主键查询单条数据
     *
     * @param orderAuditLogQueryVO 查询条件
     * @return 单条数据
     */
    @PostMapping("/query_by_id")
谢茂盛 authored
53
    @ApiOperation("通过主键查询单条数据")
54
    @AnonymousAccess
“谢茂盛” authored
55
56
57
58
59
    public ServerResult queryById(@RequestBody OrderAuditLogQueryVO orderAuditLogQueryVO) {
        return orderAuditLogService.queryById(orderAuditLogQueryVO);
    }
}