|  | @ -55,9 +55,19 @@ public class BaseBannerDoctorService extends BaseJpaService<BaseBannerDoctorDO,
 | 
												
													
														
															|  |         //获取每个锦旗数量
 |  |         //获取每个锦旗数量
 | 
												
													
														
															|  |         List<Map<String,Object>> list = jdbcTemplate.queryForList(sql.toString());
 |  |         List<Map<String,Object>> list = jdbcTemplate.queryForList(sql.toString());
 | 
												
													
														
															|  |         int count = baseBannerDoctorDao.getTotalBannerCount(doctorID);
 |  |         int count = baseBannerDoctorDao.getTotalBannerCount(doctorID);
 | 
												
													
														
															|  |         JSONObject jsonObject = new JSONObject();
 |  | 
 | 
												
													
														
															|  |         jsonObject.put("count",count);
 |  | 
 | 
												
													
														
															|  |         jsonObject.put("resultlist",list);
 |  | 
 | 
												
													
														
															|  |         return jsonObject;
 |  | 
 | 
												
													
														
															|  | 
 |  |         if(list.size()>0){
 | 
												
													
														
															|  | 
 |  |             JSONObject jsonObject = new JSONObject();
 | 
												
													
														
															|  | 
 |  |             jsonObject.put("message","success");
 | 
												
													
														
															|  | 
 |  |             jsonObject.put("status","200");
 | 
												
													
														
															|  | 
 |  |             jsonObject.put("count",count);
 | 
												
													
														
															|  | 
 |  |             jsonObject.put("resultlist",list);
 | 
												
													
														
															|  | 
 |  |             return jsonObject;
 | 
												
													
														
															|  | 
 |  |         }else {
 | 
												
													
														
															|  | 
 |  |             JSONObject jsonObject = new JSONObject();
 | 
												
													
														
															|  | 
 |  |             jsonObject.put("message","failed");
 | 
												
													
														
															|  | 
 |  |             jsonObject.put("status","500");
 | 
												
													
														
															|  | 
 |  |             return jsonObject;
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     }
 |  |     }
 | 
												
													
														
															|  | }
 |  | }
 |