|
@ -154,7 +154,7 @@ public class HealthEduArticlePatientService extends BaseService {
|
|
|
page = 1 ;
|
|
|
}
|
|
|
int start = (page-1) * pagesize;
|
|
|
String sql ="select a.article,b.title,b.summary,a.attached_content, a.czrq,count(a.patient) as amount,GROUP_CONCAT(p.name) as patients,a.batch_no from "+
|
|
|
String sql ="select a.article,b.title,b.summary,a.attached_content, a.czrq,count( distinct a.patient) as amount,GROUP_CONCAT( distinct p.name) as patients,a.batch_no from "+
|
|
|
" wlyy_health_edu_article_patient a, "+
|
|
|
" wlyy_health_edu_article b,"+
|
|
|
" wlyy_patient p"+
|