Commit ca1d648d4df8d73c77265d6d17d30b19ab2b8015
1 parent
bf5a115894
Exists in
master
and in
8 other branches
code update
Showing 2 changed files with 27 additions and 5 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/BasicConfigServiceTest.java
View file @
ca1d648
| ... | ... | @@ -389,16 +389,17 @@ |
| 389 | 389 | mongoTemplate.getDb().authenticate("platform", "platform123".toCharArray()); |
| 390 | 390 | |
| 391 | 391 | try { |
| 392 | - List<String> list = FileUtils.readLines(new File("F:\\temp\\touwei.txt"),"gbk"); | |
| 392 | + List<String> list = FileUtils.readLines(new File("F:\\temp\\shenggaobietiz.txt"),"gbk"); | |
| 393 | 393 | for (String line:list) { |
| 394 | 394 | if (line != null) { |
| 395 | 395 | |
| 396 | 396 | String[] array = line.split(","); |
| 397 | 397 | |
| 398 | 398 | AwModel awModel2 = new AwModel(); |
| 399 | - awModel2.setType(2); | |
| 400 | - awModel2.setSex(0); | |
| 401 | - awModel2.setAge(Integer.valueOf(array[0])); | |
| 399 | + awModel2.setType(3); | |
| 400 | + awModel2.setSex(1); | |
| 401 | + awModel2.setAgeType(1); | |
| 402 | + awModel2.setHeight(Double.valueOf(array[0])); | |
| 402 | 403 | awModel2.setRthreeDs(Double.valueOf(array[1])); |
| 403 | 404 | awModel2.setRtwoDs(Double.valueOf(array[2])); |
| 404 | 405 | awModel2.setRoneDs(Double.valueOf(array[3])); |
platform-dal/src/main/java/com/lyms/platform/pojo/AwModel.java
View file @
ca1d648
| ... | ... | @@ -18,8 +18,29 @@ |
| 18 | 18 | private Double poneDs; |
| 19 | 19 | private Double ptwoDs; |
| 20 | 20 | private Double pthreeDs; |
| 21 | - //0 体重标准差数值表 1 身长/身高标准差数值表 2 头围标准差数值表 | |
| 21 | + //0 体重标准差数值表 1 身长/身高标准差数值表 2 头围标准差数值表 3身高别体重 | |
| 22 | 22 | private Integer type; |
| 23 | + | |
| 24 | + private Double height; | |
| 25 | + | |
| 26 | + //0 0-2岁 1 2-5岁 | |
| 27 | + private Integer ageType; | |
| 28 | + | |
| 29 | + public Double getHeight() { | |
| 30 | + return height; | |
| 31 | + } | |
| 32 | + | |
| 33 | + public void setHeight(Double height) { | |
| 34 | + this.height = height; | |
| 35 | + } | |
| 36 | + | |
| 37 | + public Integer getAgeType() { | |
| 38 | + return ageType; | |
| 39 | + } | |
| 40 | + | |
| 41 | + public void setAgeType(Integer ageType) { | |
| 42 | + this.ageType = ageType; | |
| 43 | + } | |
| 23 | 44 | |
| 24 | 45 | public Integer getType() { |
| 25 | 46 | return type; |