/** * Copyright © 2015-2020 JeePlus All rights reserved. */ package com.jeeplus.modules.test.service.tree; import java.util.List; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.jeeplus.common.service.TreeService; import com.jeeplus.common.utils.StringUtils; import com.jeeplus.modules.test.entity.tree.TestTree; import com.jeeplus.modules.test.dao.tree.TestTreeDao; /** * 组织机构Service * @author liugf * @version 2016-03-13 */ @Service @Transactional(readOnly = true) public class TestTreeService extends TreeService { public TestTree get(String id) { return super.get(id); } public List 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); } }