gaoluyang
4 天以前 fbaeeeff5704f210bc6347454c0f16d255001822
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
package cn.iocoder.yudao.module.erp.controller.admin.purchase;
 
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.erp.controller.admin.purchase.vo.statement.ErpSupplierStatementReqVO;
import cn.iocoder.yudao.module.erp.controller.admin.purchase.vo.statement.ErpSupplierStatementRespVO;
import cn.iocoder.yudao.module.erp.service.purchase.ErpSupplierStatementService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.validation.Valid;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
 
@Tag(name = "管理后台 - ERP 供应商往来")
@RestController
@RequestMapping("/erp/supplier-statement")
@Validated
public class ErpSupplierStatementController {
 
    @Resource
    private ErpSupplierStatementService supplierStatementService;
 
    @GetMapping("/get")
    @Operation(summary = "获取供应商往来对账数据")
    @PreAuthorize("@ss.hasPermission('erp:supplier-statement:query')")
    public CommonResult<ErpSupplierStatementRespVO> getSupplierStatement(
            @Valid ErpSupplierStatementReqVO reqVO) {
        return success(supplierStatementService.getSupplierStatement(reqVO));
    }
 
}