@Test public void testListDiseaseByType() throws Exception { }
@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); }
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); } }
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); }  }
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); }  @Override CommonResult getDiseaseById(Short id); @Override CommonResult insertDisease(Disease disease); @Override CommonResult updateDiseaseById(Disease disease); @Override CommonResult deleteDiseaseById(Short id); @Override CommonResult listAllDiseases(); @Override CommonResult listDiseaseByType(Integer type); }
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); }  @Override CommonResult getDiseaseById(Short id); @Override CommonResult insertDisease(Disease disease); @Override CommonResult updateDiseaseById(Disease disease); @Override CommonResult deleteDiseaseById(Short id); @Override CommonResult listAllDiseases(); @Override CommonResult listDiseaseByType(Integer type);  }