|
@@ -17,6 +17,7 @@ import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
+import java.util.List;
|
|
|
import java.util.Optional;
|
|
import java.util.Optional;
|
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
@@ -98,4 +99,16 @@ public class DistributePosterController {
|
|
|
});
|
|
});
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 关联平台
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/get/relate/goods")
|
|
|
|
|
+ public Result<List<DistributePosterGoodsView>> getRelateGoods() {
|
|
|
|
|
+ List<DistributePosterGoodsView> distributePosterGoodsViews = beanSearcher.searchAll(DistributePosterGoodsView.class, MapUtils.flatBuilder(request.getParameterMap())
|
|
|
|
|
+ .onlySelect(DistributePosterGoodsView::getGoodsId, DistributePosterGoodsView::getTitle)
|
|
|
|
|
+ .orderBy(DistributePosterGoodsView::getGoodsId).asc()
|
|
|
|
|
+ .build());
|
|
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(distributePosterGoodsViews);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|