package com.bonus.sgzb.app.controller;

import com.bonus.sgzb.app.domain.StorageStatus;
import com.bonus.sgzb.app.service.HoldingLedgerService;
import com.bonus.sgzb.common.core.web.controller.BaseController;
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
import com.bonus.sgzb.common.log.annotation.Log;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author：梁超
 * @date：2024/4/19 - 17:43
 * 综合查询
 */
@RestController
@RequestMapping("/base/composite")
public class CompositeQueryController extends BaseController {

    @Resource
    private HoldingLedgerService holdingLedgerService;

    /**
     * @param
     * @return 抱杆台账查询
     */
    @Log(title = "抱杆台账查询")
    @GetMapping("/getHoldingLedger")
    public AjaxResult getHoldingLedger(StorageStatus storageStatus) {
        startPage();
        return AjaxResult.success(getDataTable(holdingLedgerService.getHoldingLedger(storageStatus)));
    }
}
