Commit 9f06bca0 authored by 赵啸非's avatar 赵啸非

修正redis 最大连接数

parent e6f2c568
...@@ -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() {
......
...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment