소스 검색

项目自动化调试,优化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>