diff --git a/Application/Admin/Controller/TestResourceController.class.php b/Application/Admin/Controller/TestResourceController.class.php
index 22169c4a3..9d641f429 100644
--- a/Application/Admin/Controller/TestResourceController.class.php
+++ b/Application/Admin/Controller/TestResourceController.class.php
@@ -396,6 +396,9 @@ class TestResourceController extends ThinkController
$map['create_time'] = array('BETWEEN',array(strtotime($_REQUEST['start']),strtotime($_REQUEST['end'])+24*60*60-1));
unset($_REQUEST['start']);unset($_REQUEST['end']);
}
+ if(!empty($_REQUEST['promote_id'])||$_REQUEST['promote_id']=='0') {
+ $map['tab_test_resource.promote_id']=I('promote_id');
+ }
//
$res = D("test_resource")->getResourceCout($map,$page,$row);
// dump($res);
diff --git a/Application/Admin/Model/TestResourceModel.class.php b/Application/Admin/Model/TestResourceModel.class.php
index 5b601848b..ffe13d375 100644
--- a/Application/Admin/Model/TestResourceModel.class.php
+++ b/Application/Admin/Model/TestResourceModel.class.php
@@ -33,9 +33,9 @@ class TestResourceModel extends Model{
$promote_id=session("promote_auth.pid");
//获取基本信息
$res = $this
- ->table("tab_test_resource as test")
- ->field("test.*,user.check_status")
- ->join('tab_user user on test.user_id=user.id','left')
+ ->table("tab_test_resource")
+ ->field("tab_test_resource.*,user.check_status")
+ ->join('tab_user user on tab_test_resource.user_id=user.id','left')
->page($page,$row)
->order("create_time desc")
->where($map)
diff --git a/Application/Admin/View/TestResource/index.html b/Application/Admin/View/TestResource/index.html
index 483c0b212..ca242a95f 100644
--- a/Application/Admin/View/TestResource/index.html
+++ b/Application/Admin/View/TestResource/index.html
@@ -66,6 +66,21 @@