Browse Source

fix:修改mapper文件

pull/57/head
西大锐 1 year ago
parent
commit
b0fcc9200a
2 changed files with 7 additions and 1 deletions
  1. +4
    -0
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/JupyterServiceImpl.java
  2. +3
    -1
      ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/DevEnvironmentDaoMapper.xml

+ 4
- 0
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/JupyterServiceImpl.java View File

@@ -72,6 +72,9 @@ public class JupyterServiceImpl implements JupyterService {
@Override
public String runJupyterService(Integer id) {
DevEnvironment devEnvironment = this.devEnvironmentDao.queryById(id);
if(devEnvironment == null){

}
String envName = devEnvironment.getName();
//TODO 设置环境变量

@@ -136,4 +139,5 @@ public class JupyterServiceImpl implements JupyterService {




}

+ 3
- 1
ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/DevEnvironmentDaoMapper.xml View File

@@ -26,7 +26,7 @@
select
id,name,status,computing_resource,standard,env_variable,image,dataset,model,alt_field1,alt_field2,create_by,create_time,update_by,update_time,state
from dev_environment
where id = #{id}
where id = #{id} and state = 1
</select>

<!--查询指定行数据-->
@@ -35,6 +35,7 @@
id,name,status,computing_resource,standard,env_variable,image,dataset,model,alt_field1,alt_field2,create_by,create_time,update_by,update_time,state
from dev_environment
<where>
state = 1
<if test="devEnvironment.id != null">
and id = #{devEnvironment.id}
</if>
@@ -93,6 +94,7 @@
select count(1)
from dev_environment
<where>
state = 1
<if test="devEnvironment.id != null">
and id = #{devEnvironment.id}
</if>


Loading…
Cancel
Save