Merge pull request 'update' (#24) from zhangwei into dev
Reviewed-on: #24
This commit is contained in:
commit
f7d7b6990d
@ -122,9 +122,10 @@ class CustomerDemandController extends BaseAdminController
|
||||
->select()->each(function($item){
|
||||
$item['importance_text'] = $item->importance_text;
|
||||
$item['recording_time'] = date('Y-m-d H:i:s',$item['recording_time']);
|
||||
$project = Project::field('name,custom_id')->where('id',$item['project_id'])->findOrEmpty();
|
||||
$project = Project::field('name,project_code,custom_id')->where('id',$item['project_id'])->findOrEmpty();
|
||||
$custom = Custom::field('name')->where('id',$project['custom_id'])->findOrEmpty();
|
||||
$item['project_name'] = $project['name'];
|
||||
$item['project_code'] = $project['project_code'];
|
||||
$item['custom_name'] = $custom['name'];
|
||||
return $item;
|
||||
})->toArray();
|
||||
|
Loading…
x
Reference in New Issue
Block a user