|
@@ -21,6 +21,7 @@ import com.taais.common.core.utils.StringUtils;
|
|
|
import com.taais.common.json.utils.JsonUtils;
|
|
|
import com.taais.common.orm.core.page.PageQuery;
|
|
|
import com.taais.common.orm.core.service.impl.BaseServiceImpl;
|
|
|
+import com.taais.system.domain.SysOss;
|
|
|
import com.taais.system.domain.vo.SysOssVo;
|
|
|
import com.taais.system.service.ISysOssService;
|
|
|
import jakarta.annotation.Resource;
|
|
@@ -46,8 +47,7 @@ import java.util.Date;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
|
|
|
-import static com.taais.biz.domain.table.VideoStableTableDef.VIDEO_STABLE;
|
|
|
-
|
|
|
+import static com.taais.biz.domain.table.DataAugmentationTableDef.DATA_AUGMENTATION;
|
|
|
/**
|
|
|
* 数据增强Service业务层处理
|
|
|
*
|
|
@@ -71,27 +71,31 @@ public class DataAugmentationServiceImpl extends BaseServiceImpl<DataAugmentatio
|
|
|
|
|
|
@Override
|
|
|
public QueryWrapper query() {
|
|
|
- return super.query().from(VIDEO_STABLE);
|
|
|
+ return super.query().from(DATA_AUGMENTATION);
|
|
|
}
|
|
|
|
|
|
private QueryWrapper buildQueryWrapper(DataAugmentationBo dataAugmentationBo) {
|
|
|
QueryWrapper queryWrapper = super.buildBaseQueryWrapper();
|
|
|
- queryWrapper.and(VIDEO_STABLE.NAME.like
|
|
|
+ queryWrapper.and(DATA_AUGMENTATION.NAME.like
|
|
|
(dataAugmentationBo.getName()));
|
|
|
- queryWrapper.and(VIDEO_STABLE.STATUS.like
|
|
|
+ queryWrapper.and(DATA_AUGMENTATION.STATUS.like
|
|
|
(dataAugmentationBo.getStatus()));
|
|
|
- queryWrapper.and(VIDEO_STABLE.INPUT_OSS_ID.eq
|
|
|
+ queryWrapper.and(DATA_AUGMENTATION.INPUT_OSS_ID.eq
|
|
|
(dataAugmentationBo.getInputOssId()));
|
|
|
- queryWrapper.and(VIDEO_STABLE.START_TIME.eq
|
|
|
+ queryWrapper.and(DATA_AUGMENTATION.START_TIME.eq
|
|
|
(dataAugmentationBo.getStartTime()));
|
|
|
- queryWrapper.and(VIDEO_STABLE.END_TIME.eq
|
|
|
+ queryWrapper.and(DATA_AUGMENTATION.END_TIME.eq
|
|
|
(dataAugmentationBo.getEndTime()));
|
|
|
- queryWrapper.and(VIDEO_STABLE.COST_SECOND.eq
|
|
|
+ queryWrapper.and(DATA_AUGMENTATION.COST_SECOND.eq
|
|
|
(dataAugmentationBo.getCostSecond()));
|
|
|
- queryWrapper.and(VIDEO_STABLE.LOG.like
|
|
|
+ queryWrapper.and(DATA_AUGMENTATION.LOG.like
|
|
|
(dataAugmentationBo.getLog()));
|
|
|
- queryWrapper.and(VIDEO_STABLE.REMARKS.like
|
|
|
+ queryWrapper.and(DATA_AUGMENTATION.REMARKS.like
|
|
|
(dataAugmentationBo.getRemarks()));
|
|
|
+ queryWrapper.and(DATA_AUGMENTATION.ALGORITHM_PATH.eq
|
|
|
+ (dataAugmentationBo.getAlgorithmPath()));
|
|
|
+ queryWrapper.and(DATA_AUGMENTATION.HYPERPARAMETER_CONFIGURATION.like
|
|
|
+ (dataAugmentationBo.getHyperparameterConfiguration()));
|
|
|
|
|
|
return queryWrapper;
|
|
|
}
|
|
@@ -104,7 +108,7 @@ public class DataAugmentationServiceImpl extends BaseServiceImpl<DataAugmentatio
|
|
|
*/
|
|
|
@Override
|
|
|
public DataAugmentationVo selectById(Long id) {
|
|
|
- return this.getOneAs(query().where(VIDEO_STABLE.ID.eq(id)), DataAugmentationVo.class);
|
|
|
+ return this.getOneAs(query().where(DATA_AUGMENTATION.ID.eq(id)), DataAugmentationVo.class);
|
|
|
|
|
|
}
|
|
|
|
|
@@ -141,7 +145,6 @@ public class DataAugmentationServiceImpl extends BaseServiceImpl<DataAugmentatio
|
|
|
*/
|
|
|
@Override
|
|
|
public boolean insert(DataAugmentationBo dataAugmentationBo) {
|
|
|
- // 检查input_oss_id是否存在
|
|
|
if (ObjectUtil.isNull(dataAugmentationBo.getInputOssId())) {
|
|
|
return false;
|
|
|
}
|
|
@@ -151,19 +154,19 @@ public class DataAugmentationServiceImpl extends BaseServiceImpl<DataAugmentatio
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- //DataAugmentation dataAugmentation = MapstructUtils.convert(dataAugmentationBo, DataAugmentation.class);
|
|
|
- DataAugmentation dataAugmentation = new DataAugmentation();
|
|
|
- dataAugmentation.setId(dataAugmentationBo.getId());
|
|
|
- dataAugmentation.setOutputPath(dataAugmentationBo.getOutputPath());
|
|
|
- dataAugmentation.setLog(dataAugmentationBo.getLog());
|
|
|
- dataAugmentation.setCostSecond(dataAugmentationBo.getCostSecond());
|
|
|
- dataAugmentation.setInputPath(dataAugmentationBo.getInputPath());
|
|
|
- dataAugmentation.setEndTime(dataAugmentationBo.getEndTime());
|
|
|
- dataAugmentation.setAlgorithmPath(dataAugmentationBo.getAlgorithmPath());
|
|
|
- dataAugmentation.setHyperparameterConfiguration(dataAugmentationBo.getHyperparameterConfiguration());
|
|
|
- dataAugmentation.setInputOssId(dataAugmentationBo.getInputOssId());
|
|
|
- dataAugmentation.setRemarks(dataAugmentationBo.getRemarks());
|
|
|
- dataAugmentation.setStartTime(dataAugmentationBo.getStartTime());
|
|
|
+ DataAugmentation dataAugmentation = MapstructUtils.convert(dataAugmentationBo, DataAugmentation.class);
|
|
|
+// DataAugmentation dataAugmentation = new DataAugmentation();
|
|
|
+// dataAugmentation.setId(dataAugmentationBo.getId());
|
|
|
+// dataAugmentation.setOutputPath(dataAugmentationBo.getOutputPath());
|
|
|
+// dataAugmentation.setLog(dataAugmentationBo.getLog());
|
|
|
+// dataAugmentation.setCostSecond(dataAugmentationBo.getCostSecond());
|
|
|
+// dataAugmentation.setInputPath(dataAugmentationBo.getInputPath());
|
|
|
+// dataAugmentation.setEndTime(dataAugmentationBo.getEndTime());
|
|
|
+// dataAugmentation.setAlgorithmPath(dataAugmentationBo.getAlgorithmPath());
|
|
|
+// dataAugmentation.setHyperparameterConfiguration(dataAugmentationBo.getHyperparameterConfiguration());
|
|
|
+// dataAugmentation.setInputOssId(dataAugmentationBo.getInputOssId());
|
|
|
+// dataAugmentation.setRemarks(dataAugmentationBo.getRemarks());
|
|
|
+// dataAugmentation.setStartTime(dataAugmentationBo.getStartTime());
|
|
|
dataAugmentation.setStatus(BizConstant.VideoStatus.NOT_START);
|
|
|
|
|
|
return this.save(dataAugmentation);// 使用全局配置的雪花算法主键生成器生成ID值
|