Explorar o código

②修改通用文案库的过滤条件为主表的accountId

huangxuechao %!s(int64=4) %!d(string=hai) anos
pai
achega
e68b869db1

+ 1 - 1
jeecg-boot-bytedance/src/main/java/org/jeecg/modules/bytedance/advertise/mapper/xml/ByteDanceGeneralCopywriterMapper.xml

@@ -24,7 +24,7 @@
         WHERE
             a.`status` = 0
             <if test="userId!=null and userId!=''">and e.user_id = #{userId}</if>
-            <if test="accountId!=null and accountId!=''">and b.account_id = #{accountId}</if>
+            <if test="accountId!=null and accountId!=''">and a.account_id = #{accountId}</if>
             <if test="keyWord!=null and keyWord!=''">and a.text_copywriter like concat('%',#{keyWord},'%')</if>
             <if test="startTime!=null and startTime!=''">and STR_TO_DATE(d.stat_datetime,'%Y-%m-%d') &gt;= STR_TO_DATE(#{startTime},'%Y-%m-%d')</if>
             <if test="endTime!=null and endTime!=''">and STR_TO_DATE(d.stat_datetime,'%Y-%m-%d') &lt;= STR_TO_DATE(#{endTime},'%Y-%m-%d')</if>