content: /**
   * * Copyright &copy; 2015-2020 <a href="https://gitee.com/JeeHuangBingGui/JeeSpring">JeeSpring</a> All rights reserved..
   */
  package com.jeespring.modules.test.service.tree;
  
  import java.util.List;
  
  import org.springframework.stereotype.Service;
  import org.springframework.transaction.annotation.Transactional;
  
  import com.jeespring.common.service.TreeService;
  import com.jeespring.common.utils.StringUtils;
  import com.jeespring.modules.test.entity.tree.TestTree;
  import com.jeespring.modules.test.dao.tree.TestTreeDao;
  
  /**
   * 组织机构Service
   * @author JeeSpring
   * @version 2018-08-03
   */
  @Service
  @Transactional(readOnly = true)
  public class TestTreeService extends TreeService<TestTreeDao, TestTree> {
  
  	public TestTree get(String id) {
  		return super.get(id);
  	}
  	
  	public List<TestTree> findList(TestTree testTree) {
  		if (StringUtils.isNotBlank(testTree.getParentIds())){
  			testTree.setParentIds(","+testTree.getParentIds()+",");
  		}
  		return super.findList(testTree);
  	}
  	
  	@Transactional(readOnly = false)
  	public void save(TestTree testTree) {
  		super.save(testTree);
  	}
  	
  	@Transactional(readOnly = false)
  	public void delete(TestTree testTree) {
  		super.delete(testTree);
  	}
  	
  }