作者 张关杰

Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into bate

@@ -35,6 +35,7 @@ class BTemplateLogController extends BaseController @@ -35,6 +35,7 @@ class BTemplateLogController extends BaseController
35 public function lists(BTemplateLog $bTemplateLog){ 35 public function lists(BTemplateLog $bTemplateLog){
36 // unset($this->map['template_id']); 36 // unset($this->map['template_id']);
37 $this->map['project_id'] = $this->user['project_id']; 37 $this->map['project_id'] = $this->user['project_id'];
  38 + $this->map['source'] = 1;
38 $this->map['is_custom'] = 0; 39 $this->map['is_custom'] = 0;
39 $lists = $bTemplateLog->lists($this->map,$this->page,$this->row,$this->order,['id','template_id','operator_id','source','created_at','updated_at']); 40 $lists = $bTemplateLog->lists($this->map,$this->page,$this->row,$this->order,['id','template_id','operator_id','source','created_at','updated_at']);
40 if(!empty($lists['list'])){ 41 if(!empty($lists['list'])){
@@ -127,7 +127,7 @@ class CustomTemplateController extends BaseController @@ -127,7 +127,7 @@ class CustomTemplateController extends BaseController
127 ]); 127 ]);
128 $this->map['source'] = 9; 128 $this->map['source'] = 9;
129 $this->map['is_custom'] = 0; 129 $this->map['is_custom'] = 0;
130 - $lists = $bTemplateLog->list($this->map,'id',['id','template_id','operator_id','source','created_at','updated_at']); 130 + $lists = $bTemplateLog->list($this->map,'id',['id','template_id','operator_id','source','created_at','updated_at'],'desc',10);
131 if(!empty($lists)){ 131 if(!empty($lists)){
132 $templateModel = new Template(); 132 $templateModel = new Template();
133 $userModel = new User(); 133 $userModel = new User();