feat:清理代码,新版spring支持自动注入,无需手动注入

This commit is contained in:
wangyu 2021-12-08 16:54:46 +08:00
parent bc9333db81
commit fe06915dfa

View File

@ -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))