|
@ -118,7 +118,7 @@ public class HealthEduArticlePatientService extends BaseService {
|
|
|
" , wlyy_health_edu_article b" +
|
|
|
" where" +
|
|
|
" a.article = b.code" +
|
|
|
" and (a.type =1 or a.type is null or a.type = '')"+ //添加类型判断是集美的推送还是三师原来的推送
|
|
|
" and ( a.send_type =1 or a.send_type is null or a.send_type = '') "+ //添加类型判断是集美的推送还是三师原来的推送
|
|
|
" and a.patient = ?" +
|
|
|
(id > 0 ? " and a.id < ? " : "") +
|
|
|
(wheaType > 0 ? " and a.wheaType = ? " : "") +
|
|
@ -161,7 +161,7 @@ public class HealthEduArticlePatientService extends BaseService {
|
|
|
" wlyy_patient p"+
|
|
|
" where"+
|
|
|
" a.article = b.code"+
|
|
|
" and (a.type =1 or a.type is null or a.type = '')"+ //添加类型判断是集美的推送还是三师原来的推送
|
|
|
" and ( a.send_type =1 or a.send_type is null or a.send_type = '') "+ //添加类型判断是集美的推送还是三师原来的推送
|
|
|
" and a.patient = p.code"+
|
|
|
" and a.doctor =? "+
|
|
|
" group BY a.batch_no,a.article,a.attached_content,b.summary,a.doctor order by a.czrq desc limit ?,? ";
|
|
@ -185,6 +185,7 @@ public class HealthEduArticlePatientService extends BaseService {
|
|
|
" where"+
|
|
|
" a.article = b.code"+
|
|
|
" and a.patient = p.code"+
|
|
|
" and ( a.send_type =1 or a.send_type is null or a.send_type = '') "+ //添加类型判断是集美的推送还是三师原来的推送
|
|
|
" and a.doctor =? "+
|
|
|
" and a.article =? "+
|
|
|
(StringUtils.isNotBlank(batchNo)?" and a.batch_no =? ":"and a.batch_no is null ")+
|