Commit 9abed4fbbe801f0db6c2801040c2dbf253ac0d72

Authored by jiangjiazhi
1 parent cb960f9187

修改产检删除

Showing 2 changed files with 5 additions and 6 deletions

platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/AntExRecordDaoImpl.java View file @ 9abed4f
... ... @@ -19,10 +19,7 @@
19 19 import org.springframework.data.mongodb.core.query.Criteria;
20 20 import org.springframework.stereotype.Repository;
21 21  
22   -import java.util.ArrayList;
23   -import java.util.HashMap;
24   -import java.util.List;
25   -import java.util.Map;
  22 +import java.util.*;
26 23  
27 24 /**
28 25 * 产检管理接口
... ... @@ -58,6 +55,7 @@
58 55 }
59 56  
60 57 public AntExRecordModel addOneRecord(AntExRecordModel record){
  58 + record.setCreated(new Date());
61 59 return save(record);
62 60 }
63 61  
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntExRecordFacade.java View file @ 9abed4f
... ... @@ -179,8 +179,9 @@
179 179 for (HashMap map : list) {
180 180 CjStatisticsResult cjStatisticsResult = new CjStatisticsResult();
181 181 String dId=null;
182   - if(map.containsKey("_id")){
183   - dId = map.get("_id").toString();
  182 + Object id = map.get("_id");
  183 + if(null!=id){
  184 + dId =id.toString();
184 185 }
185 186  
186 187 cjStatisticsResult.setdId(dId);