Commit 0b1e9fe8 authored by 赵啸非's avatar 赵啸非

添加修改终端访问ip

parent 7f8cd1c6
...@@ -48,7 +48,10 @@ public class CheckProjectStatusTaskImpl implements ITaskExcuteService { ...@@ -48,7 +48,10 @@ public class CheckProjectStatusTaskImpl implements ITaskExcuteService {
log.info("检测项目运行状态任务完毕!"); log.info("检测项目运行状态任务完毕!");
//更新项目服务ip //更新项目服务ip
List<SetupProjectEntity> setupProjectEntities = setupProjectService.find(new SetupProjectQuery().clientToServerIpStatus(YesNoEnum.NO.getValue())); List<SetupProjectEntity> setupProjectEntities = setupProjectService.find(new SetupProjectQuery()
.projectType(ProjectTypeEnum.后端.getValue())
.projectStatus(ProjectStatusEnum.运行中.getValue())
.clientToServerIpStatus(YesNoEnum.NO.getValue()));
for (SetupProjectEntity setupProjectEntity : setupProjectEntities) { for (SetupProjectEntity setupProjectEntity : setupProjectEntities) {
if (!ObjectUtils.isEmpty(setupProjectEntity.getClientToServerIp()) && setupProjectEntity.getProjectCode().equals(ProductDisEnum.基础服务后端.getValue())) { if (!ObjectUtils.isEmpty(setupProjectEntity.getClientToServerIp()) && setupProjectEntity.getProjectCode().equals(ProductDisEnum.基础服务后端.getValue())) {
......
...@@ -236,6 +236,7 @@ public class SetupProjectController extends BaseCRUDJsonBodyMappingController<Se ...@@ -236,6 +236,7 @@ public class SetupProjectController extends BaseCRUDJsonBodyMappingController<Se
if (!ipv4) { if (!ipv4) {
throw new AppException("请输入正确的ip地址"); throw new AppException("请输入正确的ip地址");
}*/ }*/
/*
HashMap<String, Object> params = new HashMap<>(); HashMap<String, Object> params = new HashMap<>();
params.put("serverIp", clientToServerIp); params.put("serverIp", clientToServerIp);
...@@ -251,6 +252,7 @@ public class SetupProjectController extends BaseCRUDJsonBodyMappingController<Se ...@@ -251,6 +252,7 @@ public class SetupProjectController extends BaseCRUDJsonBodyMappingController<Se
if (YesNoEnum.NO.getValue() == rest.getCode()) { if (YesNoEnum.NO.getValue() == rest.getCode()) {
throw new AppException(rest.getMsg()); throw new AppException(rest.getMsg());
} }
*/
//更新php 终端访问地址 todo //更新php 终端访问地址 todo
......
...@@ -95,6 +95,16 @@ Content-Type: application/json ...@@ -95,6 +95,16 @@ Content-Type: application/json
} }
###更新终端访问服务端ip
POST {{baseUrl}}/serverIp/update
Content-Type: application/json
{
"clientToServerIp": "192.168.0.98"
}
###区域树测试 ###区域树测试
POST {{baseUrl}}/base/area/treeselect POST {{baseUrl}}/base/area/treeselect
Content-Type: application/json Content-Type: application/json
......
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