| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?php
- namespace app\common\model;
- class CompanyModel extends BaseModel
- {
- protected $table = 'erp_company';
- protected function genSchema(array $schema)
- {
- // TODO: Implement genSchema() method.
- }
- public function findAll() {
- return $this->where('is_delete', 0)->select();
- }
- public function findByPaginate(array $params) {
- $where = [
- ['is_delete', '=', 0]
- ];
- return $this->where($where)
- ->order('create_time','desc')
- ->paginate(['list_rows'=>10, "query" => $params]);
- }
- }
|