|
@ -695,7 +695,7 @@ public class PatientDeviceService extends BaseService {
|
|
|
* @return
|
|
|
*/
|
|
|
public List<com.alibaba.fastjson.JSONObject> chronicDiseaseCount(String type){
|
|
|
StringBuffer sql = new StringBuffer("SELECT p.disease_condition diseaseCondition,COUNT(*) num ");
|
|
|
StringBuffer sql = new StringBuffer("SELECT ifnull(p.disease_condition,-1) diseaseCondition,COUNT(*) num ");
|
|
|
sql.append("from ( SELECT DISTINCT f.* from wlyy_patient_device d,wlyy_sign_family f ");
|
|
|
sql.append("WHERE f.`status`>0 and f.patient = d.`user`) t,wlyy_patient p ");
|
|
|
if(StringUtils.isNotBlank(type)){
|