|
@@ -46,21 +46,21 @@ class TicketUploadDataLogic extends BaseLogic |
|
@@ -46,21 +46,21 @@ class TicketUploadDataLogic extends BaseLogic |
|
46
|
* @time :2025/9/25 14:17
|
46
|
* @time :2025/9/25 14:17
|
|
47
|
*/
|
47
|
*/
|
|
48
|
public function getDataList($map = [],$page = 1,$row = 20,$order = 'id'){
|
48
|
public function getDataList($map = [],$page = 1,$row = 20,$order = 'id'){
|
|
49
|
- if(isset($this->map['text']) && !empty($this->map['text'])){
|
|
|
|
50
|
- $this->map['text'] = ['like','%'.$this->map['text'].'%'];
|
49
|
+ if(isset($map['text']) && !empty($map['text'])){
|
|
|
|
50
|
+ $map['text'] = ['like','%'.$map['text'].'%'];
|
|
51
|
}
|
51
|
}
|
|
52
|
- ProjectServer::useProject($map['project_id']);
|
|
|
|
53
|
- if(empty($map['type'])){
|
|
|
|
54
|
- $map['type'] = $this->model::TYPE_SIX;//6.0数据
|
52
|
+ if(!isset($map['project_type']) || empty($map['project_type'])){
|
|
|
|
53
|
+ $map['project_type'] == $this->model::TYPE_SIX;
|
|
55
|
}
|
54
|
}
|
|
56
|
$data = $this->model->lists($map,$page,$row,$order);
|
55
|
$data = $this->model->lists($map,$page,$row,$order);
|
|
|
|
56
|
+ if($map['project_type'] == $this->model::TYPE_SIX){
|
|
57
|
if(!empty($data) && !empty($data['list'])){
|
57
|
if(!empty($data) && !empty($data['list'])){
|
|
58
|
foreach ($data['list'] as &$v){
|
58
|
foreach ($data['list'] as &$v){
|
|
59
|
$v = $this->getHandleFileImage($v);
|
59
|
$v = $this->getHandleFileImage($v);
|
|
60
|
$v['text']['cate_name'] = $this->cateText($v['type'],$v['text']['category_id'] ?? []);
|
60
|
$v['text']['cate_name'] = $this->cateText($v['type'],$v['text']['category_id'] ?? []);
|
|
61
|
}
|
61
|
}
|
|
62
|
}
|
62
|
}
|
|
63
|
- DB::disconnect('custom_mysql');
|
63
|
+ }
|
|
64
|
return $this->success($data);
|
64
|
return $this->success($data);
|
|
65
|
}
|
65
|
}
|
|
66
|
|
66
|
|