去掉无用的参数

修改表单构建关联字段的逻辑
修改外部插件说明
This commit is contained in:
2021-03-01 03:02:47 +08:00
parent 2418516c49
commit eebbdf279e
63 changed files with 1273 additions and 1380 deletions
+2 -1
View File
@@ -187,7 +187,7 @@ Builder::macro('search', function ($search) {
} elseif ($condition == 'in') {
$this->whereIn($search['field'], $value);
// 销售团队
// 销售
} elseif ($search['field'] == 'customer.region_id') {
if ($value[0]) {
$this->where($search['field'], $value[0]);
@@ -299,6 +299,7 @@ Builder::macro('permission', function ($field, $user = null, $null = false, $all
$where[] = db_instr($fids, 'd'.$_deps);
}
}
$sql = join(' or ', $where);
if ($sql) {
$sql = '('.$sql.')';