Преглед на файлове

项目自动化调试,优化sql

zhaoxian преди 4 години
родител
ревизия
5ce39ecb04
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/ai/mapper/xml/KuaishouProjectStrategyMapper.xml

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

@@ -37,8 +37,8 @@
                   <if test="dataStatus != null ">
                     and  k1.data_status = #{dataStatus}
                     </if>
-                    <if test="responsibleName != null ">
-                     and k3.responsible_name = LIKE CONCAT('%',#{responsibleName},'%')
+                    <if test="userId != null ">
+                     and k3.responsible_id = #{userId}
                     </if>
             ) t1
                 LEFT JOIN ctop_etl_kuaishou_report_account_daily t2 ON t2.account_id = t1.accountId
@@ -151,8 +151,8 @@
         <if test="projectId != null ">
             and t1.project_id = #{projectId}
         </if>
-          <if test="authName != null ">
-              and  t1.auth_name LIKE CONCAT('%',#{authName},'%')
+          <if test="userId != null ">
+              and  t3.responsible_id =#{userId}
         </if>
     </select>