|
@ -858,15 +858,18 @@ public class PatientService extends TokenService {
|
|
|
" wlyy_sign_family f ,wlyy_patient p " +
|
|
|
" WHERE " +
|
|
|
" f.patient = p.code ";
|
|
|
//获取微信关注量分组数量
|
|
|
fousGSql = fousGSql +" AND p.openid IS NOT NULL AND p.openid <>'' " ;
|
|
|
|
|
|
|
|
|
if(StringUtils.isNotBlank(diseaseCondition)){
|
|
|
fousGSql = fousGSql +" AND p.disease_condition = "+diseaseCondition;
|
|
|
}
|
|
|
|
|
|
if(isSlowDisease){
|
|
|
//慢病管理预警居民分数数量
|
|
|
fousGSql = fousGSql +" AND p.standard_status = 1 ";
|
|
|
}else{
|
|
|
//获取微信关注量分组数量
|
|
|
fousGSql = fousGSql +" AND p.openid IS NOT NULL AND p.openid <>'' " ;
|
|
|
}
|
|
|
fousGSql = fousGSql +
|
|
|
" AND ( " +
|