OrderCache.php 501 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2017 https://www.sapixx.com All rights reserved.
  4. * @license Licensed (http://www.apache.org/licenses/LICENSE-2.0).
  5. * @author pillar<ltmn@qq.com>
  6. * 订单数据
  7. */
  8. namespace app\fastshop\model;
  9. use think\Model;
  10. class OrderCache extends Model{
  11. protected $pk = 'id';
  12. protected $table = 'ai_fastshop_order_cache';
  13. //订单列表
  14. public function Order(){
  15. return $this->hasOne('Order','order_no','order_no');
  16. }
  17. }