提交 2516ef5e 编写于 作者: ibizdev's avatar ibizdev

ibizdev提交

上级 f049f9ce
...@@ -81,10 +81,16 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi ...@@ -81,10 +81,16 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi
} }
} }
@Override
public void saveBatch(List<IBZDictItem> list, int batchSize) {
saveOrUpdateBatch(list,batchSize);
}
@Override @Override
public boolean checkKey(IBZDictItem et) { public boolean checkKey(IBZDictItem et) {
return (!ObjectUtils.isEmpty(et.getItemid()))&&(!Objects.isNull(this.getById(et.getItemid()))); return (!ObjectUtils.isEmpty(et.getItemid()))&&(!Objects.isNull(this.getById(et.getItemid())));
} }
@Override @Override
@Transactional @Transactional
public boolean remove(String key) { public boolean remove(String key) {
...@@ -92,6 +98,12 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi ...@@ -92,6 +98,12 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi
if(!ret) return ret; if(!ret) return ret;
return ret ; return ret ;
} }
@Override
public void removeBatch(Collection<String> idList, int batchSize) {
removeByIds(idList);
}
@Override @Override
@Transactional @Transactional
public boolean create(IBZDictItem et) { public boolean create(IBZDictItem et) {
...@@ -101,6 +113,11 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi ...@@ -101,6 +113,11 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi
return ret ; return ret ;
} }
@Override
public void createBatch(List<IBZDictItem> list, int batchSize) {
saveBatch(list,batchSize);
}
@Override @Override
@Transactional @Transactional
public boolean update(IBZDictItem et) { public boolean update(IBZDictItem et) {
...@@ -113,6 +130,12 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi ...@@ -113,6 +130,12 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi
return ret ; return ret ;
} }
@Override
public void updateBatch(List<IBZDictItem> list, int batchSize) {
updateBatchById(list,batchSize);
}
/** /**
* 查询集合 DEFAULT * 查询集合 DEFAULT
*/ */
......
...@@ -77,10 +77,16 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl ...@@ -77,10 +77,16 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl
return ret ; return ret ;
} }
@Override
public void createBatch(List<IBZDict> list, int batchSize) {
saveBatch(list,batchSize);
}
@Override @Override
public boolean checkKey(IBZDict et) { public boolean checkKey(IBZDict et) {
return (!ObjectUtils.isEmpty(et.getDictid()))&&(!Objects.isNull(this.getById(et.getDictid()))); return (!ObjectUtils.isEmpty(et.getDictid()))&&(!Objects.isNull(this.getById(et.getDictid())));
} }
@Override @Override
public IBZDict getDraft(IBZDict et) { public IBZDict getDraft(IBZDict et) {
return et; return et;
...@@ -118,6 +124,12 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl ...@@ -118,6 +124,12 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl
CachedBeanCopier.copy(newet,et); CachedBeanCopier.copy(newet,et);
return ret ; return ret ;
} }
@Override
public void updateBatch(List<IBZDict> list, int batchSize) {
updateBatchById(list,batchSize);
}
@Override @Override
@Transactional @Transactional
public boolean remove(String key) { public boolean remove(String key) {
...@@ -134,6 +146,12 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl ...@@ -134,6 +146,12 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl
if(!ret) return ret; if(!ret) return ret;
return ret ; return ret ;
} }
@Override
public void removeBatch(Collection<String> idList, int batchSize) {
removeByIds(idList);
}
@Override @Override
@Transactional @Transactional
public boolean save(IBZDict et) { public boolean save(IBZDict et) {
...@@ -152,6 +170,11 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl ...@@ -152,6 +170,11 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl
} }
} }
@Override
public void saveBatch(List<IBZDict> list, int batchSize) {
saveOrUpdateBatch(list,batchSize);
}
/** /**
* 查询集合 DEFAULT * 查询集合 DEFAULT
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册