liufumingren e8605149c0 初始化
2026-08-06 17:04:35 +08:00

24 lines
594 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace app\common\model\wms;
use think\Model;
class Warestore extends Model
{
protected $connection = 'db_wms';
// 表名
protected $name = 'warestore';
// 自动写入时间戳字段
protected $autoWriteTimestamp = false;
// 定义时间戳字段名
protected $createTime = false;
protected $updateTime = false;
public function employees()//yewu为第一张表的字段,employee_num为第二张表的字段
{
return $this->belongsTo('app\common\model\wms\Store', 'STOREID', 'STOREID', [], 'LEFT')->setEagerlyType(0);
}
}