PersonServiceImpl.java 734 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
package com.kwan.springbootkwan.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kwan.springbootkwan.entity.Person;
import com.kwan.springbootkwan.mapper.PersonMapper;
import com.kwan.springbootkwan.service.IPersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PersonServiceImpl extends ServiceImpl<PersonMapper, Person> implements IPersonService {

    @Autowired
    private PersonMapper personMapper;

16
    //    @DS(value ="ali-ds" )
17 18 19
    @Override
    public Person savePerson(Person person) {
        personMapper.insert(person);
20
        final int i = 1 / 0;
21 22 23
        return person;
    }
}