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

修改上下线通知

parent 1792c075
......@@ -385,6 +385,10 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
deviceReq.setDeviceInFloor(entity.getDeviceInFloor() == null ? 0 : entity.getDeviceInFloor());
//http://192.168.0.98:8090/inter/device/deviceIn
//判断是否是php,如果不是 则是java 则内部调用
try {
if ("smartOffice".equals(platformEntity.getPlatformSn())) {
deviceReq.setReceiveMethod(update.getValue());
//todo 调用智慧办公系统
......@@ -423,6 +427,9 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
// return Rest.fail("发送失败");
// }
}
} catch (Exception e) {
log.error("feign调用异常!");
}
return Rest.ok();
}
......
......@@ -70,23 +70,6 @@ spring:
url: @profiles.datasource.uri@
username: @profiles.datasource.username@
password: @profiles.datasource.password@
# 连接池
# hikari:
# #连接池名
# pool-name: DateHikariCP
# #最小空闲连接数
# minimum-idle: 5
# # 空闲连接存活最大时间,默认600000(10分钟)
# idle-timeout: 180000
# # 连接池最大连接数,默认是10
# maximum-pool-size: 15
# # 此属性控制从池返回的连接的默认自动提交行为,默认值:true
# auto-commit: true
# # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟
# max-lifetime: 1800000
# # 数据库连接超时时间,默认30秒,即30000
# connection-timeout: 30000
# connection-test-query: SELECT 1
mybatis:
root-path: com.mortals
......
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