Commit f6551dedaee46f3e4e2857151283d2c7900787ac
1 parent
24d26a9362
Exists in
master
and in
6 other branches
分娩查询
Showing 2 changed files with 17 additions and 3 deletions
platform-dal/src/main/java/com/lyms/platform/query/MatDeliverQuery.java
View file @
f6551de
| ... | ... | @@ -274,14 +274,14 @@ |
| 274 | 274 | //1 <2500g、2 ≥4000g、3 ≥2500g与<4000g之间 |
| 275 | 275 | switch (weight) { |
| 276 | 276 | case 1: |
| 277 | - condition = condition.and("baby.babyWeight", 2500, MongoOper.LT); | |
| 277 | + condition = condition.and("baby.babyWeight", "2500", MongoOper.LT); | |
| 278 | 278 | break; |
| 279 | 279 | case 2: |
| 280 | - condition = condition.and("baby.babyWeight", 4000, MongoOper.GTE); | |
| 280 | + condition = condition.and("baby.babyWeight", "4000", MongoOper.GTE); | |
| 281 | 281 | break; |
| 282 | 282 | case 3: |
| 283 | 283 | isAddStart = Boolean.TRUE; |
| 284 | - c = Criteria.where("baby.babyWeight").gte(2500).lt(4000); | |
| 284 | + c = Criteria.where("baby.babyWeight").gte("2500").lt("4000"); | |
| 285 | 285 | break; |
| 286 | 286 | } |
| 287 | 287 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/CourseFacade.java
View file @
f6551de
| ... | ... | @@ -338,6 +338,20 @@ |
| 338 | 338 | { |
| 339 | 339 | model.setStatus(CourseStatusEnums.YJS.getId()); |
| 340 | 340 | courseService.updateCourse(model); |
| 341 | + | |
| 342 | + PatientCourseQuery patientCourseQuery = new PatientCourseQuery(); | |
| 343 | + patientCourseQuery.setYn(YnEnums.YES.getId()); | |
| 344 | + patientCourseQuery.setCourseId(model.getId()); | |
| 345 | + //状态 1预约,2签到 | |
| 346 | + patientCourseQuery.setStatus(2); | |
| 347 | + List<PatientCourseModel> patientCourseModels = patientCourseService.queryPatientCourseList(patientCourseQuery); | |
| 348 | + if (CollectionUtils.isNotEmpty(patientCourseModels)) | |
| 349 | + { | |
| 350 | + for (PatientCourseModel patientCourseModel : patientCourseModels) | |
| 351 | + { | |
| 352 | + | |
| 353 | + } | |
| 354 | + } | |
| 341 | 355 | } |
| 342 | 356 | } |
| 343 | 357 | } |