feat:清理代码,新版spring支持自动注入,无需手动注入
This commit is contained in:
parent
bc9333db81
commit
fe06915dfa
@ -13,6 +13,7 @@ import com.flyfish.framework.configuration.annotations.PagedQuery;
|
||||
import com.flyfish.framework.domain.base.Vo;
|
||||
import com.flyfish.framework.service.BaseReactiveService;
|
||||
import reactor.core.publisher.Mono;
|
||||
import reactor.core.publisher.Flux;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("#{uri}")
|
||||
@ -27,7 +28,7 @@ public class #{className} {
|
||||
return service.getPageList(qo)
|
||||
.map(Result::accept)
|
||||
.flatMap(result -> result.flatMap(list -> Flux.fromIterable(list)
|
||||
.flatMap(item -> #{listViewClassName}().retrieve(item))
|
||||
.flatMap(item -> new #{listViewClassName}().retrieve(item))
|
||||
.collectList()));
|
||||
}
|
||||
return service.getList(qo).flatMap(item -> new #{listViewClassName}().retrieve(item))
|
||||
|
Loading…
Reference in New Issue
Block a user