Browse Source

Merge remote-tracking branch 'origin/master'

yumeng 3 năm trước cách đây
mục cha
commit
2245b4242d

+ 6 - 3
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/ai/mapper/xml/KuaishouProjectStrategyMapper.xml

@@ -48,7 +48,6 @@
         <if test="sortCode != '' and sortCode != null ">
             ORDER BY ${sortCode} ${sortType}
         </if>
-
     </select>
 
     <select id="queryAccountList" resultType="com.alibaba.fastjson.JSONObject">
@@ -155,8 +154,12 @@
                  and t2.stat_date &lt;=#{endTime}
                  LEFT JOIN ctop_project t3 ON t1.project_id = t3.id
         where t1.auto_delivery != 3
-        <if test="projectId != null ">
-            and t1.project_id = #{projectId}
+        <if test="projectIds != null and projectIds.size()>0 ">
+            and t1.project_id in
+            <foreach collection="projectIds" item="item" separator=","
+                     open="(" close=")">
+                #{item}
+            </foreach>
         </if>
           <if test="userId != null ">
               and  t3.responsible_id =#{userId}