作者 lyh

gx

@@ -81,7 +81,6 @@ class SyncProject extends Command @@ -81,7 +81,6 @@ class SyncProject extends Command
81 } 81 }
82 if($data['data']['order_type'] == '首次'){ 82 if($data['data']['order_type'] == '首次'){
83 $this->sync($data['data'],$is_update); 83 $this->sync($data['data'],$is_update);
84 -  
85 //同步aicc 84 //同步aicc
86 if($data['data']['exclusive_aicc']){ 85 if($data['data']['exclusive_aicc']){
87 $this->toAicc($data['data']); 86 $this->toAicc($data['data']);
@@ -197,7 +196,8 @@ class SyncProject extends Command @@ -197,7 +196,8 @@ class SyncProject extends Command
197 'hagro' => $param['exclusive_hagro'], 196 'hagro' => $param['exclusive_hagro'],
198 "exclusive_hagro_day" => $param['exclusive_hagro_day'], 197 "exclusive_hagro_day" => $param['exclusive_hagro_day'],
199 'notice_order_id' => $param['id'], 198 'notice_order_id' => $param['id'],
200 - 'type' => $is_update 199 + 'type' => $is_update,
  200 + 'is_upgrade'=>$is_update,
201 ], 201 ],
202 'deploy_build' => [ 202 'deploy_build' => [
203 'service_duration' => $param['years'], 203 'service_duration' => $param['years'],
@@ -86,6 +86,22 @@ class ProjectController extends BaseController @@ -86,6 +86,22 @@ class ProjectController extends BaseController
86 $query = $this->searchManager($query); 86 $query = $this->searchManager($query);
87 //按类型搜索 87 //按类型搜索
88 $query = $this->searchContent($query); 88 $query = $this->searchContent($query);
  89 + //搜索升级项目
  90 + $query = $this->searchUpgrade($query);
  91 + return $query;
  92 + }
  93 +
  94 + /**
  95 + * @remark :搜索升级项目
  96 + * @name :searchUpgrade
  97 + * @author :lyh
  98 + * @method :post
  99 + * @time :2023/11/6 16:27
  100 + */
  101 + public function searchUpgrade(&$query){
  102 + if(isset($this->map['is_upgrade']) && !empty($this->map['is_upgrade'])){
  103 + $query->where('gl_project.is_upgrade', $this->map['is_upgrade']);
  104 + }
89 return $query; 105 return $query;
90 } 106 }
91 107