1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?php
- namespace app\common\model;
- use think\facade\Db;
- class Sellerlog extends BaseModel {
- public $page_info;
-
-
- public function getSellerlogList($condition, $pagesize = '', $order = '', $field = '*') {
- if($pagesize){
- $result = Db::name('sellerlog')->field($field)->where($condition)->order($order)->paginate(['list_rows'=>$pagesize,'query' => request()->param()],false);
- $this->page_info = $result;
- return $result->items();
- }else{
- $result = Db::name('sellerlog')->field($field)->where($condition)->order($order)->select()->toArray();
- return $result;
- }
- }
-
- public function getSellerlogInfo($condition) {
- $result = Db::name('sellerlog')->where($condition)->find();
- return $result;
- }
-
- public function addSellerlog($data) {
- return Db::name('sellerlog')->insertGetId($data);
- }
-
- public function delSellerlog($condition) {
- return Db::name('sellerlog')->where($condition)->delete();
- }
- }
|