Browse Source

定标颜色如果为null,则赋值为-1

huangwenjie 7 năm trước cách đây
mục cha
commit
e1c57cb404

+ 1 - 1
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/device/PatientDeviceService.java

@ -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)){