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


import com.yh.saas.plugin.yiliangyiyun.entity.ContractGoodsInfo;
import com.yh.saas.plugin.yiliangyiyun.service.IContractGoodsInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 合同货物信息 前端控制器
 * </p>
 *
 * @author Gongdc
 * @since 2021-05-17
 */
@RestController
@RequestMapping("/contractGoodsInfo")
public class ContractGoodsInfoController {

    @Autowired
    private IContractGoodsInfoService contractGoodsInfoService;

    /**
     * 查看
     * @param contractId
     * @return
     */
    @GetMapping("/getGoodsName")
    public ContractGoodsInfo getGoodsName(String contractId ,String contractNo) {
        return contractGoodsInfoService.getGoodsName(contractId,contractNo);
    }
}

