|
@ -3,6 +3,7 @@ package com.yihu.jw.controller;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yihu.jw.entity.specialist.SpecialistPatientRelationDO;
|
|
|
import com.yihu.jw.restmodel.web.Envelop;
|
|
|
import com.yihu.jw.restmodel.web.MixEnvelop;
|
|
|
import com.yihu.jw.restmodel.web.ObjEnvelop;
|
|
|
import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
|
|
@ -496,4 +497,17 @@ public class SpecialistController extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@PostMapping(value = SpecialistMapping.specialist.updatePatientSignSpecialistInfo)
|
|
|
@ApiOperation(value = "更新居民专科医生有效签约信息")
|
|
|
public Envelop updatePatientSignSpecialistInfo(@ApiParam(name = "patient", value = "居民code") @RequestParam(required = true)String patient,
|
|
|
@ApiParam(name = "doctor", value = "专科医生code") @RequestParam(required = true)String doctor,
|
|
|
@ApiParam(name = "doctorName", value = "专科医生姓名") @RequestParam(required = true)String doctorName) {
|
|
|
try {
|
|
|
return specialistService.updatePatientSignSpecialistInfo(patient,doctor, doctorName);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
tracer.getCurrentSpan().logEvent(e.getMessage());
|
|
|
return Envelop.getError(e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
}
|