From f7b78b3823b1000bf16fd9d324960ae0fc04fbfa Mon Sep 17 00:00:00 2001 From: wl <173@qq.com> Date: 星期二, 03 一月 2023 11:40:58 +0800 Subject: [PATCH] fix: 栏目公告数量 --- ycl-platform/src/main/resources/mapper/store/UmsStoreInfoMapper.xml | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ycl-platform/src/main/resources/mapper/store/UmsStoreInfoMapper.xml b/ycl-platform/src/main/resources/mapper/store/UmsStoreInfoMapper.xml index 9d756ed..8430765 100644 --- a/ycl-platform/src/main/resources/mapper/store/UmsStoreInfoMapper.xml +++ b/ycl-platform/src/main/resources/mapper/store/UmsStoreInfoMapper.xml @@ -20,11 +20,15 @@ t2.`name` as typeName FROM ums_store_store_info t1 - JOIN ums_data_dictionary t2 ON t1.type = t2.id + left JOIN ums_data_dictionary t2 ON t1.type = t2.id <where> <if test="keyword!=null and keyword!=''"> - t1.store_name LIKE CONCAT('%', #{keyword}, '%') + t1.store_number LIKE CONCAT('%', #{keyword}, '%') + </if> + <if test="status!=null and status!='' and status!='0' "> + and t1.status = #{status} </if> </where> + order by t1.id desc </select> </mapper> -- Gitblit v1.8.0