Skip to content

GEM: Excelアップロードで整数(Integer)プロパティに数値セルを使うとエラーになる#2142

Open
NonakaKazuhiro wants to merge 1 commit into
masterfrom
feature/2135-excel-upload
Open

GEM: Excelアップロードで整数(Integer)プロパティに数値セルを使うとエラーになる#2142
NonakaKazuhiro wants to merge 1 commit into
masterfrom
feature/2135-excel-upload

Conversation

@NonakaKazuhiro

Copy link
Copy Markdown
Contributor

対応内容

Excelアップロードで整数(Integer)プロパティに数値セルを使うとエラーになる不具合の修正
closes #2135

動作確認・スクリーンショット(任意)

レビュー観点・補足情報(任意)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Excelアップロード時に、Integer(実体は Long)型プロパティの列へ「数値セル」で整数を入力すると 100.0 のように小数点付き文字列になりパースエラーになる問題(Issue #2135)を解消するPRです。EntityExcelReader の数値セル→文字列変換時に、整数プロパティ向けの変換を追加して不正な形式にならないようにしています。

Changes:

  • Excelの数値セル読み取りで、PropertyDefinitionType.INTEGER の場合に「整数値なら整数文字列(例: 100)」として返す分岐を追加
  • 既存のBoolean(0/1が0.0/1.0になる)対応と同様に、型に応じた文字列化を強化

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GEM: Excelアップロードで整数(Integer)プロパティに数値セルを使うとエラーになる

2 participants