Package com.google.code.lightssh.common.dao

Examples of com.google.code.lightssh.common.dao.SearchCondition.like()


   */
  public ListPage<Role> listTodoAudit(ListPage<Role> page,Role role){
    SearchCondition sc = new SearchCondition();
    if( role != null ){
      if( !StringUtils.isEmpty(role.getName()) ){
        sc.like("name", role.getName());
      }
     
    }
    //sc.in("status",Role.Status.NEW.name(),Role.Status.AUDIT_REJECT.name());
    sc.equal("status",AuditStatus.NEW);
View Full Code Here


    if( t != null ){
      if( StringUtil.clean(t.getOperator()) != null )
        sc.like("operator",t.getOperator() );
     
      if( StringUtil.clean(t.getIp()) != null )
        sc.like("ip",t.getIp() );
     
      if( t.get_period() != null ){
        Calendar cal = Calendar.getInstance();
        Date start = t.get_period().getStart();
        Date end = t.get_period().getEnd();
View Full Code Here

    if( ra != null ){
      if( ra.getRoleChange() != null ){
        RoleChange rc = ra.getRoleChange();
        if( rc.getRole() != null ){
          if( !StringUtils.isEmpty(rc.getRole().getName()) ){
            sc.like("roleChange.role.name", rc.getRole().getName().trim());
          }
        }
      }
    }
   
View Full Code Here

      if( t.getRole() != null ){
        if( !StringUtils.isEmpty(t.getRole().getId()) ){
          sc.equal("role.id",t.getRole().getId().trim());
        }
        if( !StringUtils.isEmpty(t.getRole().getName()) ){
          sc.like("role.name",t.getRole().getName().trim());
        }
      }
    }
    sc.in("status",RoleChange.Status.NEW.name(),RoleChange.Status.PROCESSING.name());
    //sc.equal("status",RoleChange.Status.NEW);
View Full Code Here

      return null;
   
    ListPage<RoleChange> page = new ListPage<RoleChange>();
    SearchCondition sc = new SearchCondition();
    if( !StringUtils.isEmpty(role.getId()) ){
      sc.like("role.id",role.getId().trim());
    }
   
    return getDao().list(page,sc).getList();
  }
 
View Full Code Here

  public ListPage<LoginAccountChange> listTodoAudit(ListPage<LoginAccountChange> page,LoginAccountChange t ){
    SearchCondition sc = new SearchCondition();
    if( t != null ){
      if( t.getLoginAccount() != null ){
        if( !StringUtils.isEmpty(t.getLoginAccount().getLoginName()) ){
          sc.like("loginAccount.loginName",t.getLoginAccount().getLoginName().trim());
        }
      }
    }
    sc.in("status",RoleChange.Status.NEW.name(),RoleChange.Status.PROCESSING.name());
    //sc.equal("status",RoleChange.Status.NEW);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.