menuOperationKey.append(function == null ? "" : function.getId());
menuOperationKey.append(KEY_SPLIT);
String code = "";
//设置code前缀
if (autoMenuOperation.codeType() == MenuCodeType.TAG) {
code = autoMenuOperation.code();
} else if (autoMenuOperation.codeType() == MenuCodeType.ID) {
code = MENU_TYPE_ID + autoMenuOperation.code();
} else if (autoMenuOperation.codeType() == MenuCodeType.CSS) {
code = MENU_TYPE_CSS + autoMenuOperation.code();