goodsList; } public function setGoodsList($goodsList) { $this->goodsList = $goodsList; $arr = array(); foreach ($goodsList as $temp){ array_push($arr,$temp->getApiParams()); } $this->apiParams["goodsList"] = $arr; } public function getInvType() { return $this->invType; } public function setInvType($invType) { $this->invType = $invType; $this->apiParams["invType"] = $invType; } public function getApiMethodName(){ return 'suning.selfmarket.factorygoodsinv.update'; } public function getApiParams(){ return $this->apiParams; } public function check(){ //非空校验 } public function getBizName(){ return "updateFactorygoodsinv"; } } class GoodsList { private $apiParams = array(); private $commodityCode; private $invQty; private $supplierCommodityCode; private $warehouseCode; private $warehouseLocation; public function getCommodityCode() { return $this->commodityCode; } public function setCommodityCode($commodityCode) { $this->commodityCode = $commodityCode; $this->apiParams["commodityCode"] = $commodityCode; } public function getInvQty() { return $this->invQty; } public function setInvQty($invQty) { $this->invQty = $invQty; $this->apiParams["invQty"] = $invQty; } public function getSupplierCommodityCode() { return $this->supplierCommodityCode; } public function setSupplierCommodityCode($supplierCommodityCode) { $this->supplierCommodityCode = $supplierCommodityCode; $this->apiParams["supplierCommodityCode"] = $supplierCommodityCode; } public function getWarehouseCode() { return $this->warehouseCode; } public function setWarehouseCode($warehouseCode) { $this->warehouseCode = $warehouseCode; $this->apiParams["warehouseCode"] = $warehouseCode; } public function getWarehouseLocation() { return $this->warehouseLocation; } public function setWarehouseLocation($warehouseLocation) { $this->warehouseLocation = $warehouseLocation; $this->apiParams["warehouseLocation"] = $warehouseLocation; } public function getApiParams(){ return $this->apiParams; } } ?>