基础信息信息相关修改
parent
58f1af515e
commit
45073a3cbc
@ -0,0 +1,12 @@
|
||||
package com.glxp.api.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface CustomService<T> extends IService<T> {
|
||||
int insertIgnore(T entity);
|
||||
boolean insertIgnoreBatch(List<T> entityList);
|
||||
int replace(T entity);
|
||||
boolean replaceBatch(List<T> entityList);
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
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 boolean insertIgnoreBatch(List<T> entityList) {
|
||||
return baseMapper.insertIgnoreBatchs(entityList);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int replace(T entity) {
|
||||
return baseMapper.replace(entity);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean replaceBatch(List<T> entityList) {
|
||||
return baseMapper.replaceBatchs(entityList);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue