Bladeren bron

项目自动化调试,优化sql

zhaoxian 4 jaren geleden
bovenliggende
commit
5ce39ecb04

+ 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>