Merge branch 'master' of http://60.1.1.230/backend/jieling_server
commit
019c9e9db2
|
@ -2,6 +2,8 @@ package com.ljsd.jieling.core.function;
|
|||
|
||||
import com.ljsd.jieling.core.FunctionIdEnum;
|
||||
import com.ljsd.jieling.core.FunctionManager;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* @author lvxinran
|
||||
|
@ -10,8 +12,11 @@ import com.ljsd.jieling.core.FunctionManager;
|
|||
*/
|
||||
public class FunctionContext {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(FunctionContext.class);
|
||||
|
||||
public static FunctionManager getFunction(int type){
|
||||
if(FunctionIdEnum.getFunctionIdEnumByType(type)==null){
|
||||
LOGGER.info("type:{}处理不存在",type);
|
||||
return null;
|
||||
}
|
||||
return FunctionIdEnum.getFunctionIdEnumByType(type).getManager();
|
||||
|
|
Loading…
Reference in New Issue