Commit c761ba06db4581040a57f759b79228d2759e570b

Authored by litao@lymsh.com
1 parent 4a16ddddd2

体重管理修改

Showing 2 changed files with 14 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java View file @ c761ba0
... ... @@ -1099,6 +1099,10 @@
1099 1099 patientBaseResult.setWeight(StringUtils.isNotEmpty(chuModel.getWeight()) ? chuModel.getWeight() : "");
1100 1100 }
1101 1101 }
  1102 + PatientWeight pw = mongoTemplate.findOne(Query.query(Criteria.where("patientId").is(patientBaseResult.getId())), PatientWeight.class);
  1103 + if(pw != null) {
  1104 + patientBaseResult.setPwId(pw.getId());
  1105 + }
1102 1106 return new BaseObjectResponse().setData(patientBaseResult).setErrormsg("成功").setErrorcode(ErrorCodeConstants.SUCCESS);
1103 1107 }
1104 1108 }
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/PatientBaseResult.java View file @ c761ba0
... ... @@ -11,6 +11,16 @@
11 11 * Created by Administrator on 2016/7/10 0010.
12 12 */
13 13 public class PatientBaseResult {
  14 + private String pwId;
  15 +
  16 + public String getPwId() {
  17 + return pwId;
  18 + }
  19 +
  20 + public void setPwId(String pwId) {
  21 + this.pwId = pwId;
  22 + }
  23 +
14 24 private String id;
15 25 //名字
16 26 private String name;