chenweida 7 лет назад
Родитель
Сommit
aa9499b2a3

+ 7 - 2
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/web/third/gateway/controller/doctor/GcDoctorController.java

@ -1,5 +1,6 @@
package com.yihu.wlyy.web.third.gateway.controller.doctor;
import com.alibaba.fastjson.JSONObject;
import com.yihu.wlyy.entity.doctor.profile.Doctor;
import com.yihu.wlyy.entity.patient.Patient;
import com.yihu.wlyy.service.common.account.DoctorService;
@ -45,8 +46,10 @@ public class GcDoctorController {
        if (doctor != null) {
            doctorModel = new DoctorModel();
            BeanUtils.copyProperties(doctor, doctorModel);
            return new ResultOneModel(doctorModel);
        } else {
            return new ResultOneModel(new JSONObject());
        }
        return new ResultOneModel(doctorModel);
    }
    @RequestMapping(value = "/doctors", method = RequestMethod.GET)
@ -81,8 +84,10 @@ public class GcDoctorController {
        if (patientModel != null) {
            patientModel = new PatientModel();
            BeanUtils.copyProperties(patient, patientModel);
            return new ResultOneModel(patientModel);
        } else {
            return new ResultOneModel(new JSONObject());
        }
        return new ResultOneModel(patientModel);
    }
}

+ 4 - 1
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/web/third/gateway/controller/patient/GcPatientController.java

@ -9,6 +9,7 @@ import com.yihu.wlyy.web.third.gateway.vo.base.ResultOneModel;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.json.JSONObject;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
@ -46,8 +47,10 @@ public class GcPatientController {
            } else {
                patientModel.setIsSign(0);
            }
            return new ResultOneModel(patientModel);
        } else {
            return new ResultOneModel(new JSONObject());
        }
        return new ResultOneModel(patientModel);
    }

+ 3 - 0
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/web/third/gateway/vo/base/ResultOneModel.java

@ -25,6 +25,9 @@ public class ResultOneModel<T> extends BaseResultModel {
        this.result = result;
    }
    public ResultOneModel() {
    }
    public ResultOneModel(Integer code, String message) {
        super(code, message);
    }