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


import com.baomidou.mybatisplus.plugins.Page;
import com.yh.saas.plugin.yiliangyiyun.entity.WeighingManagement;
import com.yh.saas.plugin.yiliangyiyun.entity.WeightedDetails;
import com.yh.saas.plugin.yiliangyiyun.service.IWeighingManagementService;
import com.yh.saas.plugin.yiliangyiyun.service.IWeightedDetailsService;
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.text.ParseException;

/**
 * <p>
 * 加权明细 前端控制器
 * </p>
 *
 * @author Gdc
 * @since 2021-10-08
 */
@RestController
@RequestMapping("/weightedDetails")
public class WeightedDetailsController {
    @Autowired
    private IWeightedDetailsService weightedDetailsService;
    /**
     * 列表
     * @param weightedDetails
     * @return
     */
    @GetMapping("/selectInventoryCostInfo")
    public Page<WeightedDetails> selectInventoryCostInfo(WeightedDetails weightedDetails) throws ParseException {
        return weightedDetailsService.selectInventoryCostInfo(weightedDetails);
    }
}

