package com.example.demo.user.service;


import com.example.demo.user.dao.interf.UserMapper;
import com.example.demo.user.entity.User;
import com.example.demo.user.service.interf.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    public int batchInsert(List<User> userList){
        int ret = 0;

        ret = userMapper.userBatchInsert(userList);

        return ret;
    }

}
