package com.chinaitop.depot.intelligent.ventilation.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.chinaitop.depot.intelligent.ventilation.model.DataKcglKcswDefault;
import com.chinaitop.depot.intelligent.ventilation.service.KcswService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping(value="/agile/kcsw")
@Api(value= "KcswController", description = "库存实物控制类")
public class KcswController {

	@Resource
	private KcswService kcswService;
	
	
	
	/**
	 * 销售计划 查询当前组织的库存信息
	 */
	@RequestMapping(value="/queryKcData",produces=MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
	@ApiOperation(value="查询当前组织的库存信息", notes = "查询当前组织的库存信息")
	@ApiImplicitParams({
		@ApiImplicitParam(name = "orgId", value = "登录对象", paramType = "form")
	})
	public List<DataKcglKcswDefault> queryKcData(Integer orgId, String houseId, String warehouseId){
		return kcswService.queryKcData(orgId,houseId,warehouseId);
	}

	
	

}
