|
@ -173,6 +173,26 @@ public class PrescriptionEndpoint extends EnvelopRestEndpoint {
|
|
|
@Autowired
|
|
|
private MlwyyPrescriptionService mlwyyPrescriptionService;
|
|
|
|
|
|
@GetMapping(value = "visitedDoctorPage")
|
|
|
@ApiOperation(value = "已就诊医生列表")
|
|
|
public PageEnvelop visitedDoctorPage(@ApiParam(name = "patientId", value = "居民id")
|
|
|
@RequestParam(value = "patientId", required = true) String patientId,
|
|
|
@ApiParam(name = "startTime", value = "开始时间")
|
|
|
@RequestParam(value = "startTime", required = false) String startTime,
|
|
|
@ApiParam(name = "endTime", value = "结束时间")
|
|
|
@RequestParam(value = "endTime", required = false) String endTime,
|
|
|
@ApiParam(name = "page", value = "第几页")
|
|
|
@RequestParam(value = "page", required = true) Integer page,
|
|
|
@ApiParam(name = "size", value = "分页大小")
|
|
|
@RequestParam(value = "size", required = true) Integer size){
|
|
|
try {
|
|
|
return prescriptionService.visitedDoctorPage(patientId, startTime, endTime, page, size);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return PageEnvelop.getError("查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@PostMapping(value = "updPrescriptionExpressage")
|
|
|
@ApiOperation(value = "修改续方收货信息")
|
|
|
public ObjEnvelop updPrescriptionExpressage(@ApiParam(name = "id", value = "收获信息id")
|
|
@ -1529,6 +1549,8 @@ public class PrescriptionEndpoint extends EnvelopRestEndpoint {
|
|
|
@RequestParam(value = "ssc", required = true) String ssc,
|
|
|
@ApiParam(name = "idcard", value = "居民身份证")
|
|
|
@RequestParam(value = "idcard", required = true) String idcard,
|
|
|
@ApiParam(name = "cardType", value = "证件类型")
|
|
|
@RequestParam(value = "cardType", required = false) String cardType,
|
|
|
@ApiParam(name = "sex", value = "性别")
|
|
|
@RequestParam(value = "sex", required = false) Integer sex,
|
|
|
@ApiParam(name = "town", value = "所在区code")
|
|
@ -1554,8 +1576,10 @@ public class PrescriptionEndpoint extends EnvelopRestEndpoint {
|
|
|
@ApiParam(name = "cityName", value = "市名称")
|
|
|
@RequestParam(value = "cityName", required = false) String cityName) {
|
|
|
try {
|
|
|
return success(prescriptionService.updatePatientInfo(patient, name, idcard, ssc, sex, town, townName, committeeCode, committeeName, address, photo, mobile, province, provinceName, city, cityName));
|
|
|
} catch (Exception e) {
|
|
|
return success(prescriptionService.updatePatientInfo(patient, name, idcard,cardType, ssc, sex, town, townName, committeeCode, committeeName, address, photo, mobile, province, provinceName, city, cityName));
|
|
|
}catch (ServiceException se){
|
|
|
return ObjEnvelop.getError(se.getMessage());
|
|
|
}catch (Exception e) {
|
|
|
return failedObjEnvelopException(e);
|
|
|
}
|
|
|
}
|