Commit 6b51ccd5c55258a2061416ed3f48ab1d2cc10ad4

Authored by gengxiaokai
1 parent 62e2651937

秦皇岛冠新公卫接口

Showing 1 changed file with 29 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdJbgwInterface.java View file @ 6b51ccd
... ... @@ -13,6 +13,7 @@
13 13 import com.lyms.platform.permission.service.UsersService;
14 14 import com.lyms.platform.pojo.*;
15 15 import com.lyms.platform.query.*;
  16 +import org.apache.commons.collections.CollectionUtils;
16 17 import org.apache.commons.collections.MapUtils;
17 18 import org.apache.commons.lang.StringUtils;
18 19 import org.springframework.beans.factory.annotation.Autowired;
... ... @@ -1172,6 +1173,26 @@
1172 1173 map.put("WEIGHTDIVHEIGHT",babyCheckModel.getHeightWeight());
1173 1174 map.put("HEADCIRCUMFERENCE",babyCheckModel.getHead());
1174 1175  
  1176 + if (com.lyms.platform.common.utils.StringUtils.isNotEmpty(babyCheckModel.getGrowthEvaluate()))
  1177 +
  1178 + {
  1179 +
  1180 + List<String> lists = JsonUtil.toList(babyCheckModel.getGrowthEvaluate(), String.class);
  1181 + if (CollectionUtils.isNotEmpty(lists)) {
  1182 + StringBuffer sb = new StringBuffer();
  1183 + for (int i = 0, len = lists.size(); i < len; i++) {
  1184 + if (i != len - 1) {
  1185 + sb.append(lists.get(i));
  1186 + sb.append(",");
  1187 + } else {
  1188 + sb.append(lists.get(i));
  1189 + }
  1190 + }
  1191 + map.put("PHYSICALDEVELOPEVALCODE",sb.toString());
  1192 + }
  1193 + }
  1194 +
  1195 +
1175 1196 if(babyCheckModel.getFaceColor() != null){
1176 1197 Map<String,String> mapsface = JsonUtil.str2Obj(babyCheckModel.getFaceColor(), Map.class);
1177 1198 if(mapsface != null){
... ... @@ -1341,6 +1362,14 @@
1341 1362 }else{
1342 1363 map.put("LIMBSABNORMCODE","1");
1343 1364 map.put("LIMBSABNORMVALUE",babyCheckModel.getSpineFours());
  1365 + }
  1366 + }
  1367 +
  1368 + if(babyCheckModel.getStepStatus() != null){
  1369 + if("未见异常".equals(babyCheckModel.getStepStatus())){
  1370 + map.put("GAITABNORMCODE","1");
  1371 + }else{
  1372 + map.put("GAITABNORMCODE","2");
1344 1373 }
1345 1374 }
1346 1375