| 12345678910111213141516171819202122232425262728 |
- <?php
- namespace app\home\model;
- use think\Model;
- /**
- * 用户管理
- */
- class Order extends Model
- {
- public function getOrder($condition)
- {
- $result = $this
- ->alias('a')
- ->join('product b', 'a.product_id = b.product_id')
- ->where($condition)
- ->paginate(10);
- return $result;
- }
- public function addOrder($data)
- {
- $result = $this->insert($data);
- return $result;
- }
- }
|