where($condition)->order($order)->paginate(['list_rows' => $pagesize, 'query' => request()->param()], false); $pbargainlog_list = $res->items(); $this->page_info = $res; } else { $pbargainlog_list = Db::name('pbargainlog')->where($condition)->order($order)->select()->toArray(); } return $pbargainlog_list; } /** * 获取单个单团信息 * @access public * @author csdeshang * @param type $condition 条件 * @return type */ public function getOnePbargainlog($condition) { return Db::name('pbargainlog')->where($condition)->find(); } /** * 插入砍价开团表 * @access public * @author csdeshang * @param type $data 参数数据 * @return type */ public function addPbargainlog($data) { return Db::name('pbargainlog')->insertGetId($data); } }