Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
a64779ac
Commit
a64779ac
authored
Jan 21, 2025
by
麻笑宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.大屏业务模块详情提交
parent
50aa12b2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
StringUtils.java
...a/com/yeejoin/amos/boot/biz/common/utils/StringUtils.java
+6
-4
DPSubServiceImpl.java
...t/module/statistcs/biz/service/impl/DPSubServiceImpl.java
+2
-2
dqjy.json
...t-module-statistics-biz/src/main/resources/json/dqjy.json
+1
-1
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/utils/StringUtils.java
View file @
a64779ac
...
@@ -30,7 +30,7 @@ public class StringUtils {
...
@@ -30,7 +30,7 @@ public class StringUtils {
* @param map
* @param map
* @return
* @return
*/
*/
public
static
String
transMap2UrlParam
(
Map
<
String
,
Object
>
map
)
{
public
static
String
transMap2UrlParam
(
String
url
,
Map
<
String
,
Object
>
map
)
{
StringBuilder
stringBuilder
=
new
StringBuilder
();
StringBuilder
stringBuilder
=
new
StringBuilder
();
for
(
Map
.
Entry
entry
:
map
.
entrySet
())
{
for
(
Map
.
Entry
entry
:
map
.
entrySet
())
{
...
@@ -39,11 +39,12 @@ public class StringUtils {
...
@@ -39,11 +39,12 @@ public class StringUtils {
continue
;
continue
;
try
{
try
{
stringBuilder
.
append
(
"&"
).
append
(
entry
.
getKey
()).
append
(
"="
).
append
(
URLEncoder
.
encode
(
entry
.
getValue
().
toString
(),
"UTF-8"
));
stringBuilder
.
append
(
"&"
).
append
(
entry
.
getKey
()).
append
(
"="
).
append
(
URLEncoder
.
encode
(
entry
.
getValue
().
toString
(),
"UTF-8"
));
url
=
url
.
replaceAll
(
"\\{"
+
entry
.
getKey
()+
"}"
,
entry
.
getValue
()+
""
);
}
catch
(
UnsupportedEncodingException
e
)
{
}
catch
(
UnsupportedEncodingException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
}
}
return
stringBuilder
.
toString
();
return
url
+
stringBuilder
.
toString
();
}
}
/**
/**
...
@@ -52,16 +53,17 @@ public class StringUtils {
...
@@ -52,16 +53,17 @@ public class StringUtils {
* @param list
* @param list
* @return
* @return
*/
*/
public
static
String
transList2UrlParam
(
List
<
Map
<
String
,
Object
>>
list
)
{
public
static
String
transList2UrlParam
(
String
url
,
List
<
Map
<
String
,
Object
>>
list
)
{
StringBuilder
stringBuilder
=
new
StringBuilder
();
StringBuilder
stringBuilder
=
new
StringBuilder
();
list
.
forEach
(
x
->
{
list
.
forEach
(
x
->
{
Map
<
String
,
Object
>
map
=
JSONObject
.
parseObject
(
JSON
.
toJSONString
(
x
));
Map
<
String
,
Object
>
map
=
JSONObject
.
parseObject
(
JSON
.
toJSONString
(
x
));
try
{
try
{
stringBuilder
.
append
(
"&"
).
append
(
map
.
get
(
"key"
)).
append
(
"="
).
append
(
URLEncoder
.
encode
(
map
.
get
(
"value"
).
toString
(),
"UTF-8"
));
stringBuilder
.
append
(
"&"
).
append
(
map
.
get
(
"key"
)).
append
(
"="
).
append
(
URLEncoder
.
encode
(
map
.
get
(
"value"
).
toString
(),
"UTF-8"
));
url
.
replaceAll
(
"{"
+
map
.
get
(
"key"
)+
"}"
,
map
.
get
(
"value"
)+
""
);
}
catch
(
UnsupportedEncodingException
e
)
{
}
catch
(
UnsupportedEncodingException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
});
});
return
stringBuilder
.
toString
();
return
url
+
stringBuilder
.
toString
();
}
}
}
}
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/service/impl/DPSubServiceImpl.java
View file @
a64779ac
...
@@ -870,9 +870,9 @@ public class DPSubServiceImpl {
...
@@ -870,9 +870,9 @@ public class DPSubServiceImpl {
url
+=
"?"
;
url
+=
"?"
;
}
}
if
(
params
instanceof
Map
)
{
if
(
params
instanceof
Map
)
{
url
=
url
+
StringUtils
.
transMap2UrlParam
(
(
Map
)
params
);
url
=
StringUtils
.
transMap2UrlParam
(
url
,
(
Map
)
params
);
}
else
if
(
params
instanceof
List
)
{
}
else
if
(
params
instanceof
List
)
{
url
=
url
+
StringUtils
.
transList2UrlParam
(
(
List
)
params
);
url
=
StringUtils
.
transList2UrlParam
(
url
,
(
List
)
params
);
}
}
return
url
.
replace
(
"?&"
,
"?"
);
return
url
.
replace
(
"?&"
,
"?"
);
}
}
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/resources/json/dqjy.json
View file @
a64779ac
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
"key"
:
"basic"
,
"key"
:
"basic"
,
"displayName"
:
"定期检验详情"
,
"displayName"
:
"定期检验详情"
,
"renderType"
:
"basic"
,
"renderType"
:
"basic"
,
"formSeq"
:
"173
4854656288387074
"
,
"formSeq"
:
"173
5144325639073793
"
,
"dataConfig"
:
{
"dataConfig"
:
{
"api"
:
{
"api"
:
{
"httpMethod"
:
"GET"
,
"httpMethod"
:
"GET"
,
...
...
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