|
|
|
@ -78,7 +78,7 @@ class TestResourceController extends ThinkController
|
|
|
|
|
if(!empty(I('user_account'))){
|
|
|
|
|
$map['tab_test_resource.user_account']=['like','%'.I('user_account').'%'];
|
|
|
|
|
}
|
|
|
|
|
if(!empty(I('promote_id'))){
|
|
|
|
|
if(!empty(I('promote_id')) || I('promote_id')=="0"){
|
|
|
|
|
|
|
|
|
|
$promote_id = I('promote_id');
|
|
|
|
|
|
|
|
|
@ -90,6 +90,11 @@ class TestResourceController extends ThinkController
|
|
|
|
|
$promnote_arr = implode(",",$promnote_arr);
|
|
|
|
|
|
|
|
|
|
$map['tab_test_resource.promote_id']=['in',$promnote_arr];
|
|
|
|
|
|
|
|
|
|
if (!I("promote_level")) {
|
|
|
|
|
$map['tab_test_resource.promote_id']=I('promote_id');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//为数据权限添加
|
|
|
|
|
setPowerPromoteIds($map, 'tab_test_resource.promote_id');
|
|
|
|
|