diff --git a/emis-biz/src/main/resources/mapper/EmisSiteMapper.xml b/emis-biz/src/main/resources/mapper/EmisSiteMapper.xml
index 787078e6f..3a0a51325 100644
--- a/emis-biz/src/main/resources/mapper/EmisSiteMapper.xml
+++ b/emis-biz/src/main/resources/mapper/EmisSiteMapper.xml
@@ -172,7 +172,6 @@
and site_code = #{siteCode} and site_name like concat('%', #{siteName}, '%') and site_name_en like concat('%', #{siteNameEn}, '%')
- and parent_site_code = #{parentSiteCode} and default_currency like concat('%', #{defaultCurrency}, '%') and cut_off_time like concat('%', #{cutOffTime}, '%') and superior_finance_center_code = #{superiorFinanceCenterCode}
@@ -294,10 +293,31 @@
and update_time = #{updateTime} and create_site like concat('%', #{createSite}, '%') and update_site like concat('%', #{updateSite}, '%')
+
+
+
+
+
+
+
+ AND u.site_code in (
+ SELECT t1.site_code FROM (
+ SELECT * FROM emis_site WHERE parent_site_code IS NOT NULL ) t1,( SELECT @pid :=
+ #{parentSiteCode} ) pd
+ WHERE FIND_IN_SET( parent_site_code, @pid ) > 0 AND @pid := concat(@pid,',',site_code)
+ )
+
+
+ AND u.parent_site_code=#{parentSiteCode}
+
+
+
order by order_num desc
+
+