Skip to content

Commit

Permalink
fix datasetLabel must be non-empty bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ywy2090 committed Nov 6, 2024
1 parent 3503508 commit 15d4423
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,14 +400,14 @@ public WeDPRResponse updateDatasetList(

for (UpdateDatasetRequest updateDatasetRequest : updateDatasetRequestList) {
String datasetTitle = updateDatasetRequest.getDatasetTitle();
String datasetLabel = updateDatasetRequest.getDatasetLabel();
// String datasetLabel = updateDatasetRequest.getDatasetLabel();
String datasetDesc = updateDatasetRequest.getDatasetDesc();
String datasetId = updateDatasetRequest.getDatasetId();
String approvalChain = updateDatasetRequest.getApprovalChain();

Common.requireNonEmpty("datasetId", datasetId);
Common.requireNonEmpty("datasetTitle", datasetTitle);
Common.requireNonEmpty("datasetLabel", datasetLabel);
// Common.requireNonEmpty("datasetLabel", datasetLabel);
Common.requireNonEmpty("datasetDesc", datasetDesc);

Integer datasetVisibility = updateDatasetRequest.getDatasetVisibility();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@
wedpr_dataset
SET
dataset_title = #{datasetTitle},
<if test="datasetLabel != null and datasetLabel.trim() != ''">
dataset_label = #{datasetLabel},
</if>
dataset_desc = #{datasetDesc},
visibility = #{visibility},
visibility_details = #{visibilityDetails},
Expand Down

0 comments on commit 15d4423

Please sign in to comment.