소스 검색

优化sql

lvzhikai 5 년 전
부모
커밋
019858b55b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/main/java/com/chinaitop/depot/agent/temperature/mapper/BusinessAgentTemperatureMapper.xml

+ 2 - 2
src/main/java/com/chinaitop/depot/agent/temperature/mapper/BusinessAgentTemperatureMapper.xml

@@ -735,7 +735,7 @@
735 735
       t1.UnitID
736 736
     FROM
737 737
       `lsreport_ts`.`data_kcgl_kcsw_default` t1
738
-    LEFT JOIN `depot_shanxi`.`basic_storehouse` t2 ON t1.UnitID = t2.org_id
738
+    LEFT JOIN basic_storehouse t2 ON t1.UnitID = t2.org_id
739 739
     AND t1.ch = t2.storehouse_id
740 740
     AND t2.del_flag = 1
741 741
     AND t2.library_type = '0'
@@ -744,7 +744,7 @@
744 744
         SELECT DISTINCT
745 745
           depot_id
746 746
         FROM
747
-          `depot_shanxi`.`business_agent_depot`
747
+          business_agent_depot
748 748
         WHERE
749 749
           org_id =  #{orgId,jdbcType=INTEGER}
750 750
       )