Commit 8ea3a080bd8d03b4c31a451dece474a811c3f8ae
1 parent
af1c79db6c
Exists in
master
and in
6 other branches
隆化:眼保健模块重构。
Showing 2 changed files with 318 additions and 1 deletions
platform-dal/src/main/java/com/lyms/platform/pojo/LhBabyEyeCheck.java
View file @
8ea3a08
| ... | ... | @@ -6,6 +6,7 @@ |
| 6 | 6 | |
| 7 | 7 | import java.util.Date; |
| 8 | 8 | import java.util.List; |
| 9 | +import java.util.Map; | |
| 9 | 10 | |
| 10 | 11 | /** |
| 11 | 12 | * 隆华-眼保健检查 |
| ... | ... | @@ -247,6 +248,239 @@ |
| 247 | 248 | */ |
| 248 | 249 | private String lhswxwRight; |
| 249 | 250 | |
| 251 | + /******************************************************************/ | |
| 252 | + //2022-7-5 隆化新版本眼部模块 | |
| 253 | + /** | |
| 254 | + * 总体情况 1:正常 2:异常 | |
| 255 | + */ | |
| 256 | + private String global; | |
| 257 | + /** | |
| 258 | + * 眼外观检查项(判断如果其中异常项,眼外观字段lhywg 需要传2.) | |
| 259 | + */ | |
| 260 | + private Map lhywgInfo; | |
| 261 | + | |
| 262 | + /** | |
| 263 | + * 光照反应 (右)1:正常 2:异常 | |
| 264 | + */ | |
| 265 | + private String lhgzfyRight; | |
| 266 | + /** | |
| 267 | + * 光照反应(左) 1:正常 2:异常 | |
| 268 | + */ | |
| 269 | + private String lhgzfyLeft; | |
| 270 | + /** | |
| 271 | + * 红球试验 1:正常 2:异常 | |
| 272 | + */ | |
| 273 | + private String lhhqsy; | |
| 274 | + /** | |
| 275 | + * 红光反射(右) 1正常、2异常 | |
| 276 | + */ | |
| 277 | + private String lhhgfsRight; | |
| 278 | + /** | |
| 279 | + * 红光反射(左) 1正常、2异常 | |
| 280 | + */ | |
| 281 | + private String lhhgfsLeft; | |
| 282 | + | |
| 283 | + /** | |
| 284 | + * 可疑屈光不正(右) 1正常 、2异常 | |
| 285 | + */ | |
| 286 | + private String lhkyqgbzRight; | |
| 287 | + /** | |
| 288 | + * 可疑屈光不正(左) 1正常 、2异常 | |
| 289 | + */ | |
| 290 | + private String lhkyqgbzLeft; | |
| 291 | + /** | |
| 292 | + * 可疑屈光不正 其他 | |
| 293 | + */ | |
| 294 | + private String lhkyqgbzqt; | |
| 295 | + | |
| 296 | + /** | |
| 297 | + * 单眼厌恶试验(右) 1正常 、2异常 | |
| 298 | + */ | |
| 299 | + private String lhdyyesyRight; | |
| 300 | + /** | |
| 301 | + * 单眼厌恶试验(左) 1正常 、2异常 | |
| 302 | + */ | |
| 303 | + private String lhdyyesyLeft; | |
| 304 | + /** | |
| 305 | + * 眼位检查 1正常 、2异常 | |
| 306 | + */ | |
| 307 | + private String lhywjc; | |
| 308 | + /** | |
| 309 | + * 眼位检查 其他 | |
| 310 | + */ | |
| 311 | + private String lhywjcqt; | |
| 312 | + /** | |
| 313 | + * 视力检查(右) 手填 | |
| 314 | + */ | |
| 315 | + private Double lhsljcstRight; | |
| 316 | + /** | |
| 317 | + * 视力检查(左) 手填 | |
| 318 | + */ | |
| 319 | + private Double lhsljcstLeft; | |
| 320 | + /** | |
| 321 | + * 视力低常(右) 1正常 、2异常 | |
| 322 | + */ | |
| 323 | + private String lhsldcRight; | |
| 324 | + /** | |
| 325 | + * 视力低常(左) 1正常 、2异常 | |
| 326 | + */ | |
| 327 | + private String lhsldcLeft; | |
| 328 | + /** | |
| 329 | + * 视力低常 其他 | |
| 330 | + */ | |
| 331 | + private String lhsldcqt; | |
| 332 | + | |
| 333 | + public String getGlobal() { | |
| 334 | + return global; | |
| 335 | + } | |
| 336 | + | |
| 337 | + public void setGlobal(String global) { | |
| 338 | + this.global = global; | |
| 339 | + } | |
| 340 | + | |
| 341 | + public String getLhgzfyRight() { | |
| 342 | + return lhgzfyRight; | |
| 343 | + } | |
| 344 | + | |
| 345 | + public void setLhgzfyRight(String lhgzfyRight) { | |
| 346 | + this.lhgzfyRight = lhgzfyRight; | |
| 347 | + } | |
| 348 | + | |
| 349 | + public String getLhgzfyLeft() { | |
| 350 | + return lhgzfyLeft; | |
| 351 | + } | |
| 352 | + | |
| 353 | + public void setLhgzfyLeft(String lhgzfyLeft) { | |
| 354 | + this.lhgzfyLeft = lhgzfyLeft; | |
| 355 | + } | |
| 356 | + | |
| 357 | + public String getLhhqsy() { | |
| 358 | + return lhhqsy; | |
| 359 | + } | |
| 360 | + | |
| 361 | + public void setLhhqsy(String lhhqsy) { | |
| 362 | + this.lhhqsy = lhhqsy; | |
| 363 | + } | |
| 364 | + | |
| 365 | + public String getLhhgfsRight() { | |
| 366 | + return lhhgfsRight; | |
| 367 | + } | |
| 368 | + | |
| 369 | + public void setLhhgfsRight(String lhhgfsRight) { | |
| 370 | + this.lhhgfsRight = lhhgfsRight; | |
| 371 | + } | |
| 372 | + | |
| 373 | + public String getLhhgfsLeft() { | |
| 374 | + return lhhgfsLeft; | |
| 375 | + } | |
| 376 | + | |
| 377 | + public void setLhhgfsLeft(String lhhgfsLeft) { | |
| 378 | + this.lhhgfsLeft = lhhgfsLeft; | |
| 379 | + } | |
| 380 | + | |
| 381 | + public String getLhkyqgbzRight() { | |
| 382 | + return lhkyqgbzRight; | |
| 383 | + } | |
| 384 | + | |
| 385 | + public void setLhkyqgbzRight(String lhkyqgbzRight) { | |
| 386 | + this.lhkyqgbzRight = lhkyqgbzRight; | |
| 387 | + } | |
| 388 | + | |
| 389 | + public String getLhkyqgbzLeft() { | |
| 390 | + return lhkyqgbzLeft; | |
| 391 | + } | |
| 392 | + | |
| 393 | + public void setLhkyqgbzLeft(String lhkyqgbzLeft) { | |
| 394 | + this.lhkyqgbzLeft = lhkyqgbzLeft; | |
| 395 | + } | |
| 396 | + | |
| 397 | + public String getLhkyqgbzqt() { | |
| 398 | + return lhkyqgbzqt; | |
| 399 | + } | |
| 400 | + | |
| 401 | + public void setLhkyqgbzqt(String lhkyqgbzqt) { | |
| 402 | + this.lhkyqgbzqt = lhkyqgbzqt; | |
| 403 | + } | |
| 404 | + | |
| 405 | + public String getLhdyyesyRight() { | |
| 406 | + return lhdyyesyRight; | |
| 407 | + } | |
| 408 | + | |
| 409 | + public void setLhdyyesyRight(String lhdyyesyRight) { | |
| 410 | + this.lhdyyesyRight = lhdyyesyRight; | |
| 411 | + } | |
| 412 | + | |
| 413 | + public String getLhdyyesyLeft() { | |
| 414 | + return lhdyyesyLeft; | |
| 415 | + } | |
| 416 | + | |
| 417 | + public void setLhdyyesyLeft(String lhdyyesyLeft) { | |
| 418 | + this.lhdyyesyLeft = lhdyyesyLeft; | |
| 419 | + } | |
| 420 | + | |
| 421 | + public String getLhywjc() { | |
| 422 | + return lhywjc; | |
| 423 | + } | |
| 424 | + | |
| 425 | + public void setLhywjc(String lhywjc) { | |
| 426 | + this.lhywjc = lhywjc; | |
| 427 | + } | |
| 428 | + | |
| 429 | + public String getLhywjcqt() { | |
| 430 | + return lhywjcqt; | |
| 431 | + } | |
| 432 | + | |
| 433 | + public void setLhywjcqt(String lhywjcqt) { | |
| 434 | + this.lhywjcqt = lhywjcqt; | |
| 435 | + } | |
| 436 | + | |
| 437 | + public Double getLhsljcstRight() { | |
| 438 | + return lhsljcstRight; | |
| 439 | + } | |
| 440 | + | |
| 441 | + public void setLhsljcstRight(Double lhsljcstRight) { | |
| 442 | + this.lhsljcstRight = lhsljcstRight; | |
| 443 | + } | |
| 444 | + | |
| 445 | + public Double getLhsljcstLeft() { | |
| 446 | + return lhsljcstLeft; | |
| 447 | + } | |
| 448 | + | |
| 449 | + public void setLhsljcstLeft(Double lhsljcstLeft) { | |
| 450 | + this.lhsljcstLeft = lhsljcstLeft; | |
| 451 | + } | |
| 452 | + | |
| 453 | + public String getLhsldcRight() { | |
| 454 | + return lhsldcRight; | |
| 455 | + } | |
| 456 | + | |
| 457 | + public void setLhsldcRight(String lhsldcRight) { | |
| 458 | + this.lhsldcRight = lhsldcRight; | |
| 459 | + } | |
| 460 | + | |
| 461 | + public String getLhsldcLeft() { | |
| 462 | + return lhsldcLeft; | |
| 463 | + } | |
| 464 | + | |
| 465 | + public void setLhsldcLeft(String lhsldcLeft) { | |
| 466 | + this.lhsldcLeft = lhsldcLeft; | |
| 467 | + } | |
| 468 | + | |
| 469 | + public String getLhsldcqt() { | |
| 470 | + return lhsldcqt; | |
| 471 | + } | |
| 472 | + | |
| 473 | + public void setLhsldcqt(String lhsldcqt) { | |
| 474 | + this.lhsldcqt = lhsldcqt; | |
| 475 | + } | |
| 476 | + | |
| 477 | + public Map getLhywgInfo() { | |
| 478 | + return lhywgInfo; | |
| 479 | + } | |
| 480 | + | |
| 481 | + public void setLhywgInfo(Map lhywgInfo) { | |
| 482 | + this.lhywgInfo = lhywgInfo; | |
| 483 | + } | |
| 250 | 484 | |
| 251 | 485 | public String getLhswxwLeft() { |
| 252 | 486 | return lhswxwLeft; |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/LhBabyEyeCheckFacade.java
View file @
8ea3a08
| ... | ... | @@ -9,6 +9,7 @@ |
| 9 | 9 | import com.lyms.platform.common.result.RespBuilder; |
| 10 | 10 | import com.lyms.platform.common.result.ResponseCode; |
| 11 | 11 | import com.lyms.platform.common.utils.DateUtil; |
| 12 | +import com.lyms.platform.common.utils.MapUtil; | |
| 12 | 13 | import com.lyms.platform.common.utils.ReflectionUtils; |
| 13 | 14 | import com.lyms.platform.common.utils.StringUtils; |
| 14 | 15 | import com.lyms.platform.operate.web.utils.CollectionUtils; |
| ... | ... | @@ -19,6 +20,7 @@ |
| 19 | 20 | import com.lyms.platform.pojo.LhBabyEyeCheck; |
| 20 | 21 | import com.lyms.platform.query.BabyModelQuery; |
| 21 | 22 | import com.lyms.platform.query.LhBabyEyelCheckQuery; |
| 23 | +import org.apache.commons.collections.MapUtils; | |
| 22 | 24 | import org.springframework.beans.factory.annotation.Autowired; |
| 23 | 25 | import org.springframework.data.domain.Sort; |
| 24 | 26 | import org.springframework.data.mongodb.core.MongoTemplate; |
| 25 | 27 | |
| ... | ... | @@ -47,13 +49,27 @@ |
| 47 | 49 | private OperateLogFacade operateLogFacade; |
| 48 | 50 | |
| 49 | 51 | public BaseResponse addOrUpDate(LhBabyEyeCheck babyCheck, Integer userid) { |
| 52 | + //隆化眼外观新加内容 | |
| 53 | + if(MapUtils.isNotEmpty(babyCheck.getLhywgInfo())){ | |
| 54 | + for (Object value : babyCheck.getLhywgInfo().values()) { | |
| 55 | + if (null!=value && 2==(int) value) { | |
| 56 | + babyCheck.setLhywg("2"); | |
| 57 | + } | |
| 58 | + } | |
| 59 | + } | |
| 50 | 60 | //判断阳性检查 |
| 51 | 61 | if("2".equals(babyCheck.getLhywg()) || "2".equals(babyCheck.getLhhgfs()) || "2".equals(babyCheck.getLhgyfy()) || |
| 52 | 62 | "2".equals(babyCheck.getLhbnzscLeft()) || "2".equals(babyCheck.getLhbnzscRight()) || "2".equals(babyCheck.getLhsmfy()) || |
| 53 | 63 | "2".equals(babyCheck.getLhhqsyLeft()) || "2".equals(babyCheck.getLhhqsyRight()) || "2".equals(babyCheck.getLhswxw()) || |
| 54 | 64 | "2".equals(babyCheck.getLhqgsc()) || "2".equals(babyCheck.getLhywjcLeft()) || "2".equals(babyCheck.getLjywjcRight()) || |
| 55 | 65 | "2".equals(babyCheck.getLhyqyd()) || "2".equals(babyCheck.getLhsylwwc()) || "2".equals(babyCheck.getLhsljcLeft()) || |
| 56 | - "2".equals(babyCheck.getLhsljcRight()) || CollectionUtils.isNotEmpty(babyCheck.getEyeHighRisk()) | |
| 66 | + "2".equals(babyCheck.getLhsljcRight()) || CollectionUtils.isNotEmpty(babyCheck.getEyeHighRisk()) || "2".equals(babyCheck.getGlobal()) || | |
| 67 | + "2".equals(babyCheck.getLhgzfyRight()) || "2".equals(babyCheck.getLhgzfyLeft()) || "2".equals(babyCheck.getLhhqsy()) || | |
| 68 | + "2".equals(babyCheck.getLhhgfsRight()) || "2".equals(babyCheck.getLhhgfsLeft()) || "2".equals(babyCheck.getLhkyqgbzRight()) || | |
| 69 | + "2".equals(babyCheck.getLhkyqgbzLeft()) || "2".equals(babyCheck.getLhdyyesyRight()) || "2".equals(babyCheck.getLhdyyesyLeft()) || | |
| 70 | + "2".equals(babyCheck.getLhywjc()) || (null !=babyCheck.getLhsljcstRight() && (3.5d<babyCheck.getLhsljcstRight() || 7.5d>babyCheck.getLhsljcstRight())) || | |
| 71 | + (null !=babyCheck.getLhsljcstLeft() && (3.5d<babyCheck.getLhsljcstLeft() || 7.5d>babyCheck.getLhsljcstLeft())) || "2".equals(babyCheck.getLhsldcRight()) || | |
| 72 | + "2".equals(babyCheck.getLhsldcLeft()) | |
| 57 | 73 | ){ |
| 58 | 74 | babyCheck.setPositiveType("2"); |
| 59 | 75 | babyCheck.setChuPositiveType("2"); |
| ... | ... | @@ -258,6 +274,8 @@ |
| 258 | 274 | Map<String,Object> map=ReflectionUtils.beanToMap(babyCheck);//对象转map |
| 259 | 275 | map.put("sex",SexEnum.getTextById(babyCheck.getBabySex())); |
| 260 | 276 | map.put("eyeCheckDoctor",couponMapper.getUserName(babyCheck.getEyeCheckDoctor())); |
| 277 | + //异常项 | |
| 278 | + map.put("abnormal",getAbnormal(babyCheck)); | |
| 261 | 279 | result.add(map); |
| 262 | 280 | } |
| 263 | 281 | BaseObjectResponse br = new BaseObjectResponse(); |
| ... | ... | @@ -307,6 +325,11 @@ |
| 307 | 325 | map.put("lhEyeCheckTime", DateUtil.getYyyyMmDd(babyModel.getLhEyeCheckTime()));//检查日期 |
| 308 | 326 | map.put("lhNextEyeCheckTime", DateUtil.getYyyyMmDd(babyModel.getLhNextEyeCheckTime()));//预约日期 |
| 309 | 327 | map.put("lhEyeCheckMonthAge", babyModel.getLhEyeCheckMonthAge());//检查月龄 |
| 328 | + //异常项 | |
| 329 | + LhBabyEyeCheck lhBabyEyeCheck = lhBabyEyeCheckService.queryById(babyModel.getLhEyeCheckId()); | |
| 330 | + if(null!=lhBabyEyeCheck){ | |
| 331 | + map.put("abnormal", getAbnormal(lhBabyEyeCheck)); | |
| 332 | + } | |
| 310 | 333 | result.add(map); |
| 311 | 334 | } |
| 312 | 335 | BaseObjectResponse br = new BaseObjectResponse(); |
| ... | ... | @@ -316,5 +339,65 @@ |
| 316 | 339 | br.setErrormsg("成功"); |
| 317 | 340 | return br; |
| 318 | 341 | } |
| 342 | + public String getAbnormal(LhBabyEyeCheck babyCheck){ | |
| 343 | + String abnormal=""; | |
| 344 | + if("2".equals(babyCheck.getLhywg())){ | |
| 345 | + abnormal+="眼外观;"; | |
| 346 | + } | |
| 347 | + if("2".equals(babyCheck.getLhgzfyRight())){ | |
| 348 | + abnormal+="光照反应(右);"; | |
| 349 | + } | |
| 350 | + if("2".equals(babyCheck.getLhgzfyLeft())){ | |
| 351 | + abnormal+="光照反应(左);"; | |
| 352 | + } | |
| 353 | + if("2".equals(babyCheck.getLhsmfy())){ | |
| 354 | + abnormal+="瞬目反射;"; | |
| 355 | + } | |
| 356 | + if("2".equals(babyCheck.getLhhqsy())){ | |
| 357 | + abnormal+="红球试验;"; | |
| 358 | + } | |
| 359 | + if("2".equals(babyCheck.getLhswxw())){ | |
| 360 | + abnormal+="视物行为观察;"; | |
| 361 | + } | |
| 362 | + if("2".equals(babyCheck.getLhhgfsRight())){ | |
| 363 | + abnormal+="红光反射(右);"; | |
| 364 | + } | |
| 365 | + if("2".equals(babyCheck.getLhhgfsLeft())){ | |
| 366 | + abnormal+="红光反射(左);"; | |
| 367 | + } | |
| 368 | + if("2".equals(babyCheck.getLhkyqgbzRight())){ | |
| 369 | + abnormal+="可疑屈光不正(右);"; | |
| 370 | + } | |
| 371 | + if("2".equals(babyCheck.getLhkyqgbzLeft())){ | |
| 372 | + abnormal+="可疑屈光不正(左);"; | |
| 373 | + } | |
| 374 | + if("2".equals(babyCheck.getLhkyqgbzRight())){ | |
| 375 | + abnormal+="单眼厌恶试验(右);"; | |
| 376 | + } | |
| 377 | + if("2".equals(babyCheck.getLhkyqgbzLeft())){ | |
| 378 | + abnormal+="单眼厌恶试验(左);"; | |
| 379 | + } | |
| 380 | + if("2".equals(babyCheck.getLhswxw())){ | |
| 381 | + abnormal+="视物行为观察;"; | |
| 382 | + } | |
| 383 | + if("2".equals(babyCheck.getLhywjc())){ | |
| 384 | + abnormal+="眼位检查;"; | |
| 385 | + } | |
| 386 | + if("2".equals(babyCheck.getLhsljcstRight())){ | |
| 387 | + abnormal+="视力检查(右);"; | |
| 388 | + } | |
| 389 | + if("2".equals(babyCheck.getLhsljcstLeft())){ | |
| 390 | + abnormal+="视力检查(左);"; | |
| 391 | + } | |
| 392 | + if("2".equals(babyCheck.getLhsldcRight())){ | |
| 393 | + abnormal+="视力低常(右);"; | |
| 394 | + } | |
| 395 | + if("2".equals(babyCheck.getLhsldcLeft())){ | |
| 396 | + abnormal+="视力低常(左);"; | |
| 397 | + } | |
| 398 | + | |
| 399 | + return abnormal; | |
| 400 | + } | |
| 401 | + | |
| 319 | 402 | } |