Commit 69ff8eca6d94360f65d6c57a6b53cdd809e8ef33

Authored by jiangjiazhi
1 parent 5a76ae6b4d

修改体重营养报告

Showing 2 changed files with 3 additions and 3 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/PatientWeightService.java View file @ 69ff8ec
... ... @@ -8,7 +8,7 @@
8 8 */
9 9 public interface PatientWeightService extends IBaseService {
10 10  
11   - String lastCheckTime(String pid);
  11 + BaseResponse lastCheckTime(String pid);
12 12 BaseResponse init();
13 13 BaseResponse patientRecipeInfo(String pid,Integer type);
14 14 BaseResponse addOrUpdate(Integer userId, PatientWeight patientWeight);
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java View file @ 69ff8ec
... ... @@ -418,7 +418,7 @@
418 418 return patientWeight;
419 419 }
420 420  
421   - public String lastCheckTime(String pid) {
  421 + public BaseResponse lastCheckTime(String pid) {
422 422 PatientWeight patientWeight = queryPatientWeight(pid);
423 423 Integer week = 0;
424 424 if (null != patientWeight) {
... ... @@ -427,7 +427,7 @@
427 427 week = DateUtil.getWeek2(patients.getLastMenses(), patientWeight.getModified());
428 428 }
429 429 }
430   - return "孕" + String.valueOf(week) + "期";
  430 + return new BaseObjectResponse().setData(week).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功");
431 431 }
432 432  
433 433 public BaseResponse patientRecipeInfo(String pid, Integer type) {