fengxiang
2018-09-27 3c3f6b4816efe48645866a6ebc1581eb522dc229
src/main/java/com/moral/controller/ScreenController.java
@@ -20,6 +20,7 @@
import com.moral.entity.layout.RealTimeDeviceLayout;
import com.moral.service.*;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.math.NumberUtils;
import org.apache.commons.net.ftp.FTPClient;
import org.apache.log4j.Logger;
import org.dom4j.Document;
@@ -153,19 +154,19 @@
                    }else{
                  resultMap.put("type","government");
               }
               Number areaCode = null;
               Number mapAreaCode  = null;
               if(organization.getVillageCode()!=null){
                  areaCode = organization.getVillageCode();
                  mapAreaCode  = organization.getVillageCode();
               }else if (organization.getTownCode()!=null){
                  areaCode = organization.getTownCode();
                  mapAreaCode  = organization.getTownCode();
               }else if(organization.getAreaCode()!=null) {
                  areaCode = organization.getAreaCode();
                  mapAreaCode  = organization.getAreaCode();
               }else if(organization.getCityCode()!=null) {
                  areaCode = organization.getCityCode();
                  mapAreaCode  = organization.getCityCode();
               }else if(organization.getProvinceCode()!=null) {
                  areaCode = organization.getProvinceCode();
                  mapAreaCode  = organization.getProvinceCode();
               }
               resultMap.put("areaCode",areaCode);
               resultMap.put("mapAreaCode ",mapAreaCode );
                }
                resultMap.put("mapPath",areaNamesBuilder.toString());
            }