作者 lyh

gx

@@ -5,7 +5,6 @@ namespace App\Console\Commands\DayCount; @@ -5,7 +5,6 @@ namespace App\Console\Commands\DayCount;
5 use App\Models\Projects\InquiryInfo; 5 use App\Models\Projects\InquiryInfo;
6 use Carbon\Carbon; 6 use Carbon\Carbon;
7 use Illuminate\Console\Command; 7 use Illuminate\Console\Command;
8 -use Illuminate\Support\Facades\DB;  
9 use App\Models\Inquiry\InquiryCount as InquiryCountModel; 8 use App\Models\Inquiry\InquiryCount as InquiryCountModel;
10 9
11 /** 10 /**
@@ -203,7 +203,7 @@ class InquiryInfoController extends BaseController @@ -203,7 +203,7 @@ class InquiryInfoController extends BaseController
203 ],[ 203 ],[
204 'type.required' => '类型不能为空', 204 'type.required' => '类型不能为空',
205 ]); 205 ]);
206 - $lists = $inquiryInfoLogic->getNewThirtyCount(); 206 + $lists = $inquiryInfoLogic->getNewCount();
207 $this->response('success',Code::SUCCESS,$lists); 207 $this->response('success',Code::SUCCESS,$lists);
208 } 208 }
209 } 209 }
@@ -224,7 +224,7 @@ class InquiryInfoLogic extends BaseLogic @@ -224,7 +224,7 @@ class InquiryInfoLogic extends BaseLogic
224 * @method :post 224 * @method :post
225 * @time :2023/7/14 16:00 225 * @time :2023/7/14 16:00
226 */ 226 */
227 - public function getNewThirtyCount(){ 227 + public function getNewCount(){
228 $inquiryCountModel = new InquiryCount(); 228 $inquiryCountModel = new InquiryCount();
229 $lists = $inquiryCountModel->lists(['type'=>$this->param['type']],1,90); 229 $lists = $inquiryCountModel->lists(['type'=>$this->param['type']],1,90);
230 $data = $lists['list']; 230 $data = $lists['list'];