Commit 01e50293509816822b5708d2848ddaf802d44ede

Authored by jiangjiazhi
1 parent 0647f4f164

增加退出登录接口

Showing 1 changed file with 19 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/CommonsHelper.java View file @ 01e5029
... ... @@ -6,6 +6,7 @@
6 6 import com.lyms.platform.pojo.BabyModel;
7 7 import com.lyms.platform.pojo.BasicConfig;
8 8 import com.lyms.platform.pojo.Patients;
  9 +import org.apache.commons.lang.StringUtils;
9 10  
10 11 import java.util.HashMap;
11 12 import java.util.Map;
... ... @@ -27,6 +28,24 @@
27 28 return map;
28 29 }
29 30 return basicConfig;
  31 + }
  32 +
  33 + public static String getFullAddress(String provinceId,
  34 + String cityId,
  35 + String areaId,
  36 + String address,BasicConfigService basicConfigService){
  37 + StringBuilder sb= new StringBuilder();
  38 + if(StringUtils.isNotEmpty(provinceId)){
  39 + sb.append(basicConfigService.getOneBasicConfigById(provinceId).getName());
  40 + }
  41 + if(StringUtils.isNotEmpty(cityId)){
  42 + sb.append(basicConfigService.getOneBasicConfigById(cityId).getName());
  43 + }
  44 + if(StringUtils.isNotEmpty(areaId)){
  45 + sb.append(basicConfigService.getOneBasicConfigById(areaId).getName());
  46 + }
  47 + sb.append(address);
  48 + return sb.toString();
30 49 }
31 50  
32 51 /**