diff --git a/dubhe-server/dubhe-data/src/main/java/org/dubhe/data/dao/DatasetMapper.java b/dubhe-server/dubhe-data/src/main/java/org/dubhe/data/dao/DatasetMapper.java index d43459249e5b4bb049f52542735cd06f4d4218e2..ca7e17524f00a0a1f1e8e6bb9099300d72e71049 100644 --- a/dubhe-server/dubhe-data/src/main/java/org/dubhe/data/dao/DatasetMapper.java +++ b/dubhe-server/dubhe-data/src/main/java/org/dubhe/data/dao/DatasetMapper.java @@ -82,7 +82,7 @@ public interface DatasetMapper extends BaseMapper { * @param labelGroupId 标签组ID * @return int 数量 */ - @Select("SELECT count(1) FROM data_dataset where label_group_id = #{labelGroupId}") + @Select("SELECT count(1) FROM data_dataset where label_group_id = #{labelGroupId} and deleted =0") int getCountByLabelGroupId(@Param("labelGroupId") Long labelGroupId); diff --git a/dubhe-server/dubhe-data/src/main/java/org/dubhe/data/domain/entity/DatasetLabel.java b/dubhe-server/dubhe-data/src/main/java/org/dubhe/data/domain/entity/DatasetLabel.java index cca41e3e5110b4fd63ab9afd6d3b5b10da0d7cf0..aba53fc2f2865dbc83121cfe11f563d62f8b5704 100644 --- a/dubhe-server/dubhe-data/src/main/java/org/dubhe/data/domain/entity/DatasetLabel.java +++ b/dubhe-server/dubhe-data/src/main/java/org/dubhe/data/domain/entity/DatasetLabel.java @@ -49,8 +49,5 @@ public class DatasetLabel extends BaseEntity implements Serializable { @ApiModelProperty("标签ID") private Long labelId; - @ApiModelProperty("删除标识") - @TableField(value = "deleted",fill = FieldFill.INSERT) - private Boolean deleted = false; }