瀏覽代碼

compound pdf

master
Siti Rahayu 5 年之前
父節點
當前提交
83ac6caf67
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      app/Http/Controllers/Main/TaskController.php

+ 5
- 0
app/Http/Controllers/Main/TaskController.php 查看文件

$site = SiteSetting::first(); $site = SiteSetting::first();
$compound = Compound::with('ConfidentialFile','Attachment','CompoundInvestigation')->where('kpd', $kpd)->first(); $compound = Compound::with('ConfidentialFile','Attachment','CompoundInvestigation')->where('kpd', $kpd)->first();
if(empty($compound))
{
$kpd = (int)$kpd;
$compound = Compound::with('ConfidentialFile','Attachment','CompoundInvestigation')->where('kpd', $kpd)->first();
}
$file = ConfidentialFile::with(['Memo' => function($q){ $file = ConfidentialFile::with(['Memo' => function($q){
$q->orderBy('updated_at','ASC'); $q->orderBy('updated_at','ASC');
}],['Investigation' => function($q){ }],['Investigation' => function($q){

Loading…
取消
儲存