|
@ -42,7 +42,7 @@ public class PatientCourseEndpoint extends EnvelopRestEndpoint {
|
|
|
Map<String, Integer> map = courseService.topStatusBarNum(patient);
|
|
|
return ObjEnvelop.getSuccess("获取成功",map);
|
|
|
} catch (Exception e) {
|
|
|
return failedObjEnvelopException(e);
|
|
|
return failedObjEnvelopException2(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -61,7 +61,7 @@ public class PatientCourseEndpoint extends EnvelopRestEndpoint {
|
|
|
Long count = result.getLongValue(ResponseContant.count);
|
|
|
return PageEnvelop.getSuccessListWithPage("查询成功",(List<Map<String,Object>>)result.get(ResponseContant.resultMsg),page,size,count);
|
|
|
}catch (Exception e){
|
|
|
return failedPageEnvelopException(e);
|
|
|
return failedPageEnvelopException2(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -74,7 +74,7 @@ public class PatientCourseEndpoint extends EnvelopRestEndpoint {
|
|
|
JSONObject json = courseService.orderInfo(id,type);
|
|
|
return ObjEnvelop.getSuccess("获取成功",json);
|
|
|
} catch (Exception e) {
|
|
|
return failedObjEnvelopException(e);
|
|
|
return failedObjEnvelopException2(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -90,7 +90,7 @@ public class PatientCourseEndpoint extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
return Envelop.getError(res, -1);
|
|
|
} catch (Exception e) {
|
|
|
return failedException(e);
|
|
|
return failedException2(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -105,7 +105,7 @@ public class PatientCourseEndpoint extends EnvelopRestEndpoint {
|
|
|
JSONObject json = courseService.getCourseByCourse(longitude,latitude, pageSize, currentPage);
|
|
|
return ObjEnvelop.getSuccess("获取成功",json);
|
|
|
} catch (Exception e) {
|
|
|
return failedObjEnvelopException(e);
|
|
|
return failedObjEnvelopException2(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -121,7 +121,7 @@ public class PatientCourseEndpoint extends EnvelopRestEndpoint {
|
|
|
JSONObject json = courseService.getCourseByOrg(longitude,latitude);
|
|
|
return ObjEnvelop.getSuccess("获取成功",json);
|
|
|
} catch (Exception e) {
|
|
|
return failedObjEnvelopException(e);
|
|
|
return failedObjEnvelopException2(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -145,7 +145,7 @@ public class PatientCourseEndpoint extends EnvelopRestEndpoint {
|
|
|
JSONObject json = courseService.getCourseByteacher(longitude,latitude);
|
|
|
return ObjEnvelop.getSuccess("获取成功",json);
|
|
|
} catch (Exception e) {
|
|
|
return failedObjEnvelopException(e);
|
|
|
return failedObjEnvelopException2(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -158,7 +158,7 @@ public class PatientCourseEndpoint extends EnvelopRestEndpoint {
|
|
|
JSONObject json = courseService.getCourseInfo(id);
|
|
|
return ObjEnvelop.getSuccess("获取成功",json);
|
|
|
} catch (Exception e) {
|
|
|
return failedObjEnvelopException(e);
|
|
|
return failedObjEnvelopException2(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -172,7 +172,7 @@ public class PatientCourseEndpoint extends EnvelopRestEndpoint {
|
|
|
JSONObject json = courseService.getCatalogue(id,patient);
|
|
|
return ObjEnvelop.getSuccess("获取成功",json);
|
|
|
} catch (Exception e) {
|
|
|
return failedObjEnvelopException(e);
|
|
|
return failedObjEnvelopException2(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -186,7 +186,7 @@ public class PatientCourseEndpoint extends EnvelopRestEndpoint {
|
|
|
JSONObject json = courseService.getOrgInfoById(id,patient);
|
|
|
return ObjEnvelop.getSuccess("获取成功",json);
|
|
|
} catch (Exception e) {
|
|
|
return failedObjEnvelopException(e);
|
|
|
return failedObjEnvelopException2(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -202,7 +202,7 @@ public class PatientCourseEndpoint extends EnvelopRestEndpoint {
|
|
|
JSONObject json = courseService.getTecInfoById(doctor,orgCode,page,size);
|
|
|
return ObjEnvelop.getSuccess("获取成功",json);
|
|
|
} catch (Exception e) {
|
|
|
return failedObjEnvelopException(e);
|
|
|
return failedObjEnvelopException2(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -218,7 +218,7 @@ public class PatientCourseEndpoint extends EnvelopRestEndpoint {
|
|
|
JSONObject json = courseService.getCoursrOrderStatusByPatient(patient,status,page,size);
|
|
|
return ObjEnvelop.getSuccess("获取成功",json);
|
|
|
} catch (Exception e) {
|
|
|
return failedObjEnvelopException(e);
|
|
|
return failedObjEnvelopException2(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -230,7 +230,7 @@ public class PatientCourseEndpoint extends EnvelopRestEndpoint {
|
|
|
try {
|
|
|
return success(courseService.getOrderInfo(orderId));
|
|
|
} catch (Exception e) {
|
|
|
return failedException(e);
|
|
|
return failedException2(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -243,7 +243,7 @@ public class PatientCourseEndpoint extends EnvelopRestEndpoint {
|
|
|
try {
|
|
|
return success("查询成功",courseService.isEnrollment(patient,recruitStudentsId));
|
|
|
} catch (Exception e) {
|
|
|
return failedException(e);
|
|
|
return failedException2(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -260,7 +260,7 @@ public class PatientCourseEndpoint extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
return success("报名成功",json.get("recordDO"));
|
|
|
} catch (Exception e) {
|
|
|
return failedException(e);
|
|
|
return failedException2(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -276,7 +276,7 @@ public class PatientCourseEndpoint extends EnvelopRestEndpoint {
|
|
|
try {
|
|
|
return success(courseService.buyCourseOrder(patient,patientName,courseId,payType));
|
|
|
} catch (Exception e) {
|
|
|
return failedException(e);
|
|
|
return failedException2(e);
|
|
|
}
|
|
|
}
|
|
|
|