当字段为时间类型时,拼装sql条件错误的修正

Signed-off-by: 七彩枫叶 <424235748@qq.com>
This commit is contained in:
七彩枫叶
2023-07-24 10:32:58 +00:00
committed by Gitee
parent 119a848643
commit b4c7bcc713

View File

@@ -461,12 +461,12 @@ class AdminController extends BaseController
continue 2;
}
$exp = '=';
$exp = 'between';
if ($arr[0] === '') {
$exp = '<= TIME';
$exp = '<=';
$arr = $arr[1];
} elseif ($arr[1] === '') {
$exp = '>= TIME';
$exp = '>=';
$arr = $arr[0];
}