Class MinidaoInterceptor

java.lang.Object
org.jeecgframework.minidao.aspect.MinidaoInterceptor
All Implemented Interfaces:
EmptyInterceptor

public class MinidaoInterceptor extends Object implements EmptyInterceptor
  • Constructor Details

    • MinidaoInterceptor

      public MinidaoInterceptor()
  • Method Details

    • onInsert

      public boolean onInsert(Field[] fields, Object obj)
      Description copied from interface: EmptyInterceptor
      插入拦截
      Specified by:
      onInsert in interface EmptyInterceptor
      Returns:
    • onUpdate

      public boolean onUpdate(Field[] fields, Object obj)
      Description copied from interface: EmptyInterceptor
      修改拦截
      Specified by:
      onUpdate in interface EmptyInterceptor
      Returns:
    • onSelect

      public boolean onSelect(Field[] fields, Object obj)
      Description copied from interface: EmptyInterceptor
      查询数据注入查询条件字段 规则说明 1、只支持方法名字以select、query、get、page开头的dao方法 2、dao方法的第一个参数必须是需要注入条件的实体 3、不想注入saas隔离字段,给方法加 @IgnoreSaas
      Specified by:
      onSelect in interface EmptyInterceptor
      Returns:
    • setFieldValue

      public static void setFieldValue(Map<Object,Object> map, Object bean) throws Exception
      设置bean 属性值
      Parameters:
      map -
      bean -
      Throws:
      Exception
    • pareSetName

      public static String pareSetName(String fldname)
      拼接某属性set 方法
      Parameters:
      fldname -
      Returns:
    • checkMethod

      public static boolean checkMethod(Method[] methods, String met)
      判断该方法是否存在
      Parameters:
      methods -
      met -
      Returns: