select(array('servicer_id' => $id)); if ($data) { $status = Dever::db('scm_servicer/store')->config['status']; foreach ($data as $k => $v) { $status_name = ''; if ($v['status'] == 2) { $status_name = '(已禁用)'; } $oper = '仓库明细'; $table['body'][$k][] = $v['name'] . $status_name; $table['body'][$k][] = $v['code']; $table['body'][$k][] = $oper; } } $body[''] = array ( 'type' => 'table', 'content' => $table, ); if ($table['body']) { return Dever::show('', $body); } else { return '暂无'; } } }