@ -1903,6 +1903,7 @@ public class CollectController extends Controller {
/ * *
* 功 能 : 获 取 天 喻 的 所 有 单 位 列 表
* http : //10.10.21.20:9000/QingLong/collect/getTyAllBureau
*
* @throws InterruptedException
* /
@Before ( { GET . class , RepeatIntercetpor . class } )
@ -1931,9 +1932,22 @@ public class CollectController extends Controller {
for ( int i = 0 ; i < ja . size ( ) ; i + + ) list . add ( ja . getJSONObject ( i ) ) ;
}
//resultA是拼装好的List集合
SortClass sort = new SortClass ( ) ;
Collections . sort ( list , sort ) ;
//我们系统中的所有单位
Map < String , Record > map = cm . getAllMatchBureau ( ) ;
for ( JSONObject jo : list ) {
if ( map . containsKey ( jo . getString ( "org_id" ) ) ) {
String third_party_org_id = jo . getString ( "org_id" ) ;
Record record = map . get ( third_party_org_id ) ;
jo . put ( "is_match" , 1 ) ;
jo . put ( "match_org_id" , record . getStr ( "org_id" ) ) ;
jo . put ( "match_org_name" , record . getStr ( "org_name" ) ) ;
}
else jo . put ( "is_match" , 0 ) ;
}
renderJson ( list ) ;
}
}