alias('entityclerk')->join('entityshop entityshop', 'entityshop.entityshop_id = entityclerk.entityshop_id', 'LEFT')->where($condition)->field($field)->order($order)->paginate(['list_rows'=>$pagesize,'query' => request()->param()],false); $this->page_info = $result; return $result->items(); } else { $result = Db::name('entityclerk')->alias('entityclerk')->join('entityshop entityshop', 'entityshop.entityshop_id = entityclerk.entityshop_id', 'LEFT')->where($condition)->field($field)->order($order)->limit($limit)->select()->toArray(); return $result; } } /** * 新增地址 * @author o1h.cn * @param array $data 参数内容 * @return bool 布尔类型的返回结果 */ public function addEntityclerk($data) { return Db::name('entityclerk')->insertGetId($data); } /** * 取单个地址 * @author o1h.cn * @param int $id 地址ID * @return array 数组类型的返回结果 */ public function getOneEntityclerk($condition) { $result = Db::name('entityclerk')->where($condition)->find(); return $result; } /** * 更新地址信息 * @author o1h.cn * @param array $data 更新数据 * @param array $condition 更新条件 * @return bool 布尔类型的返回结果 */ public function editEntityclerk($condition, $data) { return Db::name('entityclerk')->where($condition)->update($data); } /** * 删除地址 * @author o1h.cn * @param array $condition记录ID * @return bool 布尔类型的返回结果 */ public function delEntityclerk($condition) { return Db::name('entityclerk')->where($condition)->delete(); } } ?>