| 
															
																@ -361,6 +361,13 @@ public class DoctorWorkTimeService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        return json; 
															 | 
															
															 | 
															
																        return json; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    } 
															 | 
															
															 | 
															
																    } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																    /** 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																     * 名医是否在工作查询 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																     * 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																     * @param doctor 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																     * @return 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																     * @throws Exception 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																     */ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    public JSONObject isFamousDoctorWorking(String doctor) throws Exception{ 
															 | 
															
															 | 
															
																    public JSONObject isFamousDoctorWorking(String doctor) throws Exception{ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        JSONObject json = new JSONObject(); 
															 | 
															
															 | 
															
																        JSONObject json = new JSONObject(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        Calendar calendar = Calendar.getInstance(); 
															 | 
															
															 | 
															
																        Calendar calendar = Calendar.getInstance(); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -399,6 +406,8 @@ public class DoctorWorkTimeService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        WlyyDoctorWorkWeek workWeek = (WlyyDoctorWorkWeek) result.get("workWeek"); 
															 | 
															
															 | 
															
																                        WlyyDoctorWorkWeek workWeek = (WlyyDoctorWorkWeek) result.get("workWeek"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        int hour = calendar.get(Calendar.HOUR_OF_DAY); 
															 | 
															
															 | 
															
																                        int hour = calendar.get(Calendar.HOUR_OF_DAY); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        int minute = calendar.get(Calendar.MINUTE); 
															 | 
															
															 | 
															
																                        int minute = calendar.get(Calendar.MINUTE); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        String start = ""; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        String end =""; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        String current = (hour < 10 ? ("0" + hour) : hour) + ":" + (hour < 10 ? ("0" + minute) : minute); 
															 | 
															
															 | 
															
																                        String current = (hour < 10 ? ("0" + hour) : hour) + ":" + (hour < 10 ? ("0" + minute) : minute); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        // 早上 
															 | 
															
															 | 
															
																                        // 早上 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -411,10 +420,9 @@ public class DoctorWorkTimeService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            if (currentEnd.length() == 4) { 
															 | 
															
															 | 
															
																                            if (currentEnd.length() == 4) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                currentEnd = "0" + currentEnd; 
															 | 
															
															 | 
															
																                                currentEnd = "0" + currentEnd; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            } 
															 | 
															
															 | 
															
																                            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            if (current.compareTo(currentStart) >= 0 && 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                    current.compareTo(currentEnd) < 0) { 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                flag = 1; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            } 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            start = currentStart; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            end = currentEnd; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        } 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        // 下午 
															 | 
															
															 | 
															
																                        // 下午 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        if (workWeek.getAfternoon().equals("1")) { 
															 | 
															
															 | 
															
																                        if (workWeek.getAfternoon().equals("1")) { 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -426,10 +434,10 @@ public class DoctorWorkTimeService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            if (currentEnd.length() == 4) { 
															 | 
															
															 | 
															
																                            if (currentEnd.length() == 4) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                currentEnd = "0" + currentEnd; 
															 | 
															
															 | 
															
																                                currentEnd = "0" + currentEnd; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            } 
															 | 
															
															 | 
															
																                            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            if (current.compareTo(currentStart) >= 0 && 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                    current.compareTo(currentEnd) < 0) { 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                flag = 1; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            if(StringUtils.isEmpty(start)) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                start = currentStart; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            } 
															 | 
															
															 | 
															
																                            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            end = currentEnd; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        } 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        // 晚上 
															 | 
															
															 | 
															
																                        // 晚上 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        if (workWeek.getNight().equals("1")) { 
															 | 
															
															 | 
															
																                        if (workWeek.getNight().equals("1")) { 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -441,10 +449,14 @@ public class DoctorWorkTimeService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            if (currentEnd.length() == 4) { 
															 | 
															
															 | 
															
																                            if (currentEnd.length() == 4) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                currentEnd = "0" + currentEnd; 
															 | 
															
															 | 
															
																                                currentEnd = "0" + currentEnd; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            } 
															 | 
															
															 | 
															
																                            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            if (current.compareTo(currentStart) >= 0 && 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                    current.compareTo(currentEnd) < 0) { 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                flag = 1; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            if(StringUtils.isEmpty(start)) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                start = currentStart; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            } 
															 | 
															
															 | 
															
																                            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            end = currentEnd; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        if(current.compareTo(start) >= 0 && current.compareTo(end) < 0){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            flag = 1; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        } 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        if (flag == 1) { 
															 | 
															
															 | 
															
																                        if (flag == 1) { 
															 |