33 lines
912 B
PHP
33 lines
912 B
PHP
<?php
|
|
namespace Admin\Model;
|
|
use Think\Model\RelationModel;
|
|
class TaskSubModel extends RelationModel{
|
|
|
|
protected $_link = array(
|
|
"operator"=>array(
|
|
'mapping_type' => self::BELONGS_TO,
|
|
'class_name' => 'user',
|
|
'mapping_fields' => 'user_name',
|
|
'foreign_key' => 'subtask_operator_id',
|
|
),
|
|
"qc"=>array(
|
|
'mapping_type' => self::BELONGS_TO,
|
|
'class_name' => 'user',
|
|
'mapping_fields' => 'user_name',
|
|
'foreign_key' => 'subtask_qc_id',
|
|
),
|
|
"task_flow"=>array(
|
|
'mapping_type' => self::BELONGS_TO,
|
|
'class_name' => 'task_flow',
|
|
'foreign_key' => 'task_flow_id',
|
|
),
|
|
"task"=>array(
|
|
'mapping_type' => self::BELONGS_TO,
|
|
'class_name' => 'task',
|
|
'foreign_key' => 'task_id',
|
|
)
|
|
|
|
);
|
|
|
|
|
|
} |