class DiseaseManagementImpl implements DiseaseManagementService {

    @Override
    public CommonResult listDiseaseByType(Integer type){
        JSONObject returnJson = new JSONObject();
        List<HashMap> diseases;
        if(type == 0)//中医疾病
            diseases = diseaseMapper.ListChineseDisease();
        else if(type == 1) //西医疾病
            diseases = diseaseMapper.ListWesternDisease();
        else
            return CommonResult.fail(E_801);//参数异常
        returnJson.put("disease", diseases);
        return CommonResult.success(returnJson);
    }

}