企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
### isRepeat **检查对象是否重复** **参数** \* @新增检查重复无需传入checkId \* @修改检查重复需要排除修改对象id ~~~ function isRepeat($searchArr, $checkId) { $countsql = "select count(id) as num from " . $this->tbl_name . " c"; $this->isBlankSearch=true; $countsql = $this->createQuery ( $countsql, $searchArr ); if ($checkId != '') { $countsql .= " and c.id!=" . $checkId; } //echo $countsql; $num = $this->queryCount ( $countsql ); // echo $num; return ($num == 0 ? false : true); } ~~~