仓库商品、数据列表、插件渲染细节优化

This commit is contained in:
gongfuxiang
2022-08-14 23:55:50 +08:00
parent 8515d4f08a
commit 88735f590e
5 changed files with 19 additions and 2 deletions

View File

@ -328,7 +328,13 @@ class FormHandleModule
$db->where($this->where);
// 总数
$this->data_total = (int) $db->count();
// 是否去重
if(empty($form_data['distinct']))
{
$this->data_total = (int) $db->count();
} else {
$this->data_total = (int) $db->count('DISTINCT '.$form_data['distinct']);
}
if($this->data_total > 0)
{
// 增加排序、未设置则默认[ id desc ]