新版订单消耗系统

StatementsSealVerify.php 550B

123456789101112131415161718192021
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class StatementsSealVerify extends Model
  5. {
  6. protected $table = 'statements_seal_verify';
  7. public $timestamps = false;
  8. protected static $unguarded = true;
  9. public static function getVerifyList($statementsSealId) {
  10. return self::query()->where('enable', 1)->where('seal_id', $statementsSealId)
  11. ->orderBy('id', 'asc')->get();
  12. }
  13. public static function addVerifyRecord($insertData) {
  14. return self::query()->insert($insertData);
  15. }
  16. }