Commit 06c16fed0c1c920dafffe3e868ac8344427f260b
1 parent
ebd5b7a07e
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 17 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/BabyNutritionResult.java
View file @
06c16fe
| ... | ... | @@ -3,7 +3,9 @@ |
| 3 | 3 | import com.lyms.platform.common.utils.DateUtil; |
| 4 | 4 | import com.lyms.platform.common.utils.JsonUtil; |
| 5 | 5 | import com.lyms.platform.pojo.BabyNutritionModel; |
| 6 | +import org.apache.commons.collections.CollectionUtils; | |
| 6 | 7 | |
| 8 | +import java.util.ArrayList; | |
| 7 | 9 | import java.util.List; |
| 8 | 10 | import java.util.Map; |
| 9 | 11 | |
| ... | ... | @@ -128,6 +130,20 @@ |
| 128 | 130 | */ |
| 129 | 131 | private String interpretDoctorId; |
| 130 | 132 | |
| 133 | + | |
| 134 | + //秦皇岛膳食定制 | |
| 135 | + private List<Map<String,Integer>> diets; | |
| 136 | + | |
| 137 | + | |
| 138 | + public List<Map<String,Integer>> getDiets() { | |
| 139 | + return diets; | |
| 140 | + } | |
| 141 | + | |
| 142 | + public void setDiets(List<Map<String,Integer>> diets) { | |
| 143 | + this.diets = diets; | |
| 144 | + } | |
| 145 | + | |
| 146 | + | |
| 131 | 147 | public String getInterpretDoctorId() { |
| 132 | 148 | return interpretDoctorId; |
| 133 | 149 | } |
| ... | ... | @@ -184,6 +200,7 @@ |
| 184 | 200 | setFruits(model.getFruits()); |
| 185 | 201 | setFoods(model.getFoods()); |
| 186 | 202 | setRemark(model.getRemark()); |
| 203 | + setDiets(CollectionUtils.isNotEmpty(model.getDiets()) ? model.getDiets() : new ArrayList<Map<String, Integer>>()); | |
| 187 | 204 | return this; |
| 188 | 205 | } |
| 189 | 206 |