فهرست منبع

修改 代理商分润汇总查询sql

hgw 3 سال پیش
والد
کامیت
83bf51b3cd
1فایلهای تغییر یافته به همراه5 افزوده شده و 3 حذف شده
  1. 5 3
      mec-biz/src/main/resources/config/mybatis/TenantProxyDividendMapper.xml

+ 5 - 3
mec-biz/src/main/resources/config/mybatis/TenantProxyDividendMapper.xml

@@ -58,9 +58,11 @@
         left join tenant_proxy_info as b on a.proxy_id_ = b.id_
         left join tenant_info as c on a.tenant_id_ = c.id_
         left join sys_user as d on c.recommender_ = d.id_
-        <if test="param.proxyId != null">
-            AND a.proxy_id_ = #{param.proxyId}
-        </if>
+        <where>
+            <if test="param.proxyId != null">
+                AND a.proxy_id_ = #{param.proxyId}
+            </if>
+        </where>
     </select>
 
 </mapper>