PDM更新数据结构后,基础数据查询和BOM初始查询等基本功能都已经OK,待完善和细化相关的上传和下载服务等。

This commit is contained in:
panx
2024-12-29 22:18:05 +08:00
parent d3d429e964
commit d70fcccc1d
99 changed files with 4877 additions and 948 deletions

View File

@@ -0,0 +1,38 @@
<?php
namespace app\admin\model;
use think\Model;
use think\model\concern\SoftDelete;
/**
* pdm_symbol
* <!--partmanage-->
* 原理符号
* Class PdmSymbol
* @package app\admin\model
*/
class PdmSymbol extends Model
{
use SoftDelete;
// 定义时间戳字段名
protected $createTime = 'create_time';
protected $updateTime = 'update_time';
protected $deleteTime = 'delete_time';
/**
* 定义 sa_admin 关联模型
* @localKey createrid
* @bind nickname
*/
public function admin()
{
return $this->hasOne(\app\common\model\system\Admin::Class,'id','creatorid')->bind(['nickname']);
}
}