You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
820 B
Java
30 lines
820 B
Java
package com.glxp.api.service;
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.glxp.api.dao.BaseMapperPlus;
|
|
|
|
import java.util.List;
|
|
|
|
public class CustomServiceImpl<M extends BaseMapper<T>, T> extends ServiceImpl<BaseMapperPlus<M,T,T>, T> implements CustomService<T>{
|
|
@Override
|
|
public int insertIgnore(T entity) {
|
|
return baseMapper.insertIgnore(entity);
|
|
}
|
|
|
|
@Override
|
|
public int insertIgnoreBatch(List<T> entityList) {
|
|
return baseMapper.insertIgnoreBatch(entityList);
|
|
}
|
|
|
|
@Override
|
|
public int replace(T entity) {
|
|
return baseMapper.replace(entity);
|
|
}
|
|
|
|
@Override
|
|
public int replaceBatch(List<T> entityList) {
|
|
return baseMapper.replaceBatch(entityList);
|
|
}
|
|
}
|