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
210696b9
Commit
210696b9
authored
Jan 10, 2023
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
城燃管道图片算法调用feignclient修改
parent
b62cfc07
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
AttachmentController.java
.../boot/module/ugp/biz/controller/AttachmentController.java
+5
-1
MaasServiceFeignClient.java
...mos/boot/module/ugp/biz/fegin/MaasServiceFeignClient.java
+2
-4
VerifyServiceImpl.java
...s/boot/module/ugp/biz/service/impl/VerifyServiceImpl.java
+1
-1
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/AttachmentController.java
View file @
210696b9
...
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONArray;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.boot.module.ugp.biz.fegin.MaasServiceFeignClient
;
import
com.yeejoin.amos.boot.module.ugp.biz.framework.BusinessIdentify
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
...
...
@@ -135,6 +136,9 @@ public class AttachmentController extends BaseController {
@Autowired
MaasServiceFeignClient
maasServiceFeignClient
;
@Value
(
"${maas.service.ocr.id}"
)
String
ocrServiceId
;
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/test"
)
@ApiOperation
(
httpMethod
=
"Get"
,
value
=
"测试"
,
notes
=
"测试"
)
...
...
@@ -145,7 +149,7 @@ public class AttachmentController extends BaseController {
url
.
put
(
"url"
,
urlPath
);
urls
.
add
(
url
);
param
.
put
(
"data"
,
urls
);
ResponseModel
<
Object
>
result
=
maasServiceFeignClient
.
getPatrolDangerInfo
(
param
);
ResponseModel
<
Object
>
result
=
maasServiceFeignClient
.
execProcessApiByServiceId
(
param
);
String
resultStr
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
result
.
getResult
())).
getJSONObject
(
"result1"
).
getJSONArray
(
"rows"
).
getJSONObject
(
0
).
getString
(
"ocrResult"
);
return
ResponseHelper
.
buildResponse
(
resultStr
);
}
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/fegin/MaasServiceFeignClient.java
View file @
210696b9
...
...
@@ -16,15 +16,13 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
{
MultipartSupportConfig
.
class
})
public
interface
MaasServiceFeignClient
{
String
ocrServiceId
=
"0a456d67-5e12-48af-8923-ccc447d4cb2b"
;
/**
* 获取图片识别数据
*
* @param param
* @return
*/
@RequestMapping
(
value
=
"/maas/processes/api/"
+
ocrServiceId
,
method
=
RequestMethod
.
POST
)
ResponseModel
<
Object
>
getPatrolDangerInfo
(
@RequestBody
Object
param
);
@RequestMapping
(
value
=
"/maas/processes/api/"
+
"${maas.service.ocr.id}"
,
method
=
RequestMethod
.
POST
)
ResponseModel
<
Object
>
execProcessApiByServiceId
(
@RequestBody
Object
param
);
}
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/VerifyServiceImpl.java
View file @
210696b9
...
...
@@ -1244,7 +1244,7 @@ return jsonArray;
url
.
put
(
"url"
,
urlPath
);
urls
.
add
(
url
);
param
.
put
(
"data"
,
urls
);
ResponseModel
<
Object
>
result
=
maasServiceFeignClient
.
getPatrolDangerInfo
(
param
);
ResponseModel
<
Object
>
result
=
maasServiceFeignClient
.
execProcessApiByServiceId
(
param
);
String
resultStr
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
result
.
getResult
())).
getJSONObject
(
"result1"
).
getJSONArray
(
"rows"
).
getJSONObject
(
0
).
getString
(
"ocrResult"
);
return
resultStr
;
}
...
...
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