This commit is contained in:
MeSHard
2025-12-01 11:19:23 +08:00
parent adc5fd81aa
commit b22d09bd39
4440 changed files with 815952 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
<?php
namespace app\admin\model\yq\perimeter;
use think\Model;
class Enterprise extends Model
{
// 表名
protected $name = 'perimeter';
// 自动写入时间戳字段
protected $autoWriteTimestamp = false;
// 定义时间戳字段名
protected $createTime = false;
protected $updateTime = false;
protected $deleteTime = false;
// 追加属性
protected $append = [
];
}

View File

@@ -0,0 +1,40 @@
<?php
namespace app\admin\model\yq\perimeter;
use think\Model;
class EnterpriseAlarm extends Model
{
// 表名
protected $name = 'enterprise_police';
// 自动写入时间戳字段
protected $autoWriteTimestamp = false;
// 定义时间戳字段名
protected $createTime = false;
protected $updateTime = false;
protected $deleteTime = false;
// 追加属性
protected $append = [
];
}

View File

@@ -0,0 +1,61 @@
<?php
namespace app\admin\model\yq\perimeter;
use app\admin\model\yq\base_config\Perimeter;
use app\admin\model\yq\electronic_waybill\Waybill;
use think\Model;
class EnterpriseCheck extends Model
{
// 表名
protected $name = 'check_record';
// 自动写入时间戳字段
protected $autoWriteTimestamp = false;
// 定义时间戳字段名
protected $createTime = false;
protected $updateTime = false;
protected $deleteTime = false;
// 追加属性
protected $append = [
'status_text'
];
public function getStatusList()
{
return ['1' => __('Status 1')];
}
public function getStatusTextAttr($value, $data)
{
$value = $value ?: ($data['status'] ?? '');
$list = $this->getStatusList();
return $list[$value] ?? '';
}
public function perimeter()
{
return $this->belongsTo(Perimeter::class, 'check_uid', 'id')->setEagerlyType(1);
}
public function waybill()
{
return $this->belongsTo(Waybill::class, 'waybill_id', 'id')->setEagerlyType(1);
}
}

View File

@@ -0,0 +1,32 @@
<?php
namespace app\admin\model\yq\perimeter;
use app\admin\model\yq\base_config\Perimeter;
use app\admin\model\yq\electronic_waybill\Waybill;
use think\Model;
class EnterpriseVehicle extends Model
{
// 表名
protected $name = 'perimeter_log';
// 自动写入时间戳字段
protected $autoWriteTimestamp = false;
// 定义时间戳字段名
protected $createTime = false;
protected $updateTime = false;
protected $deleteTime = false;
// 追加属性
protected $append = [
];
}