|
@@ -3,6 +3,7 @@ package com.ywt.alipaympapi.controller;
|
|
|
import com.ywt.alipaympapi.service.IsvMedicCardService;
|
|
|
import com.ywt.core.exception.AppMessageException;
|
|
|
import com.ywt.model.BaseResponse;
|
|
|
+import com.ywt.model.Code;
|
|
|
import com.ywt.model.PageVO;
|
|
|
import com.ywt.model.ResponseVO;
|
|
|
import com.ywt.request.card.*;
|
|
@@ -183,10 +184,10 @@ public class MedicCardController {
|
|
|
try {
|
|
|
return ResponseVO.success(medicCardService.querySinglePatient(request));
|
|
|
} catch (AppMessageException e) {
|
|
|
- return ResponseVO.fail(BaseResponse.PARAMETER_ERROR, e.getMessage());
|
|
|
+ return ResponseVO.fail(Code.RESP_CODE_PARAM_ERROR, e.getMessage());
|
|
|
} catch (Exception e) {
|
|
|
log.error("MedicCardController#querySinglePatient(request={} ):\n {}", request, e.getMessage(), e);
|
|
|
- return ResponseVO.fail(BaseResponse.APP_ERROR, e.getMessage());
|
|
|
+ return ResponseVO.fail(Code.RESP_CODE_APP_EXCEPTION, e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
/**
|