mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-06 18:12:50 +08:00
自动生成CURD导出生成关联查询
This commit is contained in:
@@ -12,10 +12,10 @@ use think\console\Output;
|
||||
class Version extends Command
|
||||
{
|
||||
|
||||
const VERSION = 'v2.0.3';
|
||||
const VERSION = 'v2.0.4';
|
||||
|
||||
const COMMENT = [
|
||||
'优化导出功能,兼容自定义参数、兼容关联查询用法',
|
||||
'自动生成CURD导出生成关联查询',
|
||||
];
|
||||
|
||||
protected function configure()
|
||||
|
||||
@@ -72,8 +72,8 @@ class ExcelTools
|
||||
}
|
||||
} else if (array_key_exists($field_key, $select_fields)) {
|
||||
// 需要设置选项
|
||||
|
||||
$cel = $select_fields[$field_key][$value];
|
||||
|
||||
$cel = $select_fields[$field_key][$value] ?? '';
|
||||
} else if (in_array($field_key, $date_fields)) {
|
||||
if (empty($value)) {
|
||||
$cel = '';
|
||||
|
||||
Reference in New Issue
Block a user