package com.yh.saas.plugin.yiliangyiyun.controller;


import com.yh.saas.plugin.yiliangyiyun.entity.TransactionRecord;
import com.yh.saas.plugin.yiliangyiyun.entity.view.ListView;
import com.yh.saas.plugin.yiliangyiyun.service.ITransactionRecordService;
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.RestController;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 成交记录 前端控制器
 * </p>
 *
 * @author Gongdc
 * @since 2021-07-22
 */
@RestController
@RequestMapping("/transactionRecord")
public class TransactionRecordController {
    @Autowired
    private ITransactionRecordService transactionRecordService;
    /**
     * 获取成交价列表
     * @param id
     * @return
     */
    @GetMapping("/getPriceList")
    public List<ListView>  getPriceList(String id) {
        return transactionRecordService.getPriceList(id);
    }
    /**
     * 获取成交价列表
     * @param id
     * @return
     */
    @GetMapping("/getSalePriceList")
    public List<ListView> getSalePriceList(String id) {
        return transactionRecordService.getSalePriceList(id);
    }

}

