Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-app-report
Overview
Overview
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
Administrator
xzxt-app-report
Commits
484424b5
Commit
484424b5
authored
Jan 09, 2024
by
liulianglang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
比对修改
parent
8f1097d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
src/main/java/org/springblade/founder/ryxscxbd/service/impl/TbYwRxbdBdzgServiceImpl.java
+18
-7
No files found.
src/main/java/org/springblade/founder/ryxscxbd/service/impl/TbYwRxbdBdzgServiceImpl.java
View file @
484424b5
package
org
.
springblade
.
founder
.
ryxscxbd
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -21,10 +22,7 @@ import org.springblade.founder.ryxscxbd.mapper.RxbzMapper;
import
org.springblade.founder.ryxscxbd.mapper.TbYwRxbdBdzgMapper
;
import
org.springblade.founder.ryxscxbd.service.RxbzService
;
import
org.springblade.founder.ryxscxbd.service.TbYwRxbdBdzgService
;
import
org.springblade.founder.ryxscxbd.utils.HttpClient
;
import
org.springblade.founder.ryxscxbd.utils.HttpClientService
;
import
org.springblade.founder.ryxscxbd.utils.HttpClientUtil
;
import
org.springblade.founder.ryxscxbd.utils.RxbdUtils
;
import
org.springblade.founder.ryxscxbd.utils.*
;
import
org.springblade.founder.utils.R
;
import
org.springblade.founder.utils.SysXxzjbhService
;
import
org.springblade.founder.ydjwhc.entity.Base64DecodeMultipartFile
;
...
...
@@ -488,17 +486,30 @@ public class TbYwRxbdBdzgServiceImpl implements TbYwRxbdBdzgService {
String
url
=
rxbdUtils
.
getTaskUrl
();
Map
<
String
,
String
>
params
=
rxbdUtils
.
getTaskParam
();
taskId
=
httpClientService
.
doPostFile
(
url
,
params
,
file
,
""
);
String
ressss
=
httpClientService
.
doPostFile
(
url
,
params
,
file
,
""
);
System
.
out
.
println
(
"taskId====="
+
taskId
);
System
.
out
.
println
(
"taskId====="
+
ressss
);
Map
<
String
,
Object
>
taskResult
=
parseTaskResponse
(
ressss
,
RxbdContants
.
RXBD_PARSE_TASKID
);
Integer
taskIdI
=
(
Integer
)
taskResult
.
get
(
"taskId"
);
taskId
=
taskIdI
+
""
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
taskId
;
}
private
Map
<
String
,
Object
>
parseTaskResponse
(
String
response
,
String
key
)
{
Map
<
String
,
Object
>
result
=
new
HashMap
<>(
16
);
if
(
org
.
springframework
.
util
.
StringUtils
.
hasText
(
response
))
{
Map
<
String
,
Object
>
resMap
=
JSON
.
parseObject
(
response
,
Map
.
class
);
Object
data
=
resMap
.
get
(
"data"
);
if
(
data
!=
null
)
{
result
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
data
),
Map
.
class
);
}
}
return
result
;
}
@Override
public
R
getzzcsRxbdjg
(
String
rwxxzjbh
,
MultipartFile
file
,
String
base64Img
,
HttpServletRequest
request
,
String
fjmc
,
String
threshold
,
String
topNumber
,
String
model
)
{
Map
<
String
,
String
>
otherParams
=
new
HashMap
<>();
...
...
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