-
Notifications
You must be signed in to change notification settings - Fork 33
算子前端展示更新 #273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
算子前端展示更新 #273
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
b794439
修改数据清洗筛选逻辑-筛选修改为多选
Zzzxxxxy 4dca1c1
修改数据清洗筛选逻辑-筛选修改为多选
Zzzxxxxy bac789b
antd 组件库样式定制修改
Zzzxxxxy 0e4461a
feat: 优化前端展示
hhhhsc701 b46c741
Merge branch 'develop/frontend' into develop/hsc/frontend
hhhhsc701 031c51f
feat: 优化前端展示
hhhhsc701 3250119
feat: 前端展示优化
hhhhsc701 229e8e6
feat: 算子市场增加四个页签
hhhhsc701 5eb1bda
fix: 修复入库可能重复
hhhhsc701 6be38a6
fix: 算子市场筛选逻辑优化
hhhhsc701 ea25c77
Merge branch 'develop/hzw/clean' into bugfix/hsc
hhhhsc701 5a26a38
fix: 清洗任务创建筛选逻辑优化
hhhhsc701 eeaaced
fix: 清洗任务创建筛选逻辑优化
hhhhsc701 77962ee
Merge branch 'refs/heads/bugfix/hsc' into develop/hsc/frontend
hhhhsc701 9c669f7
Merge remote-tracking branch 'origin/develop/hsc/frontend' into devel…
hhhhsc701 eabdd1d
Merge branch 'refs/heads/main' into develop/hsc/ops
hhhhsc701 7aa8b4d
feat: 算子支持更多指标数据展示
hhhhsc701 70245b2
feat: 支持环境依赖/文档的展示
hhhhsc701 5b30f99
feat: 支持环境依赖/文档/更新日志的展示
hhhhsc701 68cdbe4
Merge branch 'main' into develop/hsc/ops
hhhhsc701 f20e078
feat: 模板管理展示修复
hhhhsc701 b29622f
Merge branch 'refs/heads/main' into develop/hsc/ops
hhhhsc701 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...ator-market-service/src/main/java/com/datamate/operator/domain/model/OperatorRelease.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| package com.datamate.operator.domain.model; | ||
|
|
||
| import com.baomidou.mybatisplus.annotation.TableField; | ||
| import com.baomidou.mybatisplus.annotation.TableName; | ||
| import com.datamate.common.infrastructure.config.PgJsonTypeHandler; | ||
| import lombok.Getter; | ||
| import lombok.Setter; | ||
|
|
||
| import java.time.LocalDateTime; | ||
| import java.util.List; | ||
|
|
||
| @Getter | ||
| @Setter | ||
| @TableName(value = "t_operator_release", autoResultMap = true) | ||
| public class OperatorRelease { | ||
| private String id; | ||
|
|
||
| private String version; | ||
|
|
||
| private LocalDateTime releaseDate; | ||
|
|
||
| @TableField(typeHandler = PgJsonTypeHandler.class) | ||
| private List<String> changelog; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...vice/src/main/java/com/datamate/operator/domain/repository/OperatorReleaseRepository.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| package com.datamate.operator.domain.repository; | ||
|
|
||
| import com.baomidou.mybatisplus.extension.repository.IRepository; | ||
| import com.datamate.operator.domain.model.OperatorRelease; | ||
| import com.datamate.operator.interfaces.dto.OperatorReleaseDto; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| public interface OperatorReleaseRepository extends IRepository<OperatorRelease> { | ||
| List<OperatorReleaseDto> findAllByOperatorId(String operatorId); | ||
|
|
||
| void insertOperatorRelease(OperatorReleaseDto operatorRelease); | ||
|
|
||
| void updateOperatorRelease(OperatorReleaseDto operatorRelease); | ||
|
|
||
| void deleteOperatorRelease(String operatorId); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...rc/main/java/com/datamate/operator/infrastructure/converter/OperatorReleaseConverter.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| package com.datamate.operator.infrastructure.converter; | ||
|
|
||
| import com.datamate.operator.domain.model.OperatorRelease; | ||
| import com.datamate.operator.interfaces.dto.OperatorReleaseDto; | ||
| import org.mapstruct.Mapper; | ||
| import org.mapstruct.factory.Mappers; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| @Mapper | ||
| public interface OperatorReleaseConverter { | ||
| OperatorReleaseConverter INSTANCE = Mappers.getMapper(OperatorReleaseConverter.class); | ||
|
|
||
| List<OperatorReleaseDto> fromEntityToDto(List<OperatorRelease> dto); | ||
|
|
||
| OperatorRelease fromDtoToEntity(OperatorReleaseDto dto); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
.../com/datamate/operator/infrastructure/persistence/Impl/OperatorReleaseRepositoryImpl.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| package com.datamate.operator.infrastructure.persistence.Impl; | ||
|
|
||
| import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | ||
| import com.baomidou.mybatisplus.extension.repository.CrudRepository; | ||
| import com.datamate.operator.domain.model.OperatorRelease; | ||
| import com.datamate.operator.domain.repository.OperatorReleaseRepository; | ||
| import com.datamate.operator.infrastructure.converter.OperatorReleaseConverter; | ||
|
|
||
| import com.datamate.operator.infrastructure.persistence.mapper.OperatorReleaseMapper; | ||
| import com.datamate.operator.interfaces.dto.OperatorReleaseDto; | ||
| import lombok.RequiredArgsConstructor; | ||
| import org.springframework.stereotype.Repository; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| @Repository | ||
| @RequiredArgsConstructor | ||
| public class OperatorReleaseRepositoryImpl extends CrudRepository<OperatorReleaseMapper, OperatorRelease> implements OperatorReleaseRepository { | ||
| private final OperatorReleaseMapper mapper; | ||
|
|
||
| public List<OperatorReleaseDto> findAllByOperatorId(String operatorId) { | ||
| QueryWrapper<OperatorRelease> queryWrapper = new QueryWrapper<>(); | ||
| queryWrapper.eq("id", operatorId) | ||
| .orderByDesc("release_date"); | ||
| return OperatorReleaseConverter.INSTANCE.fromEntityToDto(mapper.selectList(queryWrapper)); | ||
| } | ||
|
|
||
| @Override | ||
| public void insertOperatorRelease(OperatorReleaseDto operatorReleaseDto) { | ||
| mapper.insert(OperatorReleaseConverter.INSTANCE.fromDtoToEntity(operatorReleaseDto)); | ||
| } | ||
|
|
||
| @Override | ||
| public void updateOperatorRelease(OperatorReleaseDto operatorReleaseDto) { | ||
| QueryWrapper<OperatorRelease> queryWrapper = new QueryWrapper<>(); | ||
| queryWrapper.eq("id", operatorReleaseDto.getId()) | ||
| .eq("version", operatorReleaseDto.getVersion()); | ||
| mapper.update(OperatorReleaseConverter.INSTANCE.fromDtoToEntity(operatorReleaseDto), queryWrapper); | ||
| } | ||
|
|
||
| @Override | ||
| public void deleteOperatorRelease(String operatorId) { | ||
| mapper.delete(new QueryWrapper<OperatorRelease>().eq("id", operatorId)); | ||
| } | ||
|
|
||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.