feat:增加自动完成数据源

This commit is contained in:
wangyu 2021-11-28 19:13:34 +08:00
parent d0ea4d5143
commit 18f26cc8b7
2 changed files with 4 additions and 3 deletions

View File

@ -17,6 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import reactor.core.publisher.Mono;
import java.util.Arrays;
import java.util.List;
/**
@ -91,9 +92,9 @@ public abstract class BaseController<T extends Domain, Q extends Qo<T>> implemen
@DeleteMapping("{id}")
@Operation.Delete
public Result<T> remove(@PathVariable String id, @CurrentUser User user) {
public Result<T> remove(@PathVariable List<String> id, @CurrentUser User user) {
userContext.setUser(user);
service.deleteById(id);
service.deleteBatchByIds(id);
return Result.ok();
}

View File

@ -255,7 +255,7 @@ public class BaseServiceImpl<T extends Domain> implements BaseService<T> {
*/
@Override
public void deleteBatchByIds(List<String> ids) {
ids.forEach(id -> repository.deleteById(id));
ids.forEach(this::deleteById);
}
/**