|
@ -55,19 +55,10 @@ public class BaseBannerDoctorService extends BaseJpaService<BaseBannerDoctorDO,
|
|
|
//获取每个锦旗数量
|
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql.toString());
|
|
|
int count = baseBannerDoctorDao.getTotalBannerCount(doctorID);
|
|
|
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;
|
|
|
}
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
jsonObject.put("count",count);
|
|
|
jsonObject.put("resultlist",list);
|
|
|
return jsonObject;
|
|
|
|
|
|
}
|
|
|
}
|