|
|
|
@@ -26,8 +26,8 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<insert id="save" keyProperty="id" useGeneratedKeys="true"> |
|
|
|
insert into text_classification(name, description, model, dataset, epochs, batch_size, lr, create_by, update_by, computing_resource_id) |
|
|
|
values (#{textClassification.name}, #{textClassification.description}, #{textClassification.model}, |
|
|
|
insert into text_classification(name, description, model_type, dataset, epochs, batch_size, lr, create_by, update_by, computing_resource_id) |
|
|
|
values (#{textClassification.name}, #{textClassification.description}, #{textClassification.modelType}, |
|
|
|
#{textClassification.dataset}, #{textClassification.epochs}, #{textClassification.batchSize}, |
|
|
|
#{textClassification.lr}, #{textClassification.createBy}, #{textClassification.updateBy}, #{textClassification.computingResourceId}) |
|
|
|
</insert> |
|
|
|
@@ -41,8 +41,8 @@ |
|
|
|
<if test="textClassification.description != null and textClassification.description !=''"> |
|
|
|
description = #{textClassification.description}, |
|
|
|
</if> |
|
|
|
<if test="textClassification.model != null and textClassification.model !=''"> |
|
|
|
model = #{textClassification.model}, |
|
|
|
<if test="textClassification.modelType != null and textClassification.modelType !=''"> |
|
|
|
model_type = #{textClassification.modelType}, |
|
|
|
</if> |
|
|
|
<if test="textClassification.dataset != null and textClassification.dataset !=''"> |
|
|
|
dataset = #{textClassification.dataset}, |
|
|
|
|