update
This commit is contained in:
parent
9a86b8d49a
commit
bbfae4c1cd
@ -226,8 +226,7 @@ class CostConsultationReportController extends BaseAdminController
|
|||||||
$where[] = ['project_name','like','%'.$params['project_name'].'%'];
|
$where[] = ['project_name','like','%'.$params['project_name'].'%'];
|
||||||
}
|
}
|
||||||
if(!empty($params['date'])){
|
if(!empty($params['date'])){
|
||||||
$date = explode(',',$params['date']);
|
$where[] = ['apptime','between',[$params['date']]];
|
||||||
$where[] = ['apptime','between',[$date]];
|
|
||||||
}
|
}
|
||||||
$lists = ProjectCommission::field('id,project_id')->where($where)->page($page_no, $page_size)->order('id desc')->select()->each(function($data){
|
$lists = ProjectCommission::field('id,project_id')->where($where)->page($page_no, $page_size)->order('id desc')->select()->each(function($data){
|
||||||
$project = CostProject::field('project_name,project_num,contract_id')->where('id',$data['project_id'])->findOrEmpty();
|
$project = CostProject::field('project_name,project_num,contract_id')->where('id',$data['project_id'])->findOrEmpty();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user