|
...
|
...
|
@@ -46,21 +46,21 @@ class TicketUploadDataLogic extends BaseLogic |
|
|
|
* @time :2025/9/25 14:17
|
|
|
|
*/
|
|
|
|
public function getDataList($map = [],$page = 1,$row = 20,$order = 'id'){
|
|
|
|
if(isset($this->map['text']) && !empty($this->map['text'])){
|
|
|
|
$this->map['text'] = ['like','%'.$this->map['text'].'%'];
|
|
|
|
if(isset($map['text']) && !empty($map['text'])){
|
|
|
|
$map['text'] = ['like','%'.$map['text'].'%'];
|
|
|
|
}
|
|
|
|
ProjectServer::useProject($map['project_id']);
|
|
|
|
if(empty($map['type'])){
|
|
|
|
$map['type'] = $this->model::TYPE_SIX;//6.0数据
|
|
|
|
if(!isset($map['project_type']) || empty($map['project_type'])){
|
|
|
|
$map['project_type'] == $this->model::TYPE_SIX;
|
|
|
|
}
|
|
|
|
$data = $this->model->lists($map,$page,$row,$order);
|
|
|
|
if(!empty($data) && !empty($data['list'])){
|
|
|
|
foreach ($data['list'] as &$v){
|
|
|
|
$v = $this->getHandleFileImage($v);
|
|
|
|
$v['text']['cate_name'] = $this->cateText($v['type'],$v['text']['category_id'] ?? []);
|
|
|
|
if($map['project_type'] == $this->model::TYPE_SIX){
|
|
|
|
if(!empty($data) && !empty($data['list'])){
|
|
|
|
foreach ($data['list'] as &$v){
|
|
|
|
$v = $this->getHandleFileImage($v);
|
|
|
|
$v['text']['cate_name'] = $this->cateText($v['type'],$v['text']['category_id'] ?? []);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
DB::disconnect('custom_mysql');
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|