String area=getPhoneArea(account);
Map<String,String> map=getOperator_idByArea(area);
String operator_id=map.get("operator_id");
String office_id=map.get("office_id");
public static String getPhoneArea(String Phone){
String supplierServerUrl ="http://000.00.0.000:1000/phone_segment_query.do";
String responseStr="";
try {
NameValuePair[] nvp = {
new NameValuePair("phone", Phone)
};
responseStr = HttpPostSend(supplierServerUrl, nvp);
System.out.println("地区:"+responseStr);
return responseStr;
}catch (Exception e) {
}
return responseStr;
}
public static Map<String,String> getOperator_idByArea(String area){
String operator_id="";
String office_id="";
Map<String,String> map=new HashMap<String,String>();
if(area.contains("杭州")){
operator_id="ABSKKJ01";
office_id="B0000";
//operator_id="A000";
//office_id="AQ0000";
}
if(area.contains("宁波")){
operator_id="K0000";
office_id="W000";
}
}