Commit 451d2bac69653abf5b2f24f40e1991b2d22915e6
1 parent
63f83a91cd
Exists in
master
and in
6 other branches
服务
Showing 2 changed files with 8 additions and 3 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/BasicConfigServiceTest.java
View file @
451d2ba
... | ... | @@ -2110,6 +2110,10 @@ |
2110 | 2110 | //遍历每行 |
2111 | 2111 | for(int i = 1 ;i < rows6 ; i++){ |
2112 | 2112 | System.out.println("rows="+i); |
2113 | + if (i == 43) | |
2114 | + { | |
2115 | + System.out.println("rows="+i); | |
2116 | + } | |
2113 | 2117 | BabyNutritionConfigModel model = new BabyNutritionConfigModel(); |
2114 | 2118 | // 0 0-11月龄喂养 1 0-11月每月营养素需求 2 12-36各月龄饮食指南 3 12-36月龄热量计算 4 12-36喂养指南 5 0-36营养元素参考摄入量 6 6-11辅食添加 |
2115 | 2119 | model.setType(6); |
... | ... | @@ -2118,6 +2122,7 @@ |
2118 | 2122 | //遍历每行中的每列 |
2119 | 2123 | for (int j = 0 ; j < cells.length ; j ++) |
2120 | 2124 | { |
2125 | + | |
2121 | 2126 | String str = cells[j].getContents().trim(); |
2122 | 2127 | switch (j) |
2123 | 2128 | { |
... | ... | @@ -2209,7 +2214,7 @@ |
2209 | 2214 | // babyConfig("F:\\儿童营养报告\\儿童营养报告模板.xls"); |
2210 | 2215 | |
2211 | 2216 | |
2212 | - babyNutritionConfig("F:\\儿童营养报告\\婴幼儿体重与营养管理报告内容及规则\\儿童膳食报告文章2.xls"); | |
2217 | + babyNutritionConfig("F:\\儿童营养报告\\婴幼儿体重与营养管理报告内容及规则\\儿童膳食报告文章2019-2-15.xls"); | |
2213 | 2218 | } |
2214 | 2219 | |
2215 | 2220 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyNutritionFacade.java
View file @
451d2ba
... | ... | @@ -321,7 +321,7 @@ |
321 | 321 | |
322 | 322 | int month = DateUtil.getMonth(baby.getBirth(), model.getNutritiTime()); |
323 | 323 | |
324 | - if (month == 0 || month > 36) | |
324 | + if (month > 36) | |
325 | 325 | { |
326 | 326 | return new BaseObjectResponse().setData(data).setErrorcode(ErrorCodeConstants.NO_DATA).setErrormsg("月龄范围没有报告"); |
327 | 327 | } |
... | ... | @@ -901,7 +901,7 @@ |
901 | 901 | { |
902 | 902 | kcal+=50; |
903 | 903 | } |
904 | - return kcal; | |
904 | + return kcal > 1000 ? 1000 : (kcal < 400 ? 400 : kcal); | |
905 | 905 | } |
906 | 906 | |
907 | 907 |