warehouseCode; } public function setWarehouseCode($warehouseCode) { $this->warehouseCode = $warehouseCode; $this->apiParams["warehouseCode"] = $warehouseCode; } public function getStorageDate() { return $this->storageDate; } public function setStorageDate($storageDate) { $this->storageDate = $storageDate; $this->apiParams["storageDate"] = $storageDate; } public function getStorageTime() { return $this->storageTime; } public function setStorageTime($storageTime) { $this->storageTime = $storageTime; $this->apiParams["storageTime"] = $storageTime; } public function getCarrier() { return $this->carrier; } public function setCarrier($carrier) { $this->carrier = $carrier; $this->apiParams["carrier"] = $carrier; } public function getContactsNumber() { return $this->contactsNumber; } public function setContactsNumber($contactsNumber) { $this->contactsNumber = $contactsNumber; $this->apiParams["contactsNumber"] = $contactsNumber; } public function getWaybill() { return $this->waybill; } public function setWaybill($waybill) { $this->waybill = $waybill; $this->apiParams["waybill"] = $waybill; } public function getPurchaseOrderId() { return $this->purchaseOrderId; } public function setPurchaseOrderId($purchaseOrderId) { $this->purchaseOrderId = $purchaseOrderId; $this->apiParams["purchaseOrderId"] = $purchaseOrderId; } public function getCustomerId() { return $this->customerId; } public function setCustomerId($customerId) { $this->customerId = $customerId; $this->apiParams["customerId"] = $customerId; } public function getCommodityList() { return $this->commodityList; } public function setCommodityList($commodityList) { $this->commodityList = $commodityList; $arr = array(); foreach ($commodityList as $temp){ array_push($arr,$temp->getApiParams()); } $this->apiParams["commodityList"] = $arr; } public function getApiMethodName(){ return 'suning.fourps.storagesub.add'; } public function getApiParams(){ return $this->apiParams; } public function check(){ //非空校验 RequestCheckUtil::checkNotNull($this->warehouseCode, 'warehouseCode'); RequestCheckUtil::checkNotNull($this->storageDate, 'storageDate'); RequestCheckUtil::checkNotNull($this->storageTime, 'storageTime'); RequestCheckUtil::checkNotNull($this->carrier, 'carrier'); RequestCheckUtil::checkNotNull($this->contactsNumber, 'contactsNumber'); RequestCheckUtil::checkNotNull($this->commodityList, 'commodityList'); } public function getBizName(){ return "addStoragesub"; } } class CommodityList { private $apiParams = array(); private $commodityCode; private $supplierCommodityCode; private $count; public function getCommodityCode() { return $this->commodityCode; } public function setCommodityCode($commodityCode) { $this->commodityCode = $commodityCode; $this->apiParams["commodityCode"] = $commodityCode; } public function getSupplierCommodityCode() { return $this->supplierCommodityCode; } public function setSupplierCommodityCode($supplierCommodityCode) { $this->supplierCommodityCode = $supplierCommodityCode; $this->apiParams["supplierCommodityCode"] = $supplierCommodityCode; } public function getCount() { return $this->count; } public function setCount($count) { $this->count = $count; $this->apiParams["count"] = $count; } public function getApiParams(){ return $this->apiParams; } } ?>