Commit 8b4a8dc6c769729c8208fd970c6c4038d5485db8
1 parent
e515e8cefc
Exists in
master
and in
6 other branches
孕前优生上传省平台:经期范围、月经周期(历史数据处理)
Showing 1 changed file with 12 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/hospitalapi/lhxfy/LhxfyUploadingProvince.java
View file @
8b4a8dc
... | ... | @@ -385,6 +385,12 @@ |
385 | 385 | general.setMenstrualNothing(menstrualCycle.get(0).toString().equals("true")?"2":"1"); // 月经周期不规律1:是 2:否 |
386 | 386 | if(null!=menstrualCycle.get(1)) { |
387 | 387 | String[] fw=menstrualCycle.get(1).toString().split("-"); |
388 | + //处理历史数据只有一个值得问题 | |
389 | + if (fw.length==1) { | |
390 | + general.setPeriod(fw[0]); // 经期范围开始天数 | |
391 | + general.setEndPeriod(fw[0]); // 经期范围结束天数 | |
392 | + } | |
393 | + //新录入方式赋值 | |
388 | 394 | if (fw.length==2) { |
389 | 395 | general.setPeriod(fw[0]); // 经期范围开始天数 |
390 | 396 | general.setEndPeriod(fw[1]); // 经期范围结束天数 |
... | ... | @@ -392,6 +398,12 @@ |
392 | 398 | } |
393 | 399 | if(null!=menstrualCycle.get(2)) { |
394 | 400 | String[] zq=menstrualCycle.get(2).toString().split("-"); |
401 | + //处理历史数据只有一个值得问题 | |
402 | + if (zq.length==1) { | |
403 | + general.setCycle(zq[0]); // 月经周期范围开始天数 | |
404 | + general.setEndCycle(zq[0]); // 月经周期单位结束天数 | |
405 | + } | |
406 | + //新录入方式赋值 | |
395 | 407 | if (zq.length==2) { |
396 | 408 | general.setCycle(zq[0]); // 月经周期范围开始天数 |
397 | 409 | general.setEndCycle(zq[1]); // 月经周期单位结束天数 |