作者 jinglong

调试导出

... ... @@ -2,6 +2,7 @@
namespace app\admin\controller;
use app\api\controller\Common;
use app\common\controller\Backend;
use think\Db;
/**
... ... @@ -104,10 +105,7 @@ class Free extends Backend
return;
}
$ids = explode(',',$ids);
$expTableData = Db::name('free')
->whereIn('id',$ids)
->field('id,user_name,mobile,province,city,district,address,advice,status,createtime')
->select();
$expTableData = Common::selectWhereData('free',['id'=>['in',$ids]],'id,user_name,mobile,province,city,district,address,advice,status,createtime');
$expCellName = [
['id','ID',5],
['user_name','姓名',10],
... ...
... ... @@ -436,6 +436,7 @@ trait Backend
}
}
if ($row) {
var_dump($row);exit;
$insert[] = $row;
}
}
... ...