日计划管理-客户需求

This commit is contained in:
2026-01-23 16:13:27 +08:00
parent 5ec3cedadf
commit 1875bc455a
10 changed files with 105 additions and 56 deletions

View File

@ -41,4 +41,6 @@ public interface DatalogService {
public <T>boolean disable(Class<T> class1, @Valid List<Long> ids,DataOperationListener<T> listener);
public <T>List<T> updateBatch(List<T> entitys, DataOperationListener<T> listener);
}

View File

@ -49,6 +49,16 @@ public class DatalogServiceImpl implements DatalogService{
return res;
}
@Transactional(rollbackFor = Exception.class)
@Override
public <T> List<T> updateBatch(List<T> entitys, DataOperationListener<T> listener) {
List<T> res = Lists.newArrayList();
for (T entity : entitys) {
res.add(DataLogTools.update(entity,listener));
}
return res;
}
@Transactional(rollbackFor = Exception.class)
@Override
public <T> boolean updateById(T entity) {