diff --git a/crmeb/app/services/system/SystemCrudServices.php b/crmeb/app/services/system/SystemCrudServices.php index 37320f5cc..9ef6baeef 100644 --- a/crmeb/app/services/system/SystemCrudServices.php +++ b/crmeb/app/services/system/SystemCrudServices.php @@ -781,6 +781,9 @@ class SystemCrudServices extends BaseServices $table = new Table($tableName, ['comment' => $tableComment], $this->getAdapter()); //创建字段 foreach ($tableField as $item) { + if (isset($item['primaryKey']) && $item['primaryKey']) { + continue; + } $option = []; if (isset($item['limit'])) { $option['limit'] = (int)$item['limit'];