Commit be3f899f83a0549d2471f8dfd3af675b55f6805a
1 parent
afcdb189c5
Exists in
master
and in
6 other branches
儿童营养报告
Showing 8 changed files with 1250 additions and 0 deletions
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/IBabyNutritionDao.java
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/BabyNutritionDaoImpl.java
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/BabyNutritionService.java
- platform-dal/src/main/java/com/lyms/platform/pojo/BabyNutritionModel.java
- platform-dal/src/main/java/com/lyms/platform/query/BabyNutritionQuery.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabyNutritionController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyNutritionFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/BabyNutritionRequest.java
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/IBabyNutritionDao.java
View file @
be3f899
| 1 | +package com.lyms.platform.biz.dal; | |
| 2 | + | |
| 3 | +import com.lyms.platform.common.dao.operator.MongoQuery; | |
| 4 | +import com.lyms.platform.pojo.BabyNutritionModel; | |
| 5 | + | |
| 6 | +import java.util.List; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * Created by Administrator on 2019-01-28. | |
| 10 | + */ | |
| 11 | +public interface IBabyNutritionDao { | |
| 12 | + public BabyNutritionModel addBabyNutrition(BabyNutritionModel obj); | |
| 13 | + | |
| 14 | + public void updateBabyNutrition(BabyNutritionModel obj, String id); | |
| 15 | + | |
| 16 | + public List<BabyNutritionModel> queryBabyNutritions(MongoQuery query); | |
| 17 | + | |
| 18 | + int queryBabyNutritionCount(MongoQuery mongoQuery); | |
| 19 | +} |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/BabyNutritionDaoImpl.java
View file @
be3f899
| 1 | +package com.lyms.platform.biz.dal.impl; | |
| 2 | + | |
| 3 | +import com.lyms.platform.biz.dal.IBabyNutritionDao; | |
| 4 | +import com.lyms.platform.common.dao.BaseMongoDAOImpl; | |
| 5 | +import com.lyms.platform.common.dao.operator.MongoCondition; | |
| 6 | +import com.lyms.platform.common.dao.operator.MongoOper; | |
| 7 | +import com.lyms.platform.common.dao.operator.MongoQuery; | |
| 8 | +import com.lyms.platform.pojo.BabyNutritionModel; | |
| 9 | + | |
| 10 | +import org.springframework.stereotype.Repository; | |
| 11 | + | |
| 12 | +import java.util.List; | |
| 13 | + | |
| 14 | + | |
| 15 | +@Repository("babyNutritionDao") | |
| 16 | +public class BabyNutritionDaoImpl extends BaseMongoDAOImpl<BabyNutritionModel> implements IBabyNutritionDao { | |
| 17 | + | |
| 18 | + @Override | |
| 19 | + public BabyNutritionModel addBabyNutrition(BabyNutritionModel obj) { | |
| 20 | + return save(obj); | |
| 21 | + } | |
| 22 | + | |
| 23 | + @Override | |
| 24 | + public void updateBabyNutrition(BabyNutritionModel obj, String id) { | |
| 25 | + update(new MongoQuery(new MongoCondition("id", id, MongoOper.IS)).convertToMongoQuery(), obj); | |
| 26 | + } | |
| 27 | + | |
| 28 | + @Override | |
| 29 | + public List<BabyNutritionModel> queryBabyNutritions(MongoQuery query) { | |
| 30 | + return find(query.convertToMongoQuery()); | |
| 31 | + } | |
| 32 | + | |
| 33 | + @Override | |
| 34 | + public int queryBabyNutritionCount(MongoQuery mongoQuery) { | |
| 35 | + return (int)count(mongoQuery.convertToMongoQuery()); | |
| 36 | + } | |
| 37 | + | |
| 38 | + | |
| 39 | +} |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/BabyNutritionService.java
View file @
be3f899
| 1 | +package com.lyms.platform.biz.service; | |
| 2 | + | |
| 3 | +import com.lyms.platform.biz.dal.IBabyNutritionDao; | |
| 4 | + | |
| 5 | +import com.lyms.platform.common.dao.operator.MongoQuery; | |
| 6 | +import com.lyms.platform.pojo.BabyNutritionModel; | |
| 7 | +import com.lyms.platform.query.BabyNutritionQuery; | |
| 8 | +import org.apache.commons.lang.StringUtils; | |
| 9 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 10 | +import org.springframework.data.domain.Sort; | |
| 11 | +import org.springframework.stereotype.Service; | |
| 12 | + | |
| 13 | +import java.util.List; | |
| 14 | + | |
| 15 | + | |
| 16 | +@Service("babyNutritionService") | |
| 17 | +public class BabyNutritionService { | |
| 18 | + | |
| 19 | + @Autowired | |
| 20 | + private IBabyNutritionDao babyNutritionDao; | |
| 21 | + | |
| 22 | + | |
| 23 | + public BabyNutritionModel addBabyNutrition(BabyNutritionModel obj){ | |
| 24 | + return babyNutritionDao.addBabyNutrition(obj); | |
| 25 | + } | |
| 26 | + | |
| 27 | + public void updateBabyNutrition(BabyNutritionModel obj, String id){ | |
| 28 | + babyNutritionDao.updateBabyNutrition(obj, id); | |
| 29 | + } | |
| 30 | + | |
| 31 | + public List<BabyNutritionModel> queryBabyNutritions(BabyNutritionQuery babyQuery){ | |
| 32 | + MongoQuery query = babyQuery.convertToQuery(); | |
| 33 | + if (StringUtils.isNotEmpty(babyQuery.getNeed())) { | |
| 34 | + babyQuery.mysqlBuild(babyNutritionDao.queryBabyNutritionCount(babyQuery.convertToQuery())); | |
| 35 | + query.start(babyQuery.getOffset()).end(babyQuery.getLimit()); | |
| 36 | + } | |
| 37 | + return babyNutritionDao.queryBabyNutritions(query.addOrder(Sort.Direction.DESC, "created")); | |
| 38 | + } | |
| 39 | + | |
| 40 | + public int queryBabyNutritionCount(BabyNutritionQuery babyQuery){ | |
| 41 | + | |
| 42 | + return babyNutritionDao.queryBabyNutritionCount(babyQuery.convertToQuery()); | |
| 43 | + } | |
| 44 | + | |
| 45 | +} |
platform-dal/src/main/java/com/lyms/platform/pojo/BabyNutritionModel.java
View file @
be3f899
| 1 | +package com.lyms.platform.pojo; | |
| 2 | + | |
| 3 | +import org.springframework.data.mongodb.core.mapping.Document; | |
| 4 | + | |
| 5 | +import java.util.Date; | |
| 6 | +import java.util.List; | |
| 7 | +import java.util.Map; | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * Created by Administrator on 2019-01-28. | |
| 11 | + */ | |
| 12 | +@Document(collection = "lyms_nutrition") | |
| 13 | +public class BabyNutritionModel { | |
| 14 | + | |
| 15 | + private String id; | |
| 16 | + private Double height; | |
| 17 | + private Double weight; | |
| 18 | + | |
| 19 | + | |
| 20 | + private String babyId; | |
| 21 | + | |
| 22 | + private String hospitalId; | |
| 23 | + | |
| 24 | + private String doctorId; | |
| 25 | + | |
| 26 | + private Date created; | |
| 27 | + private Date modified; | |
| 28 | + | |
| 29 | + | |
| 30 | + private List<Map> mainFood; | |
| 31 | + | |
| 32 | + private List<Map> vegGj; | |
| 33 | + private List<Map> vegYj; | |
| 34 | + private List<Map> vegGq; | |
| 35 | + private List<Map> vegHc; | |
| 36 | + private List<Map> vegJl; | |
| 37 | + private List<Map> vegQt; | |
| 38 | + | |
| 39 | + private List<Map> meatC; | |
| 40 | + private List<Map> meatQ; | |
| 41 | + private List<Map> meatD; | |
| 42 | + private List<Map> meatX; | |
| 43 | + private List<Map> meatH; | |
| 44 | + private List<Map> meatY; | |
| 45 | + private List<Map> meatYz; | |
| 46 | + | |
| 47 | + private String meatCz; | |
| 48 | + private String meatWz; | |
| 49 | + private String meatGc; | |
| 50 | + | |
| 51 | + | |
| 52 | + private String milk; | |
| 53 | + | |
| 54 | + private String milkCt; | |
| 55 | + private String milkMlc; | |
| 56 | + private String eggCz; | |
| 57 | + private String eggWz; | |
| 58 | + private String eggGc; | |
| 59 | + | |
| 60 | + private String drink; | |
| 61 | + | |
| 62 | + private String oil; | |
| 63 | + private String oilQt; | |
| 64 | + private String oilGt; | |
| 65 | + | |
| 66 | + private String edible; | |
| 67 | + | |
| 68 | + | |
| 69 | + private String cook; | |
| 70 | + private String cookQt; | |
| 71 | + | |
| 72 | + | |
| 73 | + private String meal; | |
| 74 | + private String mealQt; | |
| 75 | + | |
| 76 | + private String feedType; | |
| 77 | + | |
| 78 | + public String getFeedType() { | |
| 79 | + return feedType; | |
| 80 | + } | |
| 81 | + | |
| 82 | + public void setFeedType(String feedType) { | |
| 83 | + this.feedType = feedType; | |
| 84 | + } | |
| 85 | + | |
| 86 | + public String getId() { | |
| 87 | + return id; | |
| 88 | + } | |
| 89 | + | |
| 90 | + public void setId(String id) { | |
| 91 | + this.id = id; | |
| 92 | + } | |
| 93 | + | |
| 94 | + public Double getHeight() { | |
| 95 | + return height; | |
| 96 | + } | |
| 97 | + | |
| 98 | + public void setHeight(Double height) { | |
| 99 | + this.height = height; | |
| 100 | + } | |
| 101 | + | |
| 102 | + public Double getWeight() { | |
| 103 | + return weight; | |
| 104 | + } | |
| 105 | + | |
| 106 | + public void setWeight(Double weight) { | |
| 107 | + this.weight = weight; | |
| 108 | + } | |
| 109 | + | |
| 110 | + public List<Map> getMainFood() { | |
| 111 | + return mainFood; | |
| 112 | + } | |
| 113 | + | |
| 114 | + public void setMainFood(List<Map> mainFood) { | |
| 115 | + this.mainFood = mainFood; | |
| 116 | + } | |
| 117 | + | |
| 118 | + public List<Map> getVegGj() { | |
| 119 | + return vegGj; | |
| 120 | + } | |
| 121 | + | |
| 122 | + public void setVegGj(List<Map> vegGj) { | |
| 123 | + this.vegGj = vegGj; | |
| 124 | + } | |
| 125 | + | |
| 126 | + public List<Map> getVegYj() { | |
| 127 | + return vegYj; | |
| 128 | + } | |
| 129 | + | |
| 130 | + public void setVegYj(List<Map> vegYj) { | |
| 131 | + this.vegYj = vegYj; | |
| 132 | + } | |
| 133 | + | |
| 134 | + public List<Map> getVegGq() { | |
| 135 | + return vegGq; | |
| 136 | + } | |
| 137 | + | |
| 138 | + public void setVegGq(List<Map> vegGq) { | |
| 139 | + this.vegGq = vegGq; | |
| 140 | + } | |
| 141 | + | |
| 142 | + public List<Map> getVegHc() { | |
| 143 | + return vegHc; | |
| 144 | + } | |
| 145 | + | |
| 146 | + public void setVegHc(List<Map> vegHc) { | |
| 147 | + this.vegHc = vegHc; | |
| 148 | + } | |
| 149 | + | |
| 150 | + public List<Map> getVegJl() { | |
| 151 | + return vegJl; | |
| 152 | + } | |
| 153 | + | |
| 154 | + public void setVegJl(List<Map> vegJl) { | |
| 155 | + this.vegJl = vegJl; | |
| 156 | + } | |
| 157 | + | |
| 158 | + public List<Map> getVegQt() { | |
| 159 | + return vegQt; | |
| 160 | + } | |
| 161 | + | |
| 162 | + public void setVegQt(List<Map> vegQt) { | |
| 163 | + this.vegQt = vegQt; | |
| 164 | + } | |
| 165 | + | |
| 166 | + public List<Map> getMeatC() { | |
| 167 | + return meatC; | |
| 168 | + } | |
| 169 | + | |
| 170 | + public void setMeatC(List<Map> meatC) { | |
| 171 | + this.meatC = meatC; | |
| 172 | + } | |
| 173 | + | |
| 174 | + public List<Map> getMeatQ() { | |
| 175 | + return meatQ; | |
| 176 | + } | |
| 177 | + | |
| 178 | + public void setMeatQ(List<Map> meatQ) { | |
| 179 | + this.meatQ = meatQ; | |
| 180 | + } | |
| 181 | + | |
| 182 | + public List<Map> getMeatD() { | |
| 183 | + return meatD; | |
| 184 | + } | |
| 185 | + | |
| 186 | + public void setMeatD(List<Map> meatD) { | |
| 187 | + this.meatD = meatD; | |
| 188 | + } | |
| 189 | + | |
| 190 | + public List<Map> getMeatX() { | |
| 191 | + return meatX; | |
| 192 | + } | |
| 193 | + | |
| 194 | + public void setMeatX(List<Map> meatX) { | |
| 195 | + this.meatX = meatX; | |
| 196 | + } | |
| 197 | + | |
| 198 | + public List<Map> getMeatH() { | |
| 199 | + return meatH; | |
| 200 | + } | |
| 201 | + | |
| 202 | + public void setMeatH(List<Map> meatH) { | |
| 203 | + this.meatH = meatH; | |
| 204 | + } | |
| 205 | + | |
| 206 | + public List<Map> getMeatY() { | |
| 207 | + return meatY; | |
| 208 | + } | |
| 209 | + | |
| 210 | + public void setMeatY(List<Map> meatY) { | |
| 211 | + this.meatY = meatY; | |
| 212 | + } | |
| 213 | + | |
| 214 | + public List<Map> getMeatYz() { | |
| 215 | + return meatYz; | |
| 216 | + } | |
| 217 | + | |
| 218 | + public void setMeatYz(List<Map> meatYz) { | |
| 219 | + this.meatYz = meatYz; | |
| 220 | + } | |
| 221 | + | |
| 222 | + public String getMeatCz() { | |
| 223 | + return meatCz; | |
| 224 | + } | |
| 225 | + | |
| 226 | + public void setMeatCz(String meatCz) { | |
| 227 | + this.meatCz = meatCz; | |
| 228 | + } | |
| 229 | + | |
| 230 | + public String getMeatWz() { | |
| 231 | + return meatWz; | |
| 232 | + } | |
| 233 | + | |
| 234 | + public void setMeatWz(String meatWz) { | |
| 235 | + this.meatWz = meatWz; | |
| 236 | + } | |
| 237 | + | |
| 238 | + public String getMeatGc() { | |
| 239 | + return meatGc; | |
| 240 | + } | |
| 241 | + | |
| 242 | + public void setMeatGc(String meatGc) { | |
| 243 | + this.meatGc = meatGc; | |
| 244 | + } | |
| 245 | + | |
| 246 | + public String getMilk() { | |
| 247 | + return milk; | |
| 248 | + } | |
| 249 | + | |
| 250 | + public void setMilk(String milk) { | |
| 251 | + this.milk = milk; | |
| 252 | + } | |
| 253 | + | |
| 254 | + public String getMilkCt() { | |
| 255 | + return milkCt; | |
| 256 | + } | |
| 257 | + | |
| 258 | + public void setMilkCt(String milkCt) { | |
| 259 | + this.milkCt = milkCt; | |
| 260 | + } | |
| 261 | + | |
| 262 | + public String getMilkMlc() { | |
| 263 | + return milkMlc; | |
| 264 | + } | |
| 265 | + | |
| 266 | + public void setMilkMlc(String milkMlc) { | |
| 267 | + this.milkMlc = milkMlc; | |
| 268 | + } | |
| 269 | + | |
| 270 | + public String getEggCz() { | |
| 271 | + return eggCz; | |
| 272 | + } | |
| 273 | + | |
| 274 | + public void setEggCz(String eggCz) { | |
| 275 | + this.eggCz = eggCz; | |
| 276 | + } | |
| 277 | + | |
| 278 | + public String getEggWz() { | |
| 279 | + return eggWz; | |
| 280 | + } | |
| 281 | + | |
| 282 | + public void setEggWz(String eggWz) { | |
| 283 | + this.eggWz = eggWz; | |
| 284 | + } | |
| 285 | + | |
| 286 | + public String getEggGc() { | |
| 287 | + return eggGc; | |
| 288 | + } | |
| 289 | + | |
| 290 | + public void setEggGc(String eggGc) { | |
| 291 | + this.eggGc = eggGc; | |
| 292 | + } | |
| 293 | + | |
| 294 | + public String getDrink() { | |
| 295 | + return drink; | |
| 296 | + } | |
| 297 | + | |
| 298 | + public void setDrink(String drink) { | |
| 299 | + this.drink = drink; | |
| 300 | + } | |
| 301 | + | |
| 302 | + public String getOil() { | |
| 303 | + return oil; | |
| 304 | + } | |
| 305 | + | |
| 306 | + public void setOil(String oil) { | |
| 307 | + this.oil = oil; | |
| 308 | + } | |
| 309 | + | |
| 310 | + public String getOilQt() { | |
| 311 | + return oilQt; | |
| 312 | + } | |
| 313 | + | |
| 314 | + public void setOilQt(String oilQt) { | |
| 315 | + this.oilQt = oilQt; | |
| 316 | + } | |
| 317 | + | |
| 318 | + public String getOilGt() { | |
| 319 | + return oilGt; | |
| 320 | + } | |
| 321 | + | |
| 322 | + public void setOilGt(String oilGt) { | |
| 323 | + this.oilGt = oilGt; | |
| 324 | + } | |
| 325 | + | |
| 326 | + public String getEdible() { | |
| 327 | + return edible; | |
| 328 | + } | |
| 329 | + | |
| 330 | + public void setEdible(String edible) { | |
| 331 | + this.edible = edible; | |
| 332 | + } | |
| 333 | + | |
| 334 | + public String getCook() { | |
| 335 | + return cook; | |
| 336 | + } | |
| 337 | + | |
| 338 | + public void setCook(String cook) { | |
| 339 | + this.cook = cook; | |
| 340 | + } | |
| 341 | + | |
| 342 | + public String getCookQt() { | |
| 343 | + return cookQt; | |
| 344 | + } | |
| 345 | + | |
| 346 | + public void setCookQt(String cookQt) { | |
| 347 | + this.cookQt = cookQt; | |
| 348 | + } | |
| 349 | + | |
| 350 | + public String getMeal() { | |
| 351 | + return meal; | |
| 352 | + } | |
| 353 | + | |
| 354 | + public void setMeal(String meal) { | |
| 355 | + this.meal = meal; | |
| 356 | + } | |
| 357 | + | |
| 358 | + public String getMealQt() { | |
| 359 | + return mealQt; | |
| 360 | + } | |
| 361 | + | |
| 362 | + public void setMealQt(String mealQt) { | |
| 363 | + this.mealQt = mealQt; | |
| 364 | + } | |
| 365 | + | |
| 366 | + public String getBabyId() { | |
| 367 | + return babyId; | |
| 368 | + } | |
| 369 | + | |
| 370 | + public void setBabyId(String babyId) { | |
| 371 | + this.babyId = babyId; | |
| 372 | + } | |
| 373 | + | |
| 374 | + public String getHospitalId() { | |
| 375 | + return hospitalId; | |
| 376 | + } | |
| 377 | + | |
| 378 | + public void setHospitalId(String hospitalId) { | |
| 379 | + this.hospitalId = hospitalId; | |
| 380 | + } | |
| 381 | + | |
| 382 | + public String getDoctorId() { | |
| 383 | + return doctorId; | |
| 384 | + } | |
| 385 | + | |
| 386 | + public void setDoctorId(String doctorId) { | |
| 387 | + this.doctorId = doctorId; | |
| 388 | + } | |
| 389 | + | |
| 390 | + public Date getCreated() { | |
| 391 | + return created; | |
| 392 | + } | |
| 393 | + | |
| 394 | + public void setCreated(Date created) { | |
| 395 | + this.created = created; | |
| 396 | + } | |
| 397 | + | |
| 398 | + public Date getModified() { | |
| 399 | + return modified; | |
| 400 | + } | |
| 401 | + | |
| 402 | + public void setModified(Date modified) { | |
| 403 | + this.modified = modified; | |
| 404 | + } | |
| 405 | +} |
platform-dal/src/main/java/com/lyms/platform/query/BabyNutritionQuery.java
View file @
be3f899
| 1 | +package com.lyms.platform.query; | |
| 2 | + | |
| 3 | +import com.lyms.platform.common.base.IConvertToNativeQuery; | |
| 4 | +import com.lyms.platform.common.dao.BaseQuery; | |
| 5 | +import com.lyms.platform.common.dao.operator.MongoCondition; | |
| 6 | +import com.lyms.platform.common.dao.operator.MongoOper; | |
| 7 | +import com.lyms.platform.common.dao.operator.MongoQuery; | |
| 8 | +import com.lyms.platform.common.utils.StringUtils; | |
| 9 | +import org.apache.commons.collections.CollectionUtils; | |
| 10 | +import org.springframework.data.mongodb.core.query.Criteria; | |
| 11 | + | |
| 12 | +import java.util.ArrayList; | |
| 13 | +import java.util.Date; | |
| 14 | +import java.util.List; | |
| 15 | + | |
| 16 | +/** | |
| 17 | + * | |
| 18 | + */ | |
| 19 | +public class BabyNutritionQuery extends BaseQuery implements IConvertToNativeQuery { | |
| 20 | + | |
| 21 | + private String id; | |
| 22 | + private Double height; | |
| 23 | + private Double weight; | |
| 24 | + | |
| 25 | + | |
| 26 | + private String babyId; | |
| 27 | + | |
| 28 | + private String hospitalId; | |
| 29 | + | |
| 30 | + private String doctorId; | |
| 31 | + | |
| 32 | + private Date createdStart; | |
| 33 | + private Date modifiedEnd; | |
| 34 | + | |
| 35 | + | |
| 36 | + @Override | |
| 37 | + public MongoQuery convertToQuery() { | |
| 38 | + MongoCondition condition = MongoCondition.newInstance(); | |
| 39 | + | |
| 40 | + | |
| 41 | + if (null != id) { | |
| 42 | + condition = condition.and("id", id, MongoOper.IS); | |
| 43 | + } | |
| 44 | + | |
| 45 | + if (null != babyId) { | |
| 46 | + condition = condition.and("babyId", babyId, MongoOper.IS); | |
| 47 | + } | |
| 48 | + if (null != hospitalId) { | |
| 49 | + condition = condition.and("hospitalId", hospitalId, MongoOper.IS); | |
| 50 | + } | |
| 51 | + | |
| 52 | + if (null != doctorId) { | |
| 53 | + condition = condition.and("doctorId", doctorId, MongoOper.IS); | |
| 54 | + } | |
| 55 | + Criteria c = null; | |
| 56 | + | |
| 57 | + if(null != createdStart && createdStart != null){ | |
| 58 | + if(c != null){ | |
| 59 | + c = c.where("created").gte(createdStart).lte(createdStart); | |
| 60 | + }else{ | |
| 61 | + c = Criteria.where("created").gte(createdStart).lte(createdStart); | |
| 62 | + } | |
| 63 | + } | |
| 64 | + | |
| 65 | + if (c != null) { | |
| 66 | + return new MongoCondition(c.andOperator(condition.getCriteria())).toMongoQuery(); | |
| 67 | + } | |
| 68 | + return condition.toMongoQuery(); | |
| 69 | + } | |
| 70 | + | |
| 71 | + | |
| 72 | + public String getId() { | |
| 73 | + return id; | |
| 74 | + } | |
| 75 | + | |
| 76 | + public void setId(String id) { | |
| 77 | + this.id = id; | |
| 78 | + } | |
| 79 | + | |
| 80 | + public Double getHeight() { | |
| 81 | + return height; | |
| 82 | + } | |
| 83 | + | |
| 84 | + public void setHeight(Double height) { | |
| 85 | + this.height = height; | |
| 86 | + } | |
| 87 | + | |
| 88 | + public Double getWeight() { | |
| 89 | + return weight; | |
| 90 | + } | |
| 91 | + | |
| 92 | + public void setWeight(Double weight) { | |
| 93 | + this.weight = weight; | |
| 94 | + } | |
| 95 | + | |
| 96 | + public String getBabyId() { | |
| 97 | + return babyId; | |
| 98 | + } | |
| 99 | + | |
| 100 | + public void setBabyId(String babyId) { | |
| 101 | + this.babyId = babyId; | |
| 102 | + } | |
| 103 | + | |
| 104 | + public String getHospitalId() { | |
| 105 | + return hospitalId; | |
| 106 | + } | |
| 107 | + | |
| 108 | + public void setHospitalId(String hospitalId) { | |
| 109 | + this.hospitalId = hospitalId; | |
| 110 | + } | |
| 111 | + | |
| 112 | + public String getDoctorId() { | |
| 113 | + return doctorId; | |
| 114 | + } | |
| 115 | + | |
| 116 | + public void setDoctorId(String doctorId) { | |
| 117 | + this.doctorId = doctorId; | |
| 118 | + } | |
| 119 | + | |
| 120 | + public Date getCreatedStart() { | |
| 121 | + return createdStart; | |
| 122 | + } | |
| 123 | + | |
| 124 | + public void setCreatedStart(Date createdStart) { | |
| 125 | + this.createdStart = createdStart; | |
| 126 | + } | |
| 127 | + | |
| 128 | + public Date getModifiedEnd() { | |
| 129 | + return modifiedEnd; | |
| 130 | + } | |
| 131 | + | |
| 132 | + public void setModifiedEnd(Date modifiedEnd) { | |
| 133 | + this.modifiedEnd = modifiedEnd; | |
| 134 | + } | |
| 135 | +} |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabyNutritionController.java
View file @
be3f899
| 1 | +package com.lyms.platform.operate.web.controller; | |
| 2 | + | |
| 3 | + | |
| 4 | +import com.lyms.platform.common.annotation.TokenRequired; | |
| 5 | +import com.lyms.platform.common.base.BaseController; | |
| 6 | +import com.lyms.platform.common.base.LoginContext; | |
| 7 | +import com.lyms.platform.common.constants.ErrorCodeConstants; | |
| 8 | +import com.lyms.platform.common.result.BaseObjectResponse; | |
| 9 | +import com.lyms.platform.common.result.BaseResponse; | |
| 10 | +import com.lyms.platform.common.utils.StringUtils; | |
| 11 | +import com.lyms.platform.operate.web.facade.AutoMatchFacade; | |
| 12 | +import com.lyms.platform.operate.web.facade.BabyCheckFacade; | |
| 13 | +import com.lyms.platform.operate.web.facade.BabyNutritionFacade; | |
| 14 | +import com.lyms.platform.operate.web.request.BabyCheckRequest; | |
| 15 | +import com.lyms.platform.operate.web.request.BabyNutritionRequest; | |
| 16 | +import com.lyms.platform.permission.service.CouponService; | |
| 17 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 18 | +import org.springframework.stereotype.Controller; | |
| 19 | +import org.springframework.web.bind.annotation.*; | |
| 20 | + | |
| 21 | +import javax.servlet.http.HttpServletRequest; | |
| 22 | +import javax.validation.Valid; | |
| 23 | + | |
| 24 | + | |
| 25 | +/** | |
| 26 | + *儿童营养报告 | |
| 27 | + */ | |
| 28 | +@Controller | |
| 29 | +public class BabyNutritionController extends BaseController{ | |
| 30 | + | |
| 31 | + | |
| 32 | + @Autowired | |
| 33 | + private BabyNutritionFacade babyNutritionFacade; | |
| 34 | + | |
| 35 | + | |
| 36 | + /** | |
| 37 | + * 添加儿童营养 | |
| 38 | + * @param request | |
| 39 | + * @return | |
| 40 | + */ | |
| 41 | + @RequestMapping(method = RequestMethod.POST, value = "/addOrUpBabyNutrition") | |
| 42 | + @ResponseBody | |
| 43 | + @TokenRequired | |
| 44 | + public BaseResponse addOrUpBabyNutrition(@Valid @RequestBody BabyNutritionRequest request, | |
| 45 | + HttpServletRequest httpServletRequest) { | |
| 46 | + | |
| 47 | + return babyNutritionFacade.addOrUpBabyNutrition(request); | |
| 48 | + } | |
| 49 | + | |
| 50 | + | |
| 51 | + /** | |
| 52 | + * 查询营养记录 | |
| 53 | + * @param babyId | |
| 54 | + * @return | |
| 55 | + */ | |
| 56 | + @RequestMapping(value = "/queryBabyNutritionRecord/{babyId}", method = RequestMethod.GET) | |
| 57 | + @ResponseBody | |
| 58 | + public BaseObjectResponse queryBabyNutritionRecord(@PathVariable("babyId")String babyId){ | |
| 59 | + return babyNutritionFacade.queryBabyNutritionRecord(babyId); | |
| 60 | + } | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | +} |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyNutritionFacade.java
View file @
be3f899
| 1 | +package com.lyms.platform.operate.web.facade; | |
| 2 | + | |
| 3 | +import com.lyms.platform.biz.service.*; | |
| 4 | +import com.lyms.platform.common.constants.ErrorCodeConstants; | |
| 5 | +import com.lyms.platform.common.result.BaseObjectResponse; | |
| 6 | +import com.lyms.platform.common.result.BaseResponse; | |
| 7 | +import com.lyms.platform.common.utils.*; | |
| 8 | +import com.lyms.platform.operate.web.request.BabyNutritionRequest; | |
| 9 | +import com.lyms.platform.operate.web.result.*; | |
| 10 | +import com.lyms.platform.operate.web.service.PatientWeightService; | |
| 11 | + | |
| 12 | +import com.lyms.platform.permission.service.OrganizationService; | |
| 13 | +import com.lyms.platform.permission.service.UsersService; | |
| 14 | +import com.lyms.platform.pojo.*; | |
| 15 | +import com.lyms.platform.query.*; | |
| 16 | +import org.apache.commons.collections.CollectionUtils; | |
| 17 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 18 | + | |
| 19 | +import org.springframework.stereotype.Component; | |
| 20 | + | |
| 21 | +import java.util.*; | |
| 22 | + | |
| 23 | +@Component | |
| 24 | +public class BabyNutritionFacade { | |
| 25 | + | |
| 26 | + | |
| 27 | + @Autowired | |
| 28 | + private BabyCheckFacade babyCheckFacade; | |
| 29 | + | |
| 30 | + @Autowired | |
| 31 | + private BabyCheckService babyCheckService; | |
| 32 | + @Autowired | |
| 33 | + private BabyNutritionService babyNutritionService; | |
| 34 | + | |
| 35 | + @Autowired | |
| 36 | + private BabyBookbuildingService babyBookbuildingService; | |
| 37 | + @Autowired | |
| 38 | + private PatientWeightService patientWeightService; | |
| 39 | + @Autowired | |
| 40 | + private BabyService babyService; | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + @Autowired | |
| 45 | + private BasicConfigService basicConfigService; | |
| 46 | + | |
| 47 | + @Autowired | |
| 48 | + private PatientsService patientsService; | |
| 49 | + | |
| 50 | + @Autowired | |
| 51 | + private ApplyOrderService applyOrderService; | |
| 52 | + | |
| 53 | + @Autowired | |
| 54 | + private UsersService usersService; | |
| 55 | + | |
| 56 | + @Autowired | |
| 57 | + private PersonService personService; | |
| 58 | + | |
| 59 | + | |
| 60 | + @Autowired | |
| 61 | + private OrganizationService organizationService; | |
| 62 | + | |
| 63 | + @Autowired | |
| 64 | + private AntenatalExaminationFacade antenatalExaminationFacade; | |
| 65 | + | |
| 66 | + @Autowired | |
| 67 | + private BabyBookbuildingFacade babyBookbuildingFacade; | |
| 68 | + @Autowired | |
| 69 | + private OrganizationGroupsFacade groupsFacade; | |
| 70 | + @Autowired | |
| 71 | + private AutoMatchFacade autoMatchFacade; | |
| 72 | + | |
| 73 | + | |
| 74 | + public BaseObjectResponse queryBabyNutritionRecord(String babyId) { | |
| 75 | + Map<String, Object> resMap = new HashMap<>(); | |
| 76 | + BabyBasicResult base = new BabyBasicResult(); | |
| 77 | + babyCheckFacade.getBabyModel(babyId, base); | |
| 78 | + BaseObjectResponse br = new BaseObjectResponse(); | |
| 79 | + | |
| 80 | + List<Map<String, String>> list = new ArrayList<>(); | |
| 81 | + | |
| 82 | + BabyNutritionQuery babyQuery = new BabyNutritionQuery(); | |
| 83 | + List<BabyNutritionModel> models = babyNutritionService.queryBabyNutritions(babyQuery); | |
| 84 | + if (CollectionUtils.isNotEmpty(models)) | |
| 85 | + { | |
| 86 | + for (BabyNutritionModel model : models) | |
| 87 | + { | |
| 88 | + Map<String, String> map = new HashMap<>(); | |
| 89 | + map.put("id",model.getId()); | |
| 90 | + map.put("babyId",model.getBabyId()); | |
| 91 | + map.put("created",DateUtil.getyyyy_MM_dd(model.getCreated())); | |
| 92 | + } | |
| 93 | + } | |
| 94 | + | |
| 95 | + | |
| 96 | + resMap.put("baseInfo", base); | |
| 97 | + resMap.put("nutritionList", list); | |
| 98 | + br.setData(resMap); | |
| 99 | + br.setErrorcode(ErrorCodeConstants.SUCCESS); | |
| 100 | + br.setErrormsg("成功"); | |
| 101 | + | |
| 102 | + return br; | |
| 103 | + } | |
| 104 | + | |
| 105 | + public BaseResponse addOrUpBabyNutrition(BabyNutritionRequest request) { | |
| 106 | + return null; | |
| 107 | + } | |
| 108 | +} |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/BabyNutritionRequest.java
View file @
be3f899
| 1 | +package com.lyms.platform.operate.web.request; | |
| 2 | + | |
| 3 | +import com.lyms.platform.common.base.IBasicRequestConvert; | |
| 4 | +import com.lyms.platform.pojo.BabyNutritionModel; | |
| 5 | + | |
| 6 | +import java.util.Date; | |
| 7 | +import java.util.List; | |
| 8 | +import java.util.Map; | |
| 9 | + | |
| 10 | +/** | |
| 11 | + * Created by Administrator on 2019-01-28. | |
| 12 | + */ | |
| 13 | +public class BabyNutritionRequest implements IBasicRequestConvert<BabyNutritionModel> { | |
| 14 | + | |
| 15 | + | |
| 16 | + private String id; | |
| 17 | + private Double height; | |
| 18 | + private Double weight; | |
| 19 | + | |
| 20 | + | |
| 21 | + private String babyId; | |
| 22 | + | |
| 23 | + private String hospitalId; | |
| 24 | + | |
| 25 | + private String doctorId; | |
| 26 | + | |
| 27 | + private List<Map> mainFood; | |
| 28 | + | |
| 29 | + private List<Map> vegGj; | |
| 30 | + private List<Map> vegYj; | |
| 31 | + private List<Map> vegGq; | |
| 32 | + private List<Map> vegHc; | |
| 33 | + private List<Map> vegJl; | |
| 34 | + private List<Map> vegQt; | |
| 35 | + | |
| 36 | + private List<Map> meatC; | |
| 37 | + private List<Map> meatQ; | |
| 38 | + private List<Map> meatD; | |
| 39 | + private List<Map> meatX; | |
| 40 | + private List<Map> meatH; | |
| 41 | + private List<Map> meatY; | |
| 42 | + private List<Map> meatYz; | |
| 43 | + | |
| 44 | + private String meatCz; | |
| 45 | + private String meatWz; | |
| 46 | + private String meatGc; | |
| 47 | + | |
| 48 | + | |
| 49 | + private String milk; | |
| 50 | + | |
| 51 | + private String milkCt; | |
| 52 | + private String milkMlc; | |
| 53 | + private String eggCz; | |
| 54 | + private String eggWz; | |
| 55 | + private String eggGc; | |
| 56 | + | |
| 57 | + private String drink; | |
| 58 | + | |
| 59 | + private String oil; | |
| 60 | + private String oilQt; | |
| 61 | + private String oilGt; | |
| 62 | + | |
| 63 | + private String edible; | |
| 64 | + | |
| 65 | + | |
| 66 | + private String cook; | |
| 67 | + private String cookQt; | |
| 68 | + | |
| 69 | + | |
| 70 | + private String meal; | |
| 71 | + private String mealQt; | |
| 72 | + | |
| 73 | + private String feedType; | |
| 74 | + | |
| 75 | + @Override | |
| 76 | + public BabyNutritionModel convertToDataModel() { | |
| 77 | + BabyNutritionModel model = new BabyNutritionModel(); | |
| 78 | + model.setId(id); | |
| 79 | + model.setHospitalId(hospitalId); | |
| 80 | + model.setHeight(height); | |
| 81 | + model.setWeight(weight); | |
| 82 | + model.setBabyId(babyId); | |
| 83 | + model.setHospitalId(hospitalId); | |
| 84 | + model.setDoctorId(doctorId); | |
| 85 | + model.setMainFood(mainFood); | |
| 86 | + model.setVegGj(vegGj); | |
| 87 | + model.setVegYj(vegYj); | |
| 88 | + model.setVegGq(vegGq); | |
| 89 | + model.setVegHc(vegHc); | |
| 90 | + model.setVegJl(vegJl); | |
| 91 | + model.setVegQt(vegQt); | |
| 92 | + model.setMeatC(meatC); | |
| 93 | + model.setMeatQ(meatQ); | |
| 94 | + model.setMeatD(meatD); | |
| 95 | + model.setMeatX(meatX); | |
| 96 | + model.setMeatH(meatH); | |
| 97 | + model.setMeatY(meatY); | |
| 98 | + model.setMeatYz(meatYz); | |
| 99 | + model.setMeatCz(meatCz); | |
| 100 | + model.setMeatWz(meatWz); | |
| 101 | + model.setMeatGc(meatGc); | |
| 102 | + model.setMilk(milk); | |
| 103 | + model.setMilkCt(milkCt); | |
| 104 | + model.setMilkMlc(milkMlc); | |
| 105 | + model.setEggCz(eggCz); | |
| 106 | + model.setEggWz(eggWz); | |
| 107 | + model.setEggGc(eggGc); | |
| 108 | + model.setDrink(drink); | |
| 109 | + model.setOil(oil); | |
| 110 | + model.setOilQt(oilQt); | |
| 111 | + model.setOilGt(oilGt); | |
| 112 | + model.setEdible(edible); | |
| 113 | + model.setCook(cook); | |
| 114 | + model.setCookQt(cookQt); | |
| 115 | + model.setMeal(meal); | |
| 116 | + model.setMealQt(mealQt); | |
| 117 | + model.setFeedType(feedType); | |
| 118 | + | |
| 119 | + | |
| 120 | + return model; | |
| 121 | + } | |
| 122 | + | |
| 123 | + public String getId() { | |
| 124 | + return id; | |
| 125 | + } | |
| 126 | + | |
| 127 | + public void setId(String id) { | |
| 128 | + this.id = id; | |
| 129 | + } | |
| 130 | + | |
| 131 | + public Double getHeight() { | |
| 132 | + return height; | |
| 133 | + } | |
| 134 | + | |
| 135 | + public void setHeight(Double height) { | |
| 136 | + this.height = height; | |
| 137 | + } | |
| 138 | + | |
| 139 | + public Double getWeight() { | |
| 140 | + return weight; | |
| 141 | + } | |
| 142 | + | |
| 143 | + public void setWeight(Double weight) { | |
| 144 | + this.weight = weight; | |
| 145 | + } | |
| 146 | + | |
| 147 | + public String getBabyId() { | |
| 148 | + return babyId; | |
| 149 | + } | |
| 150 | + | |
| 151 | + public void setBabyId(String babyId) { | |
| 152 | + this.babyId = babyId; | |
| 153 | + } | |
| 154 | + | |
| 155 | + public String getHospitalId() { | |
| 156 | + return hospitalId; | |
| 157 | + } | |
| 158 | + | |
| 159 | + public void setHospitalId(String hospitalId) { | |
| 160 | + this.hospitalId = hospitalId; | |
| 161 | + } | |
| 162 | + | |
| 163 | + public String getDoctorId() { | |
| 164 | + return doctorId; | |
| 165 | + } | |
| 166 | + | |
| 167 | + public void setDoctorId(String doctorId) { | |
| 168 | + this.doctorId = doctorId; | |
| 169 | + } | |
| 170 | + | |
| 171 | + public List<Map> getMainFood() { | |
| 172 | + return mainFood; | |
| 173 | + } | |
| 174 | + | |
| 175 | + public void setMainFood(List<Map> mainFood) { | |
| 176 | + this.mainFood = mainFood; | |
| 177 | + } | |
| 178 | + | |
| 179 | + public List<Map> getVegGj() { | |
| 180 | + return vegGj; | |
| 181 | + } | |
| 182 | + | |
| 183 | + public void setVegGj(List<Map> vegGj) { | |
| 184 | + this.vegGj = vegGj; | |
| 185 | + } | |
| 186 | + | |
| 187 | + public List<Map> getVegYj() { | |
| 188 | + return vegYj; | |
| 189 | + } | |
| 190 | + | |
| 191 | + public void setVegYj(List<Map> vegYj) { | |
| 192 | + this.vegYj = vegYj; | |
| 193 | + } | |
| 194 | + | |
| 195 | + public List<Map> getVegGq() { | |
| 196 | + return vegGq; | |
| 197 | + } | |
| 198 | + | |
| 199 | + public void setVegGq(List<Map> vegGq) { | |
| 200 | + this.vegGq = vegGq; | |
| 201 | + } | |
| 202 | + | |
| 203 | + public List<Map> getVegHc() { | |
| 204 | + return vegHc; | |
| 205 | + } | |
| 206 | + | |
| 207 | + public void setVegHc(List<Map> vegHc) { | |
| 208 | + this.vegHc = vegHc; | |
| 209 | + } | |
| 210 | + | |
| 211 | + public List<Map> getVegJl() { | |
| 212 | + return vegJl; | |
| 213 | + } | |
| 214 | + | |
| 215 | + public void setVegJl(List<Map> vegJl) { | |
| 216 | + this.vegJl = vegJl; | |
| 217 | + } | |
| 218 | + | |
| 219 | + public List<Map> getVegQt() { | |
| 220 | + return vegQt; | |
| 221 | + } | |
| 222 | + | |
| 223 | + public void setVegQt(List<Map> vegQt) { | |
| 224 | + this.vegQt = vegQt; | |
| 225 | + } | |
| 226 | + | |
| 227 | + public List<Map> getMeatC() { | |
| 228 | + return meatC; | |
| 229 | + } | |
| 230 | + | |
| 231 | + public void setMeatC(List<Map> meatC) { | |
| 232 | + this.meatC = meatC; | |
| 233 | + } | |
| 234 | + | |
| 235 | + public List<Map> getMeatQ() { | |
| 236 | + return meatQ; | |
| 237 | + } | |
| 238 | + | |
| 239 | + public void setMeatQ(List<Map> meatQ) { | |
| 240 | + this.meatQ = meatQ; | |
| 241 | + } | |
| 242 | + | |
| 243 | + public List<Map> getMeatD() { | |
| 244 | + return meatD; | |
| 245 | + } | |
| 246 | + | |
| 247 | + public void setMeatD(List<Map> meatD) { | |
| 248 | + this.meatD = meatD; | |
| 249 | + } | |
| 250 | + | |
| 251 | + public List<Map> getMeatX() { | |
| 252 | + return meatX; | |
| 253 | + } | |
| 254 | + | |
| 255 | + public void setMeatX(List<Map> meatX) { | |
| 256 | + this.meatX = meatX; | |
| 257 | + } | |
| 258 | + | |
| 259 | + public List<Map> getMeatH() { | |
| 260 | + return meatH; | |
| 261 | + } | |
| 262 | + | |
| 263 | + public void setMeatH(List<Map> meatH) { | |
| 264 | + this.meatH = meatH; | |
| 265 | + } | |
| 266 | + | |
| 267 | + public List<Map> getMeatY() { | |
| 268 | + return meatY; | |
| 269 | + } | |
| 270 | + | |
| 271 | + public void setMeatY(List<Map> meatY) { | |
| 272 | + this.meatY = meatY; | |
| 273 | + } | |
| 274 | + | |
| 275 | + public List<Map> getMeatYz() { | |
| 276 | + return meatYz; | |
| 277 | + } | |
| 278 | + | |
| 279 | + public void setMeatYz(List<Map> meatYz) { | |
| 280 | + this.meatYz = meatYz; | |
| 281 | + } | |
| 282 | + | |
| 283 | + public String getMeatCz() { | |
| 284 | + return meatCz; | |
| 285 | + } | |
| 286 | + | |
| 287 | + public void setMeatCz(String meatCz) { | |
| 288 | + this.meatCz = meatCz; | |
| 289 | + } | |
| 290 | + | |
| 291 | + public String getMeatWz() { | |
| 292 | + return meatWz; | |
| 293 | + } | |
| 294 | + | |
| 295 | + public void setMeatWz(String meatWz) { | |
| 296 | + this.meatWz = meatWz; | |
| 297 | + } | |
| 298 | + | |
| 299 | + public String getMeatGc() { | |
| 300 | + return meatGc; | |
| 301 | + } | |
| 302 | + | |
| 303 | + public void setMeatGc(String meatGc) { | |
| 304 | + this.meatGc = meatGc; | |
| 305 | + } | |
| 306 | + | |
| 307 | + public String getMilk() { | |
| 308 | + return milk; | |
| 309 | + } | |
| 310 | + | |
| 311 | + public void setMilk(String milk) { | |
| 312 | + this.milk = milk; | |
| 313 | + } | |
| 314 | + | |
| 315 | + public String getMilkCt() { | |
| 316 | + return milkCt; | |
| 317 | + } | |
| 318 | + | |
| 319 | + public void setMilkCt(String milkCt) { | |
| 320 | + this.milkCt = milkCt; | |
| 321 | + } | |
| 322 | + | |
| 323 | + public String getMilkMlc() { | |
| 324 | + return milkMlc; | |
| 325 | + } | |
| 326 | + | |
| 327 | + public void setMilkMlc(String milkMlc) { | |
| 328 | + this.milkMlc = milkMlc; | |
| 329 | + } | |
| 330 | + | |
| 331 | + public String getEggCz() { | |
| 332 | + return eggCz; | |
| 333 | + } | |
| 334 | + | |
| 335 | + public void setEggCz(String eggCz) { | |
| 336 | + this.eggCz = eggCz; | |
| 337 | + } | |
| 338 | + | |
| 339 | + public String getEggWz() { | |
| 340 | + return eggWz; | |
| 341 | + } | |
| 342 | + | |
| 343 | + public void setEggWz(String eggWz) { | |
| 344 | + this.eggWz = eggWz; | |
| 345 | + } | |
| 346 | + | |
| 347 | + public String getEggGc() { | |
| 348 | + return eggGc; | |
| 349 | + } | |
| 350 | + | |
| 351 | + public void setEggGc(String eggGc) { | |
| 352 | + this.eggGc = eggGc; | |
| 353 | + } | |
| 354 | + | |
| 355 | + public String getDrink() { | |
| 356 | + return drink; | |
| 357 | + } | |
| 358 | + | |
| 359 | + public void setDrink(String drink) { | |
| 360 | + this.drink = drink; | |
| 361 | + } | |
| 362 | + | |
| 363 | + public String getOil() { | |
| 364 | + return oil; | |
| 365 | + } | |
| 366 | + | |
| 367 | + public void setOil(String oil) { | |
| 368 | + this.oil = oil; | |
| 369 | + } | |
| 370 | + | |
| 371 | + public String getOilQt() { | |
| 372 | + return oilQt; | |
| 373 | + } | |
| 374 | + | |
| 375 | + public void setOilQt(String oilQt) { | |
| 376 | + this.oilQt = oilQt; | |
| 377 | + } | |
| 378 | + | |
| 379 | + public String getOilGt() { | |
| 380 | + return oilGt; | |
| 381 | + } | |
| 382 | + | |
| 383 | + public void setOilGt(String oilGt) { | |
| 384 | + this.oilGt = oilGt; | |
| 385 | + } | |
| 386 | + | |
| 387 | + public String getEdible() { | |
| 388 | + return edible; | |
| 389 | + } | |
| 390 | + | |
| 391 | + public void setEdible(String edible) { | |
| 392 | + this.edible = edible; | |
| 393 | + } | |
| 394 | + | |
| 395 | + public String getCook() { | |
| 396 | + return cook; | |
| 397 | + } | |
| 398 | + | |
| 399 | + public void setCook(String cook) { | |
| 400 | + this.cook = cook; | |
| 401 | + } | |
| 402 | + | |
| 403 | + public String getCookQt() { | |
| 404 | + return cookQt; | |
| 405 | + } | |
| 406 | + | |
| 407 | + public void setCookQt(String cookQt) { | |
| 408 | + this.cookQt = cookQt; | |
| 409 | + } | |
| 410 | + | |
| 411 | + public String getMeal() { | |
| 412 | + return meal; | |
| 413 | + } | |
| 414 | + | |
| 415 | + public void setMeal(String meal) { | |
| 416 | + this.meal = meal; | |
| 417 | + } | |
| 418 | + | |
| 419 | + public String getMealQt() { | |
| 420 | + return mealQt; | |
| 421 | + } | |
| 422 | + | |
| 423 | + public void setMealQt(String mealQt) { | |
| 424 | + this.mealQt = mealQt; | |
| 425 | + } | |
| 426 | + | |
| 427 | + public String getFeedType() { | |
| 428 | + return feedType; | |
| 429 | + } | |
| 430 | + | |
| 431 | + public void setFeedType(String feedType) { | |
| 432 | + this.feedType = feedType; | |
| 433 | + } | |
| 434 | +} |