123456789101112131415161718192021222324 |
- <?php
- namespace App\Models;
- use App\RedisModel;
- use Illuminate\Database\Eloquent\Model;
- use DB;
- class PastOrder extends Model
- {
- protected $table = 'order_past';
- public $timestamps = false;
-
- /**
- * 添加订单
- */
- public static function addData($data)
- {
- $id = DB::table('order_past')->insertGetId($data);
- return $id;
- }
- }
|