Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
王海
base-code-low-code
Commits
784c56e1
Commit
784c56e1
authored
1 week ago
by
chenjianrong
Browse files
Options
Download
Email Patches
Plain Diff
others#000,修复账套号下拉报错
parent
d591567f
test
No related merge requests found
Pipeline
#11651
passed with stages
in 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/com/circlelog/code/service/selector/AccountSelector.java
+11
-10
.../com/circlelog/code/service/selector/AccountSelector.java
with
11 additions
and
10 deletions
+11
-10
src/main/java/com/circlelog/code/service/selector/AccountSelector.java
View file @
784c56e1
...
...
@@ -13,6 +13,7 @@ import org.springframework.core.ParameterizedTypeReference;
import
org.springframework.http.MediaType
;
import
org.springframework.stereotype.Component
;
import
org.springframework.web.reactive.function.client.WebClient
;
import
org.springframework.web.util.UriBuilder
;
import
java.util.List
;
...
...
@@ -35,17 +36,17 @@ public class AccountSelector implements LfsSelectorStrategy {
*/
@Override
public
LfsBaseResp
selector
(
SelectorReq
req
)
{
String
url
;
if
(
Utils4General
.
isEmpty
(
req
.
getQuery
()))
{
url
=
"/api/v1/sys-tenant-account/selector"
;
}
else
{
url
=
"/api/v1/sys-tenant-account/selector?query="
+
req
.
getQuery
();
}
return
lfsWebClient
.
post
().
uri
(
uriBuilder
->
uriBuilder
.
path
(
url
).
build
()
).
contentType
(
MediaType
.
APPLICATION_JSON
).
retrieve
()
.
bodyToMono
(
new
ParameterizedTypeReference
<
LfsBaseResp
<
List
<
AccountNoRes
>>>()
{
return
lfsWebClient
.
post
()
.
uri
(
uriBuilder
->
{
UriBuilder
builder
=
uriBuilder
.
path
(
"/api/v1/sys-tenant-account/selector"
);
if
(!
Utils4General
.
isEmpty
(
req
.
getQuery
()))
{
builder
.
queryParam
(
"query"
,
req
.
getQuery
());
// 单独设置查询参数
}
return
builder
.
build
();
})
.
contentType
(
MediaType
.
APPLICATION_JSON
)
.
retrieve
()
.
bodyToMono
(
new
ParameterizedTypeReference
<
LfsBaseResp
<
List
<
AccountNoRes
>>>()
{})
.
block
();
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help