fix: 调整 mgt 修改接口

This commit is contained in:
zhangshuai
2024-09-10 16:45:49 +08:00
parent 6698bc6a66
commit b0db257f81

View File

@@ -179,6 +179,8 @@ public class EnvironmentServiceImpl extends ServiceImpl<EnvironmentDao, Environm
entity.setUpdateTimestamp(System.currentTimeMillis());
entity.setParam(entity.getParamStr());
this.updateById(entity);
environmentWorkspaceService.remove(new LambdaQueryWrapper<EnvironmentWorkspaceEntity>().eq(EnvironmentWorkspaceEntity::getEnvId, entity.getId()));
// save env workspace
if (T.CollUtil.isNotEmpty(entity.getWorkspaceIds())){