/** * WaveBuildAct::get_wave_config() * 获取波次配置表信息 * @param int $waveType 配货单类型。1=>>单个发货单 2=>>单SKU 3=>>多SKU * @param integer $limitType 限制条件种类:1配货单 2单发货单上限 3单发货单拆分规则 * @return void */ public function get_wave_config($waveType, $limitType = 1) { $waveType = intval($waveType); $limitType = intval($limitType); $waveType = $waveType ? $waveType : 1; $limitType = $limitType ? $limitType : 1; $return = array(); $config = WhWaveConfigModel::select(array('waveType' => $waveType, 'limitType' => $limitType)); $config = $config[0]; unset($config['id'], $config['waveType'], $config['limitType']); //print_r($config);exit; return $config; }