| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.moral.api.entity.Test; |
| | | import com.moral.api.exception.BusinessException; |
| | | import com.moral.api.mapper.TestMapper; |
| | | import com.moral.api.service.TestService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Service |
| | | public class TestServiceImpl extends ServiceImpl<TestMapper, Test> implements TestService { |
| | | |
| | | @Autowired |
| | | @Resource |
| | | private TestMapper testMapper; |
| | | @Override |
| | | public Page<Test> selectByPage(Test test, Integer page, Integer size) { |
| | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | | public void saveTest() throws Exception{ |
| | | Test t=new Test(); |
| | | t.setName("aaaa"); |