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