|
|
|
@@ -2,10 +2,10 @@ |
|
|
|
<!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"> |
|
|
|
<insert id="save"> |
|
|
|
insert into ray(name, description, dataset, model, code, main_py, num_samples, parameters, points_to_evaluate, storage_path, |
|
|
|
insert into ray(name, description, dataset, model, code_config, main_py, num_samples, parameters, points_to_evaluate, storage_path, |
|
|
|
search_alg, scheduler, metric, mode, max_t, |
|
|
|
min_samples_required, resource, image, create_by, update_by) |
|
|
|
values (#{ray.name}, #{ray.description}, #{ray.dataset}, #{ray.model}, #{ray.code}, #{ray.mainPy}, #{ray.numSamples}, #{ray.parameters}, |
|
|
|
values (#{ray.name}, #{ray.description}, #{ray.dataset}, #{ray.model}, #{ray.codeConfig}, #{ray.mainPy}, #{ray.numSamples}, #{ray.parameters}, |
|
|
|
#{ray.pointsToEvaluate}, #{ray.storagePath}, |
|
|
|
#{ray.searchAlg}, #{ray.scheduler}, #{ray.metric}, #{ray.mode}, #{ray.maxT}, #{ray.minSamplesRequired}, |
|
|
|
#{ray.resource}, #{ray.image}, #{ray.createBy}, #{ray.updateBy}) |
|
|
|
@@ -26,8 +26,8 @@ |
|
|
|
<if test="ray.model != null and ray.model !=''"> |
|
|
|
model = #{ray.model}, |
|
|
|
</if> |
|
|
|
<if test="ray.code != null and ray.code !=''"> |
|
|
|
code = #{ray.code}, |
|
|
|
<if test="ray.codeConfig != null and ray.codeConfig !=''"> |
|
|
|
code_config = #{ray.codeConfig}, |
|
|
|
</if> |
|
|
|
<if test="ray.image != null and ray.image !=''"> |
|
|
|
image = #{ray.image}, |
|
|
|
|