소스 검색

主键查询失败异常捕捉

8 년 전
부모
커밋
9f48886344
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      patient-co-wlyy/src/main/java/com/yihu/wlyy/web/third/BookingController.java

+ 4 - 3
patient-co-wlyy/src/main/java/com/yihu/wlyy/web/third/BookingController.java

@ -562,9 +562,10 @@ public class BookingController extends WeixinBaseController {
	public String GetPatientReservation(@ApiParam(name="orderId",value="订单id",defaultValue = "9")
										 @RequestParam(value="orderId",required = true) String orderId) {
		try {
			PatientReservation obj =  patientReservationService.findById(orderId);
			//id获取不到,用单号获取一遍
			if(obj==null){
			PatientReservation obj = null;
			try{
				obj =  patientReservationService.findById(orderId);
			}catch (Exception e){
				obj = patientReservationService.findByCode(orderId);
			}
			if(obj!=null) {