package com.zbf.web.controller.system;

import java.util.List;

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

import com.zbf.common.core.controller.BaseController;
import com.zbf.common.core.domain.AjaxResult;
import com.zbf.system.domain.TMiStockF;
import com.zbf.system.domain.TMiStockFUpdate;
import com.zbf.system.service.ITMiStockFService;

import io.swagger.annotations.ApiOperation;

/**
 * 库存Controller
 *
 * @author tony
 * @date 2024-07-27
 */
@RestController
@RequestMapping("/system/tMiStockf")
public class TMiStockFController extends BaseController
{
    @Autowired
    private ITMiStockFService tMiStockFService;

    /**
     * 查询库存列表
     */
    @GetMapping("/selectList")
    public AjaxResult selectlist(TMiStockF tMiStockF)
    {
        List<TMiStockF> list = tMiStockFService.selectTMiStockFList(tMiStockF);
        return success(list);
    }

    /**
     * 物料组盘，生成真实入库上架任务
     */
    @ApiOperation("物料组盘")
    @PostMapping("/goodsMakeCtl")
    public AjaxResult goodsMakeCtl(@RequestBody TMiStockFUpdate tMiStockFUpdate) {
        return success(tMiStockFService.goodsMakeCtl(tMiStockFUpdate));
    }

}

