更新数据维护和查询等功能,适配CIS数据表实体表善事查询。
This commit is contained in:
@@ -1,27 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\model;
|
||||
|
||||
use think\Model;
|
||||
use think\model\concern\SoftDelete;
|
||||
|
||||
/**
|
||||
* pdm_partitem_relation
|
||||
* <!--partmanage-->
|
||||
* PN关系维护
|
||||
* Class PdmPartitemRelation
|
||||
* @package app\admin\model
|
||||
*/
|
||||
class PdmPartitemRelation extends Model
|
||||
{
|
||||
|
||||
use SoftDelete;
|
||||
|
||||
// 定义时间戳字段名
|
||||
protected $createTime = 'create_time';
|
||||
protected $updateTime = 'update_time';
|
||||
protected $deleteTime = 'delete_time';
|
||||
|
||||
<?php
|
||||
|
||||
namespace app\admin\model;
|
||||
|
||||
use think\Model;
|
||||
use think\model\concern\SoftDelete;
|
||||
|
||||
/**
|
||||
* pdm_partitem_relation
|
||||
* <!--partmanage-->
|
||||
* PN关系维护
|
||||
* Class PdmPartitemRelation
|
||||
* @package app\admin\model
|
||||
*/
|
||||
class PdmPartitemRelation extends Model
|
||||
{
|
||||
|
||||
use SoftDelete;
|
||||
|
||||
// 定义时间戳字段名
|
||||
protected $createTime = 'create_time';
|
||||
protected $updateTime = 'update_time';
|
||||
protected $deleteTime = 'delete_time';
|
||||
|
||||
|
||||
/**
|
||||
* 定义 sa_admin 关联模型
|
||||
@@ -39,7 +39,7 @@ class PdmPartitemRelation extends Model
|
||||
*/
|
||||
public function pdmPartitemIndex()
|
||||
{
|
||||
return $this->hasOne(\app\admin\model\PdmPartitemIndex::Class,'partnumber','partnumber')->bind(['description','value','purchasecode']);
|
||||
return $this->hasOne(\app\admin\model\PdmPartitemIndex::Class,'partnumber','partnumber')->bind(['description','value','purchasecode','datasheet']);
|
||||
}
|
||||
/**
|
||||
* 定义 sa_pdm_symbol 关联模型
|
||||
@@ -48,7 +48,7 @@ class PdmPartitemRelation extends Model
|
||||
*/
|
||||
public function pdmSymbol()
|
||||
{
|
||||
return $this->hasOne(\app\admin\model\PdmSymbol::Class,'id','symbolid')->bind(['symbolname','view','attachment']);
|
||||
return $this->hasOne(\app\admin\model\PdmSymbol::Class,'id','symbolid')->bind(['symbolname']);
|
||||
}
|
||||
/**
|
||||
* 定义 sa_pdm_footprint 关联模型
|
||||
@@ -57,7 +57,7 @@ class PdmPartitemRelation extends Model
|
||||
*/
|
||||
public function pdmFootprint()
|
||||
{
|
||||
return $this->hasOne(\app\admin\model\PdmFootprint::Class,'id','footprintid')->bind(['footprint','manufacture','view','attachment']);
|
||||
return $this->hasOne(\app\admin\model\PdmFootprint::Class,'id','footprintid')->bind(['footprint','manufacture']);
|
||||
}
|
||||
/**
|
||||
* 定义 sa_department 关联模型
|
||||
@@ -68,7 +68,7 @@ class PdmPartitemRelation extends Model
|
||||
{
|
||||
return $this->hasOne(\app\common\model\system\Department::Class,'id','departmentid')->bind(['title']);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user