Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-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
赵啸非
device-new-platform
Commits
9f06bca0
Commit
9f06bca0
authored
Jun 17, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正redis 最大连接数
parent
e6f2c568
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
device-manager/src/main/java/com/mortals/xhx/busiz/web/TestSendMsgController.java
...java/com/mortals/xhx/busiz/web/TestSendMsgController.java
+14
-0
device-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceServiceImpl.java
...als/xhx/module/device/service/impl/DeviceServiceImpl.java
+1
-1
No files found.
device-manager/src/main/java/com/mortals/xhx/busiz/web/TestSendMsgController.java
View file @
9f06bca0
...
@@ -64,6 +64,20 @@ public class TestSendMsgController {
...
@@ -64,6 +64,20 @@ public class TestSendMsgController {
return
JSON
.
toJSONString
(
rsp
);
return
JSON
.
toJSONString
(
rsp
);
}
}
@GetMapping
(
"updateDevice"
)
public
String
updateDevice
()
{
log
.
info
(
"刷新设备的产品编码"
);
ApiResp
<
DeviceResp
>
rsp
=
new
ApiResp
<>();
rsp
.
setCode
(
ApiRespCodeEnum
.
SUCCESS
.
getValue
());
List
<
DeviceEntity
>
updateProductCodeList
=
deviceService
.
find
(
new
DeviceQuery
());
if
(!
ObjectUtils
.
isEmpty
(
updateProductCodeList
))
{
log
.
info
(
"更新设备产品列表,size:{},str:{}"
,
updateProductCodeList
.
size
(),
JSON
.
toJSONString
(
updateProductCodeList
));
deviceService
.
update
(
updateProductCodeList
,
null
);
}
return
JSON
.
toJSONString
(
rsp
);
}
@GetMapping
(
"reDeviceProductCode"
)
@GetMapping
(
"reDeviceProductCode"
)
public
String
reDeviceProductCode
()
{
public
String
reDeviceProductCode
()
{
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceServiceImpl.java
View file @
9f06bca0
...
@@ -365,7 +365,7 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
...
@@ -365,7 +365,7 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
Rest
<
String
>
officeRest
=
officeDeviceFeign
.
deviceCall
(
deviceReq
);
Rest
<
String
>
officeRest
=
officeDeviceFeign
.
deviceCall
(
deviceReq
);
log
.
info
(
"office resp ==>{}"
,
JSON
.
toJSONString
(
officeRest
));
log
.
info
(
"office resp ==>{}"
,
JSON
.
toJSONString
(
officeRest
));
}
else
{
}
else
{
Long
lpush
=
cacheService
.
lpush
(
RedisKey
.
KEY_DEVICE_THIRDPARTY_QUEUE
,
deviceReq
);
cacheService
.
lpush
(
RedisKey
.
KEY_DEVICE_THIRDPARTY_QUEUE
,
deviceReq
);
// log.info("lpush:{}",lpush);
// log.info("lpush:{}",lpush);
// String phpInUrl = GlobalSysInfo.getParamValue(PARAM_SERVER_PHP_IN_HTTP_URL, "http://172.15.28.116:8090");
// String phpInUrl = GlobalSysInfo.getParamValue(PARAM_SERVER_PHP_IN_HTTP_URL, "http://172.15.28.116:8090");
// ApiResp<String> resp = messageService.sendThirdParty(UrlBuilder.of(phpInUrl).addPath(thirdPartyPath).build(), deviceReq);
// ApiResp<String> resp = messageService.sendThirdParty(UrlBuilder.of(phpInUrl).addPath(thirdPartyPath).build(), deviceReq);
...
...
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