Commit 96f25f55 authored by yinxiaoling's avatar yinxiaoling

排序倒序

parent c6ce2765
...@@ -24,7 +24,7 @@ class StrategySetController extends Controller ...@@ -24,7 +24,7 @@ class StrategySetController extends Controller
public function index(){ public function index(){
try{ try{
$projectArr = $this->getAllowProjects(1); $projectArr = $this->getAllowProjects(1);
$strategyInfo = StrategySet::all()->toArray(); $strategyInfo = StrategySet::orderBy('created_at','desc')->get()->toArray();
$listInfo = []; $listInfo = [];
foreach ($strategyInfo as $k=>$v){ foreach ($strategyInfo as $k=>$v){
$projectSnTemp = explode("#", $v['project_sn']); $projectSnTemp = explode("#", $v['project_sn']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment