Package com.thinkgem.jeesite.modules.sys.dao

Source Code of com.thinkgem.jeesite.modules.sys.dao.OfficeDao

/**
* Copyright &copy; 2012-2013 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
*/
package com.thinkgem.jeesite.modules.sys.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.thinkgem.jeesite.common.persistence.BaseDao;
import com.thinkgem.jeesite.common.persistence.Parameter;
import com.thinkgem.jeesite.modules.sys.entity.Office;

/**
* 机构DAO接口
* @author ThinkGem
* @version 2013-8-23
*/
@Repository
public class OfficeDao extends BaseDao<Office> {
 
  public List<Office> findByParentIdsLike(String parentIds){
    return find("from Office where parentIds like :p1", new Parameter(parentIds));
  }
 
//  @Query("from Office where (id=?1 or parent.id=?1 or parentIds like ?2) and delFlag='" + Office.DEL_FLAG_NORMAL + "' order by code")
//  public List<Office> findAllChild(Long parentId, String likeParentIds);
 
}
TOP

Related Classes of com.thinkgem.jeesite.modules.sys.dao.OfficeDao

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.