package com.dk.mdm.controller.ivt.inventory;

import com.dk.common.model.pojo.PageList;
import com.dk.common.response.ResponseResultVO;
import com.dk.mdm.model.pojo.ivt.Inventory;
import com.dk.common.service.BaseService;
import com.dk.mdm.model.query.ivt.InboundQuery;
import com.dk.mdm.model.query.ivt.InventoryQuery;
import com.dk.mdm.model.response.ivt.InboundResponse;
import com.dk.mdm.model.response.ivt.InventoryResponse;
import com.dk.mdm.model.vo.ivt.InventoryVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
import com.dk.mdm.service.ivt.inventory.InventoryService;

@Api(tags = "库存明细API接口")
@RestController
@RequestMapping("/inventory")
public class InventoryController{

    public BaseService<Inventory> getService() {
        return inventoryService;
    }

    @Autowired
    private InventoryService inventoryService;

    /**
     * @desc   : 条件查询
     * @date   : 2024/3/7 14:09
     * @author : 寇珊珊
     */
    @ApiOperation(value = "条件查询", notes = "条件查询")
    @PostMapping({"list_by"})
    public ResponseResultVO<PageList<InventoryResponse>> selectByCond(@RequestBody InventoryQuery query) {
        return inventoryService.selectByCond(query);
    }

}
