bug处理

This commit is contained in:
kerwincui
2022-06-12 02:06:03 +08:00
parent 5f675aa796
commit 9cd08b74d1
6 changed files with 95 additions and 28 deletions

View File

@@ -239,10 +239,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
(
<!--普通用户查询设备中的产品数量-->
<if test="userId != null and userId != 0">
select count(product_id)
select count(distinct product_id)
from iot_device
where user_id = #{userId}
group by product_id
</if>
<!--管理员和租户直接查询产品的数量-->
<if test="userId == null || userId == 0">