update
This commit is contained in:
parent
918ceee955
commit
fa35b0f229
@ -55,7 +55,7 @@ class ApplyWithSealLists extends BaseAdminDataLists implements ListsSearchInterf
|
|||||||
*/
|
*/
|
||||||
public function lists(): array
|
public function lists(): array
|
||||||
{
|
{
|
||||||
return ApplyWithSeal::with(['projectInfo'])->where($this->searchWhere)
|
return ApplyWithSeal::with(['projectInfo', 'dept'])->where($this->searchWhere)
|
||||||
->limit($this->limitOffset, $this->limitLength)
|
->limit($this->limitOffset, $this->limitLength)
|
||||||
->order(['id' => 'desc'])
|
->order(['id' => 'desc'])
|
||||||
->select()
|
->select()
|
||||||
|
@ -49,6 +49,7 @@ class ApplyWithSealLogic extends BaseLogic
|
|||||||
'name' => $params['name'],
|
'name' => $params['name'],
|
||||||
'frequency' => $params['frequency'],
|
'frequency' => $params['frequency'],
|
||||||
'limit' => $params['limit'],
|
'limit' => $params['limit'],
|
||||||
|
'org_id' => $params['org_id'],
|
||||||
'depar' => $params['depar'],
|
'depar' => $params['depar'],
|
||||||
'stampman' => $params['stampman'],
|
'stampman' => $params['stampman'],
|
||||||
'project_id' => $params['project_id'],
|
'project_id' => $params['project_id'],
|
||||||
@ -93,6 +94,7 @@ class ApplyWithSealLogic extends BaseLogic
|
|||||||
'name' => $params['name'],
|
'name' => $params['name'],
|
||||||
'frequency' => $params['frequency'],
|
'frequency' => $params['frequency'],
|
||||||
'limit' => $params['limit'],
|
'limit' => $params['limit'],
|
||||||
|
'org_id' => $params['org_id'],
|
||||||
'depar' => $params['depar'],
|
'depar' => $params['depar'],
|
||||||
'stampman' => $params['stampman'],
|
'stampman' => $params['stampman'],
|
||||||
'project_id' => $params['project_id'],
|
'project_id' => $params['project_id'],
|
||||||
|
@ -17,6 +17,7 @@ namespace app\common\model\project_process_management;
|
|||||||
|
|
||||||
use app\common\model\BaseModel;
|
use app\common\model\BaseModel;
|
||||||
use app\common\model\cost_project\CostProject;
|
use app\common\model\cost_project\CostProject;
|
||||||
|
use app\common\model\dept\Dept;
|
||||||
use think\model\concern\SoftDelete;
|
use think\model\concern\SoftDelete;
|
||||||
|
|
||||||
|
|
||||||
@ -35,4 +36,9 @@ class ApplyWithSeal extends BaseModel
|
|||||||
{
|
{
|
||||||
return $this->hasOne(CostProject::class, 'id', 'project_id');
|
return $this->hasOne(CostProject::class, 'id', 'project_id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function dept()
|
||||||
|
{
|
||||||
|
return $this->hasOne(Dept::class, 'id', 'depar');
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user