💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
### c\_getCountByName **根据条件获取业务对象数量** ~~~ function c_getCountByName(){ $nameCol=$_REQUEST ['nameCol']; $nameVal=$_REQUEST ['nameVal']; $idVal=$_REQUEST ['idVal']; $idCol=$_REQUEST ['idCol']; $nameVal=util_jsonUtil::iconvUTF2GB($nameVal); $checkParam=$_REQUEST ['checkParam']; if(!empty($idVal)){ $checkParam[$idCol]=$idVal; $checkParam[$nameCol]=$nameVal; $objs=$this->service->find($checkParam); if(is_array($objs)&&count($objs)>0){ echo 1; }else{ echo 0; } }else{ $num = $this->service->findCount ( array($nameCol=>$nameVal)); echo $num; } } ~~~