Commit a35306982736f4b349fb81fa8b5d9a0dee281f13
1 parent
3edbd09f2b
Exists in
master
and in
6 other branches
//秦皇岛-高危儿专科 建档页面 月龄保存更新儿童档案月龄
Showing 1 changed file with 13 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyHighRiskBabyFacade.java
View file @
a353069
| ... | ... | @@ -2,6 +2,9 @@ |
| 2 | 2 | |
| 3 | 3 | import com.lyms.platform.biz.service.*; |
| 4 | 4 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
| 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; | |
| 5 | 8 | import com.lyms.platform.common.enums.OptActionEnums; |
| 6 | 9 | import com.lyms.platform.common.enums.SexEnum; |
| 7 | 10 | import com.lyms.platform.common.enums.YnEnums; |
| ... | ... | @@ -375,6 +378,16 @@ |
| 375 | 378 | BabyHighRiskBabyModel models = babyHighRiskBabyService.queryById(request.getId()); |
| 376 | 379 | if (models != null && models.getId() != null) { |
| 377 | 380 | babyHighRiskBabyService.update(model, request.getId()); |
| 381 | + //秦皇岛-高危儿专科 建档页面 月龄保存更新儿童档案月龄 | |
| 382 | + BabyModel babyModel=new BabyModel(); | |
| 383 | + //出生日期 | |
| 384 | + babyModel.setBirth(DateUtil.parseYMD(request.getBirthday())); | |
| 385 | + //预产期 | |
| 386 | + babyModel.setDueDate(DateUtil.parseYMD(request.getBirthDueDate())); | |
| 387 | + //孕周 | |
| 388 | + babyModel.setDueWeek(Integer.valueOf(request.getBirthWeek())); | |
| 389 | + babyBookbuildingService.updateBabyBuild(babyModel,model.getBuildId()); | |
| 390 | + | |
| 378 | 391 | operateLogFacade.addModifyOptLog(userId, Integer.valueOf(hospitalId), models, model, OptActionEnums.UPDATE.getId(), "高危儿专科检查"); |
| 379 | 392 | |
| 380 | 393 | if ("cz".equals(model.getCzOrfzProject()) && StringUtils.isNotEmpty(model.getBuildId()) && StringUtils.isNotEmpty(model.getNumber())) { |