Commit dd4a5e2baa98924b25f3adb5f4add5848772d537
1 parent
fb24fbe32c
Exists in
master
and in
6 other branches
优惠券
Showing 2 changed files with 12 additions and 1 deletions
platform-dal/src/main/java/com/lyms/platform/pojo/PatientWeight.java
View file @
dd4a5e2
| ... | ... | @@ -14,6 +14,8 @@ |
| 14 | 14 | |
| 15 | 15 | private String id; |
| 16 | 16 | |
| 17 | + private String pid; | |
| 18 | + | |
| 17 | 19 | private Date created; |
| 18 | 20 | |
| 19 | 21 | private String yn; |
| ... | ... | @@ -43,6 +45,14 @@ |
| 43 | 45 | private String bregmaticOther; |
| 44 | 46 | |
| 45 | 47 | private String bmi; |
| 48 | + | |
| 49 | + public String getPid() { | |
| 50 | + return pid; | |
| 51 | + } | |
| 52 | + | |
| 53 | + public void setPid(String pid) { | |
| 54 | + this.pid = pid; | |
| 55 | + } | |
| 46 | 56 | |
| 47 | 57 | public Map<String, String> getDayWeights() { |
| 48 | 58 | return dayWeights; |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java
View file @
dd4a5e2
| ... | ... | @@ -16,7 +16,6 @@ |
| 16 | 16 | import com.lyms.platform.pojo.Patients; |
| 17 | 17 | import org.apache.commons.collections.MapUtils; |
| 18 | 18 | import org.apache.commons.lang.StringUtils; |
| 19 | -import org.apache.tools.ant.taskdefs.Java; | |
| 20 | 19 | import org.springframework.beans.factory.annotation.Autowired; |
| 21 | 20 | import org.springframework.data.domain.Sort; |
| 22 | 21 | import org.springframework.data.mongodb.core.MongoTemplate; |
| ... | ... | @@ -86,6 +85,7 @@ |
| 86 | 85 | antenatalExaminationFacade.handHideBuild(patients.getPid(), patients.getId(), userId, 1); |
| 87 | 86 | |
| 88 | 87 | dayWeights.put(DateUtil.getyyyy_MM_dd(new Date()), nowWeight); |
| 88 | + patientWeight.setPid(patients.getPid()); | |
| 89 | 89 | patientWeight.setDayWeights(dayWeights); |
| 90 | 90 | patientWeight.setHospitalId(hospitalId); |
| 91 | 91 | patientWeight.setOperaterId(userId.toString()); |
| ... | ... | @@ -321,6 +321,7 @@ |
| 321 | 321 | patientWeight.setBmi(getBmi(patientWeight.getNowWeight(), patientWeight.getBeforeHeight())); |
| 322 | 322 | } |
| 323 | 323 | patientWeight.setYn("1"); |
| 324 | + patientWeight.setPid(patients.getPid()); | |
| 324 | 325 | mongoTemplate.save(patientWeight); |
| 325 | 326 | return RespBuilder.buildSuccess(patientWeight.getId()); |
| 326 | 327 | } else { |