Bladeren bron

主键查询失败异常捕捉

8 jaren geleden
bovenliggende
commit
9f48886344
1 gewijzigde bestanden met toevoegingen van 4 en 3 verwijderingen
  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) {