This commit is contained in:
chenbo 2024-02-29 09:52:49 +08:00
parent 918ceee955
commit fa35b0f229
3 changed files with 9 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class ApplyWithSealLists extends BaseAdminDataLists implements ListsSearchInterf
*/
public function lists(): array
{
return ApplyWithSeal::with(['projectInfo'])->where($this->searchWhere)
return ApplyWithSeal::with(['projectInfo', 'dept'])->where($this->searchWhere)
->limit($this->limitOffset, $this->limitLength)
->order(['id' => 'desc'])
->select()

View File

@ -49,6 +49,7 @@ class ApplyWithSealLogic extends BaseLogic
'name' => $params['name'],
'frequency' => $params['frequency'],
'limit' => $params['limit'],
'org_id' => $params['org_id'],
'depar' => $params['depar'],
'stampman' => $params['stampman'],
'project_id' => $params['project_id'],
@ -93,6 +94,7 @@ class ApplyWithSealLogic extends BaseLogic
'name' => $params['name'],
'frequency' => $params['frequency'],
'limit' => $params['limit'],
'org_id' => $params['org_id'],
'depar' => $params['depar'],
'stampman' => $params['stampman'],
'project_id' => $params['project_id'],

View File

@ -17,6 +17,7 @@ namespace app\common\model\project_process_management;
use app\common\model\BaseModel;
use app\common\model\cost_project\CostProject;
use app\common\model\dept\Dept;
use think\model\concern\SoftDelete;
@ -35,4 +36,9 @@ class ApplyWithSeal extends BaseModel
{
return $this->hasOne(CostProject::class, 'id', 'project_id');
}
public function dept()
{
return $this->hasOne(Dept::class, 'id', 'depar');
}
}