Class MinidaoInterceptor
java.lang.Object
org.jeecgframework.minidao.aspect.MinidaoInterceptor
- All Implemented Interfaces:
EmptyInterceptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckMethod(Method[] methods, String met) 判断该方法是否存在boolean插入拦截boolean查询数据注入查询条件字段 规则说明 1、只支持方法名字以select、query、get、page开头的dao方法 2、dao方法的第一个参数必须是需要注入条件的实体 3、不想注入saas隔离字段,给方法加 @IgnoreSaasboolean修改拦截static StringpareSetName(String fldname) 拼接某属性set 方法static voidsetFieldValue(Map<Object, Object> map, Object bean) 设置bean 属性值
-
Constructor Details
-
MinidaoInterceptor
public MinidaoInterceptor()
-
-
Method Details
-
onInsert
Description copied from interface:EmptyInterceptor插入拦截- Specified by:
onInsertin interfaceEmptyInterceptor- Returns:
-
onUpdate
Description copied from interface:EmptyInterceptor修改拦截- Specified by:
onUpdatein interfaceEmptyInterceptor- Returns:
-
onSelect
Description copied from interface:EmptyInterceptor查询数据注入查询条件字段 规则说明 1、只支持方法名字以select、query、get、page开头的dao方法 2、dao方法的第一个参数必须是需要注入条件的实体 3、不想注入saas隔离字段,给方法加 @IgnoreSaas- Specified by:
onSelectin interfaceEmptyInterceptor- Returns:
-
setFieldValue
设置bean 属性值- Parameters:
map-bean-- Throws:
Exception
-
pareSetName
拼接某属性set 方法- Parameters:
fldname-- Returns:
-
checkMethod
判断该方法是否存在- Parameters:
methods-met-- Returns:
-