package com.yh.saas.platform.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.yh.saas.platform.service.IBillOperateHisService;
import com.yh.saas.plugin.base.entity.CommonBillOperateHis;

/**
 * <p>
 * 记录单据操作历史 前端控制器
 * </p>
 *
 * @author SongJin
 * @since 2020-01-03
 */
@RestController
@RequestMapping("/billOperateHis")
public class BillOperateHisController {

    @Autowired
    private IBillOperateHisService billOperateHisService;

    /**
     * 操作历史查询
     *
     * @param
     * @return
     */
    @GetMapping("/query/commonBillOperateHis")
    public List<CommonBillOperateHis> getBillOperateHis(@RequestParam String id,String billType) {
        return this.billOperateHisService.getBillOperateHis(id,billType);
    }
}
