@ -2551,11 +2551,7 @@ public class CollectModel {
* @return
* /
public Map < String , Record > getAllMatchBureau ( ) {
GlobalModel gm = new GlobalModel ( ) ;
String city_id = gm . getGlobalValueByKey ( "install_area" ) ;
String sql = "select org_id,org_name,third_party_id from t_base_organization where city_id=? and bureau_id=org_id" ;
List < Record > list = Db . find ( sql , city_id ) ;
List < Record > list = getAllBureau ( ) ;
Map < String , Record > _map = new HashMap < > ( ) ;
for ( Record record : list ) {
String third_party_id = record . getStr ( "third_party_id" ) ;
@ -2564,4 +2560,17 @@ public class CollectModel {
}
return _map ;
}
/ * *
* 功 能 : 获 取 我 系 统 中 所 有 有 效 单 位
* @return
* /
public List < Record > getAllBureau ( ) {
GlobalModel gm = new GlobalModel ( ) ;
String city_id = gm . getGlobalValueByKey ( "install_area" ) ;
String sql = "select org_id,org_name,third_party_id,CASE WHEN third_party_id IS NULL THEN 0 ELSE 1 END AS is_match from t_base_organization where city_id=? and bureau_id=org_id and is_virtual=0" ;
List < Record > list = Db . find ( sql , city_id ) ;
return list ;
}
}