@Test public void testDeleteRecipeTemplate() throws Exception { }
@Override public CommonResult deleteRecipeTemplate(Integer roleId, String recipeName) { if (roleId == null || recipeName == null) return CommonResult.fail(ResultCode.E_801); if (0 == recipeTemplateMapper.getRecipeTemplateByRoleIdAndName(roleId, recipeName).size()) return CommonResult.fail(ResultCode.E_804); int count = recipeTemplateMapper.deleteByRIdAndName(roleId, recipeName); return CommonResult.success(count); }
RecipeTemplateManagementServiceImpl implements RecipeTemplateManagementService { @Override public CommonResult deleteRecipeTemplate(Integer roleId, String recipeName) { if (roleId == null || recipeName == null) return CommonResult.fail(ResultCode.E_801); if (0 == recipeTemplateMapper.getRecipeTemplateByRoleIdAndName(roleId, recipeName).size()) return CommonResult.fail(ResultCode.E_804); int count = recipeTemplateMapper.deleteByRIdAndName(roleId, recipeName); return CommonResult.success(count); } }
RecipeTemplateManagementServiceImpl implements RecipeTemplateManagementService { @Override public CommonResult deleteRecipeTemplate(Integer roleId, String recipeName) { if (roleId == null || recipeName == null) return CommonResult.fail(ResultCode.E_801); if (0 == recipeTemplateMapper.getRecipeTemplateByRoleIdAndName(roleId, recipeName).size()) return CommonResult.fail(ResultCode.E_804); int count = recipeTemplateMapper.deleteByRIdAndName(roleId, recipeName); return CommonResult.success(count); }  }
RecipeTemplateManagementServiceImpl implements RecipeTemplateManagementService { @Override public CommonResult deleteRecipeTemplate(Integer roleId, String recipeName) { if (roleId == null || recipeName == null) return CommonResult.fail(ResultCode.E_801); if (0 == recipeTemplateMapper.getRecipeTemplateByRoleIdAndName(roleId, recipeName).size()) return CommonResult.fail(ResultCode.E_804); int count = recipeTemplateMapper.deleteByRIdAndName(roleId, recipeName); return CommonResult.success(count); }  @Override CommonResult insertRecipeTemplate(RecipeTemplateParam recipeTemplateParam); @Override CommonResult deleteRecipeTemplate(Integer roleId, String recipeName); @Override CommonResult listRecipeTemplate(Integer roleId, Integer type); CommonResult modifyRecipeTemplate(RecipeTemplateParam recipeTemplateParam); JSONArray toJson(HashMap<String, List<HashMap>> hashMap); }
RecipeTemplateManagementServiceImpl implements RecipeTemplateManagementService { @Override public CommonResult deleteRecipeTemplate(Integer roleId, String recipeName) { if (roleId == null || recipeName == null) return CommonResult.fail(ResultCode.E_801); if (0 == recipeTemplateMapper.getRecipeTemplateByRoleIdAndName(roleId, recipeName).size()) return CommonResult.fail(ResultCode.E_804); int count = recipeTemplateMapper.deleteByRIdAndName(roleId, recipeName); return CommonResult.success(count); }  @Override CommonResult insertRecipeTemplate(RecipeTemplateParam recipeTemplateParam); @Override CommonResult deleteRecipeTemplate(Integer roleId, String recipeName); @Override CommonResult listRecipeTemplate(Integer roleId, Integer type); CommonResult modifyRecipeTemplate(RecipeTemplateParam recipeTemplateParam); JSONArray toJson(HashMap<String, List<HashMap>> hashMap);  }