he2802 2 anni fa
parent
commit
309b32d5b7

+ 3 - 0
zhongzheng-system/src/main/resources/mapper/modules/top/TopCostTpMapper.xml

@@ -31,6 +31,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="tpName != null and tpName != ''">
             AND ct.tp_name  like concat('%', #{tpName}, '%')
         </if>
+        <if test="tenantId != null and tenantId != ''">
+            AND ct.tenant_id  = #{tenantId}
+        </if>
         <if test="tenantSort != null and tenantSort == 1">
             ORDER BY ct.tenant_id
         </if>