|
@ -98,6 +98,9 @@ public class DoctorQuickReplyService extends BaseService {
|
|
|
*/
|
|
|
public List<DoctorQuickReply> getDoctorReplyList(String doctor,String type) throws Exception{
|
|
|
Sort sort = new Sort(Sort.Direction.DESC, "sort");
|
|
|
if("1".equals(type)){
|
|
|
sort = new Sort(Sort.Direction.ASC, "sort");
|
|
|
}
|
|
|
List<DoctorQuickReply> replies = quickReplyDao.findDoctorRepliesByType(doctor, Integer.parseInt(type),sort);
|
|
|
|
|
|
if(replies.isEmpty() && "1".equals(type)){
|