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

27 lines
679 B
PHP
Raw 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 Order extends Model
{
protected $connection = 'db_wms';
// 表名
protected $name = 'wmsorder';
// 追加属性
protected $append = [
];
public function pack()//yewu为第一张表的字段,employee_num为第二张表的字段
{
return $this->belongsTo('app\common\model\wms\Pack', 'PACKID', 'ID', [], 'LEFT')->setEagerlyType(0);
}
public function subExpress()//yewu为第一张表的字段,employee_num为第二张表的字段
{
return $this->hasMany('app\common\model\wms\Express', 'POSTNUM', 'ORIGINPOSTNUM');
}
}