Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
complex-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
complex-platform
Commits
bf5ad022
Commit
bf5ad022
authored
Dec 19, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加办事情形接口:judgmentExist
parent
78529e57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
complex-window-manager/src/main/java/com/mortals/xhx/busiz/web/ComplexApiController.java
.../java/com/mortals/xhx/busiz/web/ComplexApiController.java
+32
-0
No files found.
complex-window-manager/src/main/java/com/mortals/xhx/busiz/web/ComplexApiController.java
View file @
bf5ad022
...
@@ -345,6 +345,38 @@ public class ComplexApiController {
...
@@ -345,6 +345,38 @@ public class ComplexApiController {
}
}
}
}
/**
* 查询办理事项情形
*
* @param req
* @return
*/
@PostMapping
(
"bus-situation-material/judgmentExist"
)
@UnAuth
public
String
judgmentExist
(
@RequestBody
ComplexImplementationReq
req
)
{
log
.
info
(
"【查询办理事项情形】【请求体】--> "
+
JSONObject
.
toJSONString
(
req
));
req
.
setUrlPath
(
"bus-situation-material/judgmentExist"
);
ApiResp
<
String
>
rsp
=
new
ApiResp
<>();
rsp
.
setMsg
(
ApiRespCodeEnum
.
SUCCESS
.
getLabel
());
rsp
.
setCode
(
ApiRespCodeEnum
.
SUCCESS
.
getValue
());
try
{
req
.
setNonce
(
RandomUtil
.
randomNumbers
(
6
));
cacheService
.
lpush
(
KEY_COMPLEX_REQ
,
JSONObject
.
toJSONString
(
req
));
String
rest
=
cacheService
.
blpop
(
KEY_EVENT_IMPLEMENTATION_RESP
+
req
.
getNonce
(),
HTTP_TIMEOUT
,
String
.
class
);
if
(
ObjectUtil
.
isEmpty
(
rest
))
{
throw
new
AppException
(
"请求访问超时"
);
}
Rest
<
ComplexStituationInfo
>
eventRest
=
JSON
.
parseObject
(
rest
,
new
TypeReference
<
Rest
<
ComplexStituationInfo
>>()
{
});
return
JSON
.
toJSONString
(
eventRest
);
}
catch
(
Exception
e
)
{
log
.
error
(
"接收数据失败"
,
e
);
rsp
.
setCode
(
ApiRespCodeEnum
.
FAILED
.
getValue
());
rsp
.
setMsg
(
e
.
getMessage
());
return
JSON
.
toJSONString
(
rsp
);
}
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
File
file
=
new
File
(
"E:\\pic\\1.png"
);
File
file
=
new
File
(
"E:\\pic\\1.png"
);
...
...
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