From 7ffb549bc64a1d59a898b014124ee1aa3815e3d8 Mon Sep 17 00:00:00 2001 From: hawind Date: Thu, 1 Jul 2021 10:25:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=A2=E6=88=B7=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=9C=A8=E8=AF=A6=E6=83=85=E5=9C=A8MYSQL8=E4=B8=8Bsql?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Changelog.md | 8 +++++++- app/Gdoo/Customer/Hooks/CustomerTaskDataHook.php | 2 +- database/gdoo-2.3.4-2021-07-01.sql | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 database/gdoo-2.3.4-2021-07-01.sql diff --git a/Changelog.md b/Changelog.md index 41c6fb56..baa7a33e 100644 --- a/Changelog.md +++ b/Changelog.md @@ -22,4 +22,10 @@ 新增 1.单据权限设置子表是否必填选项 -本版本sql文件导入可选,没有不兼容修改 \ No newline at end of file +本版本sql文件导入可选,没有不兼容修改 + +2021-07-01 开源测试版 2.3.4 更新记录 +修正 +1.客户任务详情sql报错 + +SQL更新请执行: database/gdoo-2.3.4-2021-07-01.sql \ No newline at end of file diff --git a/app/Gdoo/Customer/Hooks/CustomerTaskDataHook.php b/app/Gdoo/Customer/Hooks/CustomerTaskDataHook.php index 710071e1..7b52b905 100644 --- a/app/Gdoo/Customer/Hooks/CustomerTaskDataHook.php +++ b/app/Gdoo/Customer/Hooks/CustomerTaskDataHook.php @@ -8,7 +8,7 @@ class CustomerTaskDataHook public function onQueryForm($params) { $q = $params['q']; - $q->orderByRaw('cast(customer_task_data.code as int) asc'); + $q->orderByRaw('customer_task_data.code asc'); $params['q'] = $q; return $params; diff --git a/database/gdoo-2.3.4-2021-07-01.sql b/database/gdoo-2.3.4-2021-07-01.sql new file mode 100644 index 00000000..7fe719a0 --- /dev/null +++ b/database/gdoo-2.3.4-2021-07-01.sql @@ -0,0 +1 @@ +ALTER TABLE `customer_task_data` ADD INDEX `idx_code`(`code`); \ No newline at end of file