Commit 4614d8d6851eae30bb297d1c0b4aeb5d72d7d417

Authored by gengxiaokai

Merge remote-tracking branch 'origin/master'

Showing 1 changed file

platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/MongoUtil.java View file @ 4614d8d
1 1 package com.lyms.platform.operate.web.utils;
2 2  
  3 +import com.lyms.platform.biz.service.BabyBookbuildingService;
3 4 import com.lyms.platform.common.enums.RiskDefaultTypeEnum;
4 5 import com.lyms.platform.common.utils.DateUtil;
5 6 import com.lyms.platform.common.utils.StringUtils;
... ... @@ -37,6 +38,9 @@
37 38 AutoMatchFacade autoMatchFacade;
38 39  
39 40 @Autowired
  41 + private BabyBookbuildingService babyBookbuildingService;
  42 +
  43 + @Autowired
40 44 private OrganizationGroupsFacade organizationGroupsFacade;
41 45  
42 46 public List<Map<String, Object>> getListByParentId(String id) {
... ... @@ -90,7 +94,8 @@
90 94 babyModel.setEnable("2");
91 95 babyModel.setSource(babyId);
92 96 babyModel.setCreated(new Date());
93   - mongoTemplate.save(babyModel);
  97 +// mongoTemplate.save(babyModel);
  98 + babyBookbuildingService.addBabyBookbuilding(babyModel);
94 99 return true;
95 100 }
96 101 return false;