|
|
@@ -2,7 +2,7 @@ |
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
<mapper namespace="com.ruoyi.platform.mapper.RayDao"> |
|
|
<mapper namespace="com.ruoyi.platform.mapper.RayDao"> |
|
|
<insert id="save"> |
|
|
<insert id="save"> |
|
|
insert into ray(name, dataset, code, main_py, num_samples, parameters, points_to_evaluate, storage_path, |
|
|
|
|
|
|
|
|
insert into ray(name, description, dataset, code, main_py, num_samples, parameters, points_to_evaluate, storage_path, |
|
|
search_alg, scheduler, metric, mode, max_t, |
|
|
search_alg, scheduler, metric, mode, max_t, |
|
|
min_samples_required, cpu, gpu, create_by, update_by) |
|
|
min_samples_required, cpu, gpu, create_by, update_by) |
|
|
values (#{ray.name}, #{ray.dataset}, #{ray.code}, #{ray.mainPy}, #{ray.numSamples}, #{ray.parameters}, |
|
|
values (#{ray.name}, #{ray.dataset}, #{ray.code}, #{ray.mainPy}, #{ray.numSamples}, #{ray.parameters}, |
|
|
@@ -17,6 +17,9 @@ |
|
|
<if test="ray.name != null and ray.name !=''"> |
|
|
<if test="ray.name != null and ray.name !=''"> |
|
|
name = #{ray.name}, |
|
|
name = #{ray.name}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="ray.description != null and ray.description !=''"> |
|
|
|
|
|
description = #{ray.description}, |
|
|
|
|
|
</if> |
|
|
<if test="ray.dataset != null and ray.dataset !=''"> |
|
|
<if test="ray.dataset != null and ray.dataset !=''"> |
|
|
dataset = #{ray.dataset}, |
|
|
dataset = #{ray.dataset}, |
|
|
</if> |
|
|
</if> |
|
|
|