作者 刘锟

Merge remote-tracking branch 'origin/master' into akun

@@ -131,7 +131,6 @@ class TicketCount extends Command @@ -131,7 +131,6 @@ class TicketCount extends Command
131 if(!empty($timeout_num)){ 131 if(!empty($timeout_num)){
132 $timeout_ratio = round($timeout_num / $ticket_num, 3); 132 $timeout_ratio = round($timeout_num / $ticket_num, 3);
133 } 133 }
134 - $date = date('Y-m-d');  
135 if(!empty($complete_num)){ 134 if(!empty($complete_num)){
136 $complete_ratio = round($complete_num / $ticket_num, 2); 135 $complete_ratio = round($complete_num / $ticket_num, 2);
137 } 136 }
@@ -77,6 +77,9 @@ class UpdateKeyword extends Command @@ -77,6 +77,9 @@ class UpdateKeyword extends Command
77 if($updateObject['type'] == 0){//更新所有关键字 77 if($updateObject['type'] == 0){//更新所有关键字
78 //获取所有关键字的id 78 //获取所有关键字的id
79 $idArr = $keywordModel->selectField(['id'=>['>',0]],'id'); 79 $idArr = $keywordModel->selectField(['id'=>['>',0]],'id');
  80 + if(empty($idArr)){
  81 + return true;
  82 + }
80 if($info['update_method'] != 1){ 83 if($info['update_method'] != 1){
81 $idArr = shuffle($idArr); 84 $idArr = shuffle($idArr);
82 } 85 }
@@ -27,7 +27,7 @@ class ATemplateController extends BaseController @@ -27,7 +27,7 @@ class ATemplateController extends BaseController
27 public function lists(ATemplateLogic $aTemplateLogic){ 27 public function lists(ATemplateLogic $aTemplateLogic){
28 $templateLabel = new TemplateLabel(); 28 $templateLabel = new TemplateLabel();
29 $this->map = $this->searchLabelName($templateLabel); 29 $this->map = $this->searchLabelName($templateLabel);
30 - $filed = ['id','name','image','url','status','upload_id','sort','deleted_status','test_model','created_at','project_id']; 30 + $filed = ['id','name','image','url','status','upload_id','sort','deleted_status','test_model','submit_time','front_status','design_status','created_at','project_id'];
31 $lists = $aTemplateLogic->aTemplateList($this->map,$this->page,$this->row,$this->order,$filed); 31 $lists = $aTemplateLogic->aTemplateList($this->map,$this->page,$this->row,$this->order,$filed);
32 if(!empty($lists) && !empty($lists['list'])){ 32 if(!empty($lists) && !empty($lists['list'])){
33 $manageModel = new Manage(); 33 $manageModel = new Manage();
@@ -127,11 +127,11 @@ class AsideTicketController extends BaseController @@ -127,11 +127,11 @@ class AsideTicketController extends BaseController
127 } 127 }
128 } 128 }
129 if(!empty($this->param['start_at']) && !empty($this->param['end_at'])){ 129 if(!empty($this->param['start_at']) && !empty($this->param['end_at'])){
130 - return $query->whereBetween('created_at',[$this->param['start_at'],$this->param['end_at']]); 130 + $query->whereBetween('created_at',[$this->param['start_at'],$this->param['end_at']]);
131 } 131 }
132 //搜索提交人姓名 132 //搜索提交人姓名
133 if(!empty($this->param['submit_username'])){ 133 if(!empty($this->param['submit_username'])){
134 - return $query->where('submit_username','like','%'.$this->param['submit_username'].'%'); 134 + $query->where('submit_username','like','%'.$this->param['submit_username'].'%');
135 } 135 }
136 // 添加排序功能 136 // 添加排序功能
137 $query->orderBy('status', 'asc'); 137 $query->orderBy('status', 'asc');