Skip to content

Commit

Permalink
Date 타입 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kyusooK committed Jan 10, 2025
1 parent 6e763a8 commit 9ef0dc3
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -415,9 +415,12 @@
case "Boolean":
fieldDescriptorsName = fieldDescriptorsName.concat(`${fieldItem.name}=true ` )
break;
default:
fieldDescriptorsName = fieldDescriptorsName.concat(`${fieldItem.name}="value" `);
break;
}
}
else if(!fieldItem.isKey && (fieldItem.className != 'String' || fieldItem.className != 'Long' || fieldItem.className != 'Integer' || fieldItem.className != 'Double' || fieldItem.className != 'BigDecimal')){
else if(!fieldItem.isKey && (fieldItem.className != 'String' || fieldItem.className != 'Long' || fieldItem.className != 'Integer' || fieldItem.className != 'Double' || fieldItem.className != 'BigDecimal' || fieldItem.className != 'Date')){
Object.values((me.relatedAggregate.aggregateRoot.entities.relations) || {})
.filter(relation => relation.targetElement.namePascalCase === fieldItem.className)
.forEach((field) => {
Expand All @@ -440,6 +443,9 @@
case "Boolean":
tempField = tempField.concat(`"${item.nameCamelCase}":"true"`, ", ");
break;
default:
tempField = tempField.concat(`"${item.nameCamelCase}":"value"`, ", ");
break;
}
});
tempField = tempField.slice(0, -2);
Expand Down Expand Up @@ -500,6 +506,9 @@
case "Boolean":
fieldDescriptorsName = fieldDescriptorsName.concat(`${fieldItem.name}=true ` )
break;
default:
fieldDescriptorsName = fieldDescriptorsName.concat(`${fieldItem.name}="value" ` )
break;
}
}else if(!fieldItem.isKey && (fieldItem.className != 'String' || fieldItem.className != 'Long' || fieldItem.className != 'Integer' || fieldItem.className != 'Double' || fieldItem.className != 'BigDecimal')){
Object.values((me.relatedAggregate.aggregateRoot.entities.relations) || {})
Expand All @@ -524,6 +533,9 @@
case "Boolean":
tempField = tempField.concat(`"${item.nameCamelCase}":"true"`, ", ");
break;
default:
tempField = tempField.concat(`"${item.nameCamelCase}":"value"`, ", ");
break;
}
});
tempField = tempField.slice(0, -2);
Expand Down

0 comments on commit 9ef0dc3

Please sign in to comment.