@Test public void testListMyDiagnoseTemplate() throws Exception { }
@Override public CommonResult listMyDiagnoseTemplate(Integer roleId){ JSONObject returnJson = new JSONObject(); List<HashMap> myList; if(roleId == null){ return CommonResult.fail(ResultCode.E_801); } myList = diagnoseTemplateMapper.listMyDiagnoseTemplateByType(roleId, 0); returnJson.put("traditionalDiagnoseTemplates", myList); myList = diagnoseTemplateMapper.listMyDiagnoseTemplateByType(roleId, 1); returnJson.put("modernDiagnoseTemplates", myList); return CommonResult.success(returnJson); }
DiagnoseTemplateServiceImpl implements DiagnoseTemplateService { @Override public CommonResult listMyDiagnoseTemplate(Integer roleId){ JSONObject returnJson = new JSONObject(); List<HashMap> myList; if(roleId == null){ return CommonResult.fail(ResultCode.E_801); } myList = diagnoseTemplateMapper.listMyDiagnoseTemplateByType(roleId, 0); returnJson.put("traditionalDiagnoseTemplates", myList); myList = diagnoseTemplateMapper.listMyDiagnoseTemplateByType(roleId, 1); returnJson.put("modernDiagnoseTemplates", myList); return CommonResult.success(returnJson); } }
DiagnoseTemplateServiceImpl implements DiagnoseTemplateService { @Override public CommonResult listMyDiagnoseTemplate(Integer roleId){ JSONObject returnJson = new JSONObject(); List<HashMap> myList; if(roleId == null){ return CommonResult.fail(ResultCode.E_801); } myList = diagnoseTemplateMapper.listMyDiagnoseTemplateByType(roleId, 0); returnJson.put("traditionalDiagnoseTemplates", myList); myList = diagnoseTemplateMapper.listMyDiagnoseTemplateByType(roleId, 1); returnJson.put("modernDiagnoseTemplates", myList); return CommonResult.success(returnJson); }  }
DiagnoseTemplateServiceImpl implements DiagnoseTemplateService { @Override public CommonResult listMyDiagnoseTemplate(Integer roleId){ JSONObject returnJson = new JSONObject(); List<HashMap> myList; if(roleId == null){ return CommonResult.fail(ResultCode.E_801); } myList = diagnoseTemplateMapper.listMyDiagnoseTemplateByType(roleId, 0); returnJson.put("traditionalDiagnoseTemplates", myList); myList = diagnoseTemplateMapper.listMyDiagnoseTemplateByType(roleId, 1); returnJson.put("modernDiagnoseTemplates", myList); return CommonResult.success(returnJson); }  @Override CommonResult saveDiagnoseTemplate(DiagnoseTemplateParam diagnoseTemplateParam); @Override CommonResult modifyDiagnoseTemplate(DiagnoseTemplateParam diagnoseTemplateParam); @Override CommonResult listMyDiagnoseTemplate(Integer roleId); CommonResult deleteMyDiagnoseTemplate(Integer roleId, String diagnoseTemplateName); }
DiagnoseTemplateServiceImpl implements DiagnoseTemplateService { @Override public CommonResult listMyDiagnoseTemplate(Integer roleId){ JSONObject returnJson = new JSONObject(); List<HashMap> myList; if(roleId == null){ return CommonResult.fail(ResultCode.E_801); } myList = diagnoseTemplateMapper.listMyDiagnoseTemplateByType(roleId, 0); returnJson.put("traditionalDiagnoseTemplates", myList); myList = diagnoseTemplateMapper.listMyDiagnoseTemplateByType(roleId, 1); returnJson.put("modernDiagnoseTemplates", myList); return CommonResult.success(returnJson); }  @Override CommonResult saveDiagnoseTemplate(DiagnoseTemplateParam diagnoseTemplateParam); @Override CommonResult modifyDiagnoseTemplate(DiagnoseTemplateParam diagnoseTemplateParam); @Override CommonResult listMyDiagnoseTemplate(Integer roleId); CommonResult deleteMyDiagnoseTemplate(Integer roleId, String diagnoseTemplateName);  }