Commit e465c59ab1a86d7e987c3d3c1326b680dc4cd581
1 parent
2f947cc417
Exists in
master
and in
6 other branches
update
Showing 3 changed files with 20 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyEarFacade.java
View file @
e465c59
... | ... | @@ -17,6 +17,7 @@ |
17 | 17 | import com.lyms.platform.common.utils.SystemConfig; |
18 | 18 | import com.lyms.platform.operate.web.request.*; |
19 | 19 | import com.lyms.platform.operate.web.result.*; |
20 | +import com.lyms.platform.operate.web.service.BabyAfterVisitService; | |
20 | 21 | import com.lyms.platform.operate.web.utils.*; |
21 | 22 | import com.lyms.platform.permission.model.*; |
22 | 23 | import com.lyms.platform.permission.service.*; |
... | ... | @@ -96,6 +97,8 @@ |
96 | 97 | @Autowired |
97 | 98 | private PatientServiceFacade patientServiceFacade; |
98 | 99 | |
100 | + @Autowired | |
101 | + private BabyAfterVisitService babyAfterVisitService; | |
99 | 102 | |
100 | 103 | @Autowired |
101 | 104 | private BabyBookbuildingFacade babyBookbuildingFacade; |
... | ... | @@ -1877,6 +1880,12 @@ |
1877 | 1880 | //建立隐藏档案 |
1878 | 1881 | |
1879 | 1882 | addhideBabyEar(babyPatientExtendEarScreen.getBabyId(), hId, "2"); |
1883 | + | |
1884 | + /*0-追访概况 7 更新听力筛查数量*/ | |
1885 | + BabyModel model = new BabyModel(); | |
1886 | + model.setId(babyModel.getId()); | |
1887 | + babyAfterVisitService.addOrUpdateAfterVisitData(model, 0, 7); | |
1888 | + | |
1880 | 1889 | } else { |
1881 | 1890 | babyPatientExtendEarScreen.setLastUpdateDate(new Date()); |
1882 | 1891 | babyPatientExtendEarScreen.setLastUpdateUserId(userId + ""); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/BabyAfterVisitService.java
View file @
e465c59
... | ... | @@ -44,7 +44,8 @@ |
44 | 44 | public static final Integer STATUS_TYPE_CHECK= 5; |
45 | 45 | /**标识:眼保检查*/ |
46 | 46 | public static final Integer STATUS_TYPE_EYE_CHECK= 6; |
47 | - | |
47 | + /**标识:眼保检查*/ | |
48 | + public static final Integer STATUS_TYPE_EYE_HEAR= 7; | |
48 | 49 | public static final String BABY_ID = "babyId"; |
49 | 50 | public static final String POSITIVE_PROJECT_TYPE = "yang"; |
50 | 51 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BabyAfterVisitServiceImpl.java
View file @
e465c59
... | ... | @@ -720,6 +720,15 @@ |
720 | 720 | mongoTemplate.updateFirst(Query.query(Criteria.where(BABY_ID).is(babyModelId).and("yn").is(1)), Update.update("eyeCheckSize", eyeCheckSize), BabyAfterVisitStatisticsModel.class); |
721 | 721 | } |
722 | 722 | } |
723 | + // 更新听力筛查数量 | |
724 | + if (Objects.equals(STATUS_TYPE_EYE_HEAR, statusType)) { | |
725 | + BabyAfterVisitStatisticsModel one = mongoTemplate.findOne(Query.query(Criteria.where(BABY_ID).is(babyModelId).and("yn").is(1)), BabyAfterVisitStatisticsModel.class); | |
726 | + if (one != null) { | |
727 | + Integer hearCheckSize = one.getHearCheckSize(); | |
728 | + hearCheckSize++; | |
729 | + mongoTemplate.updateFirst(Query.query(Criteria.where(BABY_ID).is(babyModelId).and("yn").is(1)), Update.update("hearCheckSize", hearCheckSize), BabyAfterVisitStatisticsModel.class); | |
730 | + } | |
731 | + } | |
723 | 732 | logger.info("已更新到追访概况中"); |
724 | 733 | |
725 | 734 | } |