更新
This commit is contained in:
@@ -10,4 +10,7 @@ namespace app\common\model;
|
||||
class ExpressQueryLog extends BaseModel
|
||||
{
|
||||
protected $name = 'express_query_log';
|
||||
|
||||
// 表只有 create_time、无 update_time;config/database.php 全局 auto_timestamp=true,需显式关闭避免 Unknown column 'update_time'
|
||||
protected $autoWriteTimestamp = false;
|
||||
}
|
||||
|
||||
@@ -11,6 +11,9 @@ class ExpressStateLog extends BaseModel
|
||||
{
|
||||
protected $name = 'express_state_log';
|
||||
|
||||
// 表只有 create_time、无 update_time;config/database.php 全局 auto_timestamp=true,需显式关闭避免 Unknown column 'update_time'
|
||||
protected $autoWriteTimestamp = false;
|
||||
|
||||
/**
|
||||
* 关联主表
|
||||
*/
|
||||
|
||||
@@ -11,6 +11,9 @@ class ExpressTrace extends BaseModel
|
||||
{
|
||||
protected $name = 'express_trace';
|
||||
|
||||
// 表只有 create_time、无 update_time;config/database.php 全局 auto_timestamp=true,需显式关闭避免 Unknown column 'update_time'
|
||||
protected $autoWriteTimestamp = false;
|
||||
|
||||
/**
|
||||
* 关联主表
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace app\common\model\finance;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class DeptPerformanceTarget extends BaseModel
|
||||
{
|
||||
protected $name = 'dept_performance_target';
|
||||
|
||||
protected $autoWriteTimestamp = true;
|
||||
|
||||
protected $createTime = 'create_time';
|
||||
|
||||
protected $updateTime = 'update_time';
|
||||
}
|
||||
Reference in New Issue
Block a user