/**
 * Copyright © 2021-2025 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.test.onetomany.service;

import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jeeplus.test.onetomany.service.dto.TestDataChild21DTO;
import com.jeeplus.test.onetomany.domain.TestDataChild21;
import com.jeeplus.test.onetomany.mapper.TestDataChild21Mapper;

/**
 * 火车票Service
 * @author liugf
 * @version 2022-03-20
 */
@Service
@Transactional
public class TestDataChild21Service extends ServiceImpl<TestDataChild21Mapper, TestDataChild21> {

	/**
	 * 根据id查询
	 * @param id
	 * @return
	 */
	public TestDataChild21DTO findById(String id) {
		return baseMapper.findById ( id );
	}

	/**
	 * 查询列表
	 * @param testDataMainId
	 * @return
	 */
	public List <TestDataChild21DTO> findList(String testDataMainId) {
		return  baseMapper.findList (testDataMainId);
	}

}
